Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DataGridViewImageCell Constructor (Boolean)
Collapse the table of content
Expand the table of content

DataGridViewImageCell Constructor (Boolean)

Initializes a new instance of the DataGridViewImageCell class, optionally configuring it for use with Icon cell values.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public DataGridViewImageCell(
	bool valueIsIcon
)

Parameters

valueIsIcon
Type: System.Boolean

The cell will display an Icon value.

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft