Back to Devexpress

ImageOptions.SvgImage Property

windowsforms-devexpress-dot-utils-dot-imageoptions-12825ba5.md

latest6.0 KB
Original Source

ImageOptions.SvgImage Property

Gets or sets the vector image displayed in the item.

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
[DXCategory("Appearance")]
public virtual SvgImage SvgImage { get; set; }
vb
<DXCategory("Appearance")>
Public Overridable Property SvgImage As SvgImage

Property Value

TypeDescription
SvgImage

The vector image displayed in the item.

|

Property Paths

You can access this nested property as listed below:

Show 11 property paths

LibraryObject TypePath to SvgImage
WinForms ControlsUIActionPropertiesCore

.ImageOptions .SvgImage

| | TileNavElement |

.TileImageOptions .SvgImage

| | TileNavPane |

.SeparatorImageOptions .SvgImage

| | RecentPanelBase |

.ImageOptions .SvgImage

| | RibbonControl |

.HeaderAreaImageOptions .SvgImage

| | RibbonOptionsTouch |

.MouseModeImageOptions .SvgImage

| | RibbonOptionsTouch |

.TouchModeImageOptions .SvgImage

| | RibbonOptionsTouch |

.TouchMouseModeSelectorImageOptions .SvgImage

| | TileItem |

.ImageOptions .SvgImage

| | FluentSplashScreenOptions |

.LogoImageOptions .SvgImage

| | SplashFormProperties |

.ImageOptions .SvgImage

| | SplashScreen |

.SplashImageOptions .SvgImage

| | Dashboard | DashboardToolbarMenuItem |

.ImageOptions .SvgImage

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the SvgImage property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-scheduler-customize-popup-menu/CS/PopupMenuCustomization/Form1.cs#L49

csharp
item.Caption = "&New Meeting";
    item.ImageOptions.SvgImage = DevExpress.Utils.Svg.SvgImage.FromFile("NewItem.svg");
}

winforms-dashboard-customize-title-and-item-captions/CS/CustomizeDashboardItemCaptionExample/ViewerForm1.cs#L56

csharp
}));
menuItem.ImageOptions.SvgImage = svgImageCollection1["title"];
toolbarItemRoot.MenuItems.Add(menuItem);

winforms-scheduler-customize-popup-menu/VB/PopupMenuCustomization/Form1.vb#L41

vb
item.Caption = "&New Meeting"
    item.ImageOptions.SvgImage = DevExpress.Utils.Svg.SvgImage.FromFile("NewItem.svg")
End If

winforms-dashboard-customize-title-and-item-captions/VB/CustomizeDashboardItemCaptionExample/ViewerForm1.vb#L58

vb
End Sub))
menuItem.ImageOptions.SvgImage = svgImageCollection1("title")
toolbarItemRoot.MenuItems.Add(menuItem)

See Also

ImageOptions Class

ImageOptions Members

DevExpress.Utils Namespace