DataGridViewImageCell Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the DataGridViewImageCell class.
Overloads
DataGridViewImageCell() |
Initializes a new instance of the DataGridViewImageCell class, configuring it for use with cell values other than Icon objects. |
DataGridViewImageCell(Boolean) |
Initializes a new instance of the DataGridViewImageCell class, optionally configuring it for use with Icon cell values. |
DataGridViewImageCell()
Initializes a new instance of the DataGridViewImageCell class, configuring it for use with cell values other than Icon objects.
public:
DataGridViewImageCell();
public DataGridViewImageCell ();
Public Sub New ()
Remarks
This constructor calls DataGridViewImageCell(Boolean) with a valueIsIcon
parameter value of false
.
See also
Applies to
DataGridViewImageCell(Boolean)
Initializes a new instance of the DataGridViewImageCell class, optionally configuring it for use with Icon cell values.
public:
DataGridViewImageCell(bool valueIsIcon);
public DataGridViewImageCell (bool valueIsIcon);
new System.Windows.Forms.DataGridViewImageCell : bool -> System.Windows.Forms.DataGridViewImageCell
Public Sub New (valueIsIcon As Boolean)
Parameters
Remarks
When you use this constructor, the ValueIsIcon property is set to the value of the valueIsIcon
parameter.
To ensure that the alpha channel of Icon values is painted correctly, use this constructor with a valueIsIcon
parameter value of true
.
If the valueIsIcon
parameter is true
, the FormattedValueType and ValueType properties return a Type object representing the Icon type.
See also
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應