windowsforms-devexpress-dot-xtraeditors-4b895fad.md
Contains appearance settings to paint image items.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
public class SvgImageItemAppearance :
SvgImageBoxBaseOptions,
INotifyPropertyChanged,
ISupportDXSkinColorsSerialization,
ISupportDXSkinColorsProvider
Public Class SvgImageItemAppearance
Inherits SvgImageBoxBaseOptions
Implements INotifyPropertyChanged,
ISupportDXSkinColorsSerialization,
ISupportDXSkinColorsProvider
The following members return SvgImageItemAppearance objects:
The following code specifies the Green color as the default background for all image items.
svgImageBox1.ItemAppearance.Normal.FillColor = Color.Green;
SvgImageBox1.ItemAppearance.Normal.FillColor = Color.Green
The following example locates an item whose ID equals to “seat_3” and changes the item’s background color.
var item1 = svgImageBox1.FindItems(item => item.Id != null && item.Id.Equals("seat_3")).FirstOrDefault();
if (item1 != null)
item1.Appearance.Normal.FillColor = Color.Fuchsia;
Dim item1 = svgImageBox1.FindItems(Function(item) item.Id IsNot Nothing AndAlso item.Id.Equals("seat_3")).FirstOrDefault()
If item1 IsNot Nothing Then item1.Appearance.Normal.FillColor = Color.Fuchsia
Object DevExpress.XtraEditors.SvgImageBoxBaseOptions SvgImageItemAppearance
See Also