Skip to main content

RepositoryItemPictureEdit.SvgImageSize Property

Gets or sets the required size of the vector image.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Appearance")]
public Size SvgImageSize { get; set; }

Property Value

Type Description
Size

A System.Drawing.Size structure that specifies the required size for rendering the vector image.

Remarks

You specify the vector image to be displayed by the editor using the PictureEdit.SvgImage property. The image is rendered according to the SvgImage‘s Width and Height properties by default. The SvgImageSize property allows you to specify a custom size.

Note

The SvgImageSize property and SvgImage‘s Width and Height properties specify the required size in pixels for the 100% (96 DPI) scale mode. The image is automatically scaled according to the current DPI setting.

You can also stretch or squeeze the image in the editor using the RepositoryItemPictureEdit.SizeMode property.

See Also