ImageSizeMode Property

Gets or sets how the image is displayed.
<DescriptionAttribute("Indicates how the image is displayed.")>
Public Property ImageSizeMode As GridImageSizeMode
Dim instance As GridStyleInfo
Dim value As GridImageSizeMode
instance.ImageSizeMode = value
value = instance.ImageSizeMode
[Description("Indicates how the image is displayed.")]
public GridImageSizeMode ImageSizeMode {get; set;}
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.


Syncfusion.Grid.Windows: 17.3460.0.26

See Also