Editar

Compartilhar via


DataGridViewImageCell Constructors

Definition

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

valueIsIcon
Boolean

The cell will display an Icon value.

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