Back to Devexpress

SvgImageBox.SvgImage Property

windowsforms-devexpress-dot-xtraeditors-dot-svgimagebox.md

latest1.5 KB
Original Source

SvgImageBox.SvgImage Property

Gets or sets the SVG image.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
[DefaultValue(null)]
public SvgImage SvgImage { get; set; }
vb
<DefaultValue(Nothing)>
Public Property SvgImage As SvgImage

Property Value

TypeDefaultDescription
SvgImagenull

The displayed SVG image.

|

Remarks

You can assign an SVG image at design time and in code.

csharp
svgImageBox1.SvgImage = DevExpress.Utils.Svg.SvgImage.FromFile(@"theater.svg");
vb
SvgImageBox1.SvgImage = DevExpress.Utils.Svg.SvgImage.FromFile("theater.svg")

At design time, you can access and customize the loaded image’s elements with control’s designer.

See Also

SvgImageBox Class

SvgImageBox Members

DevExpress.XtraEditors Namespace