Syncfusion.Grid.Windows


ImageSizeMode Property

Gets or sets how the image is displayed.
Syntax
'Declaration
 
<DescriptionAttribute("Indicates how the image is displayed.")>
<BrowsableAttribute(True)>
<CategoryAttribute("Image")>
<NotifyParentPropertyAttribute(True)>
Public Property ImageSizeMode As GridImageSizeMode
'Usage
 
Dim instance As GridStyleInfo
Dim value As GridImageSizeMode
 
instance.ImageSizeMode = value
 
value = instance.ImageSizeMode
[Description("Indicates how the image is displayed.")]
[Browsable(true)]
[Category("Image")]
[NotifyParentProperty(true)]
public GridImageSizeMode ImageSizeMode {get; set;}
Remarks
Valid values for this property are taken from the PictureBoxSizeMode enumeration. By default, in PictureBoxSizeMode.Normal mode, the Image is placed in the upper left corner of the PictureBox, and any part of the image too big for the PictureBox is clipped. Using the PictureBoxSizeMode.StretchImage value causes the image to stretch to fit the PictureBox.

Using the PictureBoxSizeMode.AutoSize value causes the control to resize to always fit the image. Using the PictureBoxSizeMode.CenterImage value causes the image to be centered in the client area.

AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also