27 references to DataGridViewImageCellLayout
System.Windows.Forms (27)
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (22)
147
DefaultValue(
DataGridViewImageCellLayout
.NotSet)
149
public
DataGridViewImageCellLayout
ImageLayout
157
return (
DataGridViewImageCellLayout
)imageLayout;
159
return
DataGridViewImageCellLayout
.Normal;
164
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
DataGridViewImageCellLayout
.NotSet, (int)
DataGridViewImageCellLayout
.Zoom))
166
throw new InvalidEnumArgumentException("value", (int)value, typeof(
DataGridViewImageCellLayout
));
176
internal
DataGridViewImageCellLayout
ImageLayoutInternal
180
Debug.Assert(value >=
DataGridViewImageCellLayout
.NotSet && value <=
DataGridViewImageCellLayout
.Zoom);
488
this.ImageLayout ==
DataGridViewImageCellLayout
.Zoom)
523
this.ImageLayout ==
DataGridViewImageCellLayout
.Zoom)
632
private Rectangle ImgBounds(Rectangle bounds, int imgWidth, int imgHeight,
DataGridViewImageCellLayout
imageLayout, DataGridViewCellStyle cellStyle)
635
Debug.Assert(imageLayout !=
DataGridViewImageCellLayout
.Stretch);
641
case
DataGridViewImageCellLayout
.Normal:
642
case
DataGridViewImageCellLayout
.NotSet:
645
case
DataGridViewImageCellLayout
.Zoom:
853
DataGridViewImageCellLayout
imageLayout = this.ImageLayout;
854
if (imageLayout ==
DataGridViewImageCellLayout
.NotSet)
859
Debug.Assert(imageLayout !=
DataGridViewImageCellLayout
.NotSet);
863
imageLayout =
DataGridViewImageCellLayout
.Normal;
867
if (imageLayout ==
DataGridViewImageCellLayout
.Stretch)
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (5)
184
DefaultValue(
DataGridViewImageCellLayout
.Normal),
188
public
DataGridViewImageCellLayout
ImageLayout
196
DataGridViewImageCellLayout
imageLayout = this.ImageCellTemplate.ImageLayout;
197
if (imageLayout ==
DataGridViewImageCellLayout
.NotSet)
199
imageLayout =
DataGridViewImageCellLayout
.Normal;