Skip to main content

TdxSpreadSheetCell.AsVariant Property

Specifies the cell object’s Variant value.

Declaration

property AsVariant: Variant read; write;

Property Value

Type
Variant

Remarks

You can use this property to assign Longint, Double, TDateTime, Currency, string, or Boolean value to an initialized cell instead of the type-specific AsInteger, AsFloat, AsDateTime, AsCurrency, AsString, or AsBoolean properties, respectively.

The AsVariant property is accessible via the IdxSpreadSheetCellData interface to provide uniform access to numeric cell values in ExpressSpreadSheet and ExpressQuantumGrid Views.

Note

To identify the cell object’s value type, use the DataType property.

See Also