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