DataGridViewImageCell.ImageLayout 屬性

定義

取得或設定儲存格的圖形配置。

public:
 property System::Windows::Forms::DataGridViewImageCellLayout ImageLayout { System::Windows::Forms::DataGridViewImageCellLayout get(); void set(System::Windows::Forms::DataGridViewImageCellLayout value); };
public System.Windows.Forms.DataGridViewImageCellLayout ImageLayout { get; set; }
member this.ImageLayout : System.Windows.Forms.DataGridViewImageCellLayout with get, set
Public Property ImageLayout As DataGridViewImageCellLayout

屬性值

此儲存格的 DataGridViewImageCellLayout。 預設為 NotSet

例外狀況

備註

變更此屬性會導致儲存格自行重新繪製。

ImageLayout設定擁有資料行的 屬性也會設定 ImageLayout 資料行中每個儲存格的 屬性,並重新整理資料行顯示。 若要覆寫個別儲存格的指定值,請在設定資料行值之後設定儲存格值。

適用於

另請參閱