DataGridViewImageCell 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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 屬性會設定為 參數的值 valueIsIcon
。
若要確保正確繪製值的 Alpha 通道 Icon ,請使用這個建構函式搭配 valueIsIcon
的參數值 true
。
valueIsIcon
如果 參數為 true
, FormattedValueType 則 和 ValueType 屬性會傳回 Type 代表型別的 Icon 物件。