DataGridViewImageColumn.Icon プロパティ
定義
セルの Value プロパティが設定されておらず、セルの ValueIsIcon プロパティが true
に設定されている場合に、この列のセルに表示されるアイコンを取得または設定します。Gets or sets the icon displayed in the cells of this column when the cell's Value property is not set and the cell's ValueIsIcon property is set to true
.
public:
property System::Drawing::Icon ^ Icon { System::Drawing::Icon ^ get(); void set(System::Drawing::Icon ^ value); };
[System.ComponentModel.Browsable(false)]
public System.Drawing.Icon Icon { get; set; }
member this.Icon : System.Drawing.Icon with get, set
Public Property Icon As Icon
プロパティ値
- 属性
注釈
プロパティIconは、列がデータバインドされておらず、セルのValueIsIconプロパティがにtrue
設定されている場合に、値のないセルに表示されるアイコンを指定します。The Icon property specifies an icons that is displayed in cells with no values when the column is not data-bound and the cell's ValueIsIcon property is set to true
. 画像が関連付けられていないデータバインド列の場合、標準エラーグラフィックが表示されます。For a data-bound column whose cells do not have an associated image, a standard error graphic is displayed.
プロパティではなくImage プロパティを使用すると、アイコンのアルファチャネルが正しく描画されるようになります。IconUsing the Icon property rather than the Image property ensures that an alpha channel in an icon is painted correctly. でImageはなくImage Iconを表示する場合は、代わりにプロパティを設定し、 ValuesAreIconsプロパティをにfalse
設定します。If you want to display an Image instead of an Icon, set the Image property instead and set the ValuesAreIcons property to false
. また、個々のセルValueIsIconのプロパティを設定して、セルにIconプロパティ値またはプロパティ値を表示するかどうかを指定することもできます。 ImageYou can also set the ValueIsIcon property of individual cells to indicate whether the cell displays the Image or the Icon property value.