RepositoryItemPictureEdit.SvgImageSize Property

Gets or sets the required size of the vector image.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Appearance")]
public Size SvgImageSize { get; set; }
<DXCategory("Appearance")>
Public Property SvgImageSize As Size

Property Value

Type Description
Size

A 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