Table of Contents

Interface IPropertyGridVariant

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Container for the property values in the PropertyGrid.

public interface IPropertyGridVariant : IDisposable

Properties

AsBool

Gets or sets variant value as bool.

AsColor

Gets or sets variant value as Color.

AsDateTime

Gets or sets variant value as DateTime.

AsDecimal

Gets variant value as decimal.

AsDouble

Gets or sets variant value as double.

AsInt

Gets or sets variant value as int.

AsLong

Gets or sets variant value as long.

AsObject

Gets or sets variant value as object.

AsString

Gets or sets variant value as string.

AsUInt

Gets or sets variant value as uint.

AsULong

Gets or sets variant value as ulong.

IsNull

Gets whether value is null.

ValueType

Returns value type as string.

Methods

Clear()

Clears variant.

GetCompatibleValue(IPropertyGridItem)

Gets value in the compatible format for use with IPropertyGridItem.

SetCompatibleValue(object?, PropertyInfo)

Sets value in the compatible format.

ToString()

Returns value as string for any type of variant.