DataGridViewImageCell::DataGridViewImageCellAccessibleObject::Value Property
.NET Framework (current version)
Gets a string representing the formatted value of the owning cell.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property String^ Value { [SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::UnmanagedCode)] virtual String^ get() override; [SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::UnmanagedCode)] virtual void set(String^ value) override; }
| Exception | Condition |
|---|---|
| InvalidOperationException | The value of the Owner property is null. |
The Value property contains a string that represents the value of the cell FormattedValue property. For the DataGridViewImageCell::DataGridViewImageCellAccessibleObject type, this is typically a string representation of the FormattedValueType value.
Setting this property has no effect.
SecurityPermission
to call unmanaged code. Demand value: Demand. Permission value: UnmanagedCode
.NET Framework
Available since 2.0
Available since 2.0
Show: