Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RepositoryItemPictureEdit.SvgImageSize Property

Gets or sets the required size of the vector image.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.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