DataGridViewImageCell 建構函式

定義

初始化 DataGridViewImageCell 類別的新執行個體。

多載

DataGridViewImageCell()

初始化 DataGridViewImageCell 類別的新執行個體,將它設定為要與 Icon 物件之外的儲存格值一起使用。

DataGridViewImageCell(Boolean)

初始化 DataGridViewImageCell 類別的新執行個體,選擇性地將它設定為要與 Icon 儲存格值一起使用。

DataGridViewImageCell()

初始化 DataGridViewImageCell 類別的新執行個體,將它設定為要與 Icon 物件之外的儲存格值一起使用。

public:
 DataGridViewImageCell();
public DataGridViewImageCell ();
Public Sub New ()

備註

這個建構函式會使用 valueIsIcon 的參數值呼叫 。 DataGridViewImageCell(Boolean) false

另請參閱

適用於

DataGridViewImageCell(Boolean)

初始化 DataGridViewImageCell 類別的新執行個體,選擇性地將它設定為要與 Icon 儲存格值一起使用。

public:
 DataGridViewImageCell(bool valueIsIcon);
public DataGridViewImageCell (bool valueIsIcon);
new System.Windows.Forms.DataGridViewImageCell : bool -> System.Windows.Forms.DataGridViewImageCell
Public Sub New (valueIsIcon As Boolean)

參數

valueIsIcon
Boolean

此儲存格將會顯示 Icon 值。

備註

當您使用此建構函式時, ValueIsIcon 屬性會設定為 參數的值 valueIsIcon

若要確保正確繪製值的 Alpha 通道 Icon ,請使用這個建構函式搭配 valueIsIcon 的參數值 true

valueIsIcon如果 參數為 trueFormattedValueType 則 和 ValueType 屬性會傳回 Type 代表型別的 Icon 物件。

另請參閱

適用於