Object Class
Contents
[
Hide
]Object class
Object class.
type Object struct {
ptr unsafe.Pointer
}
Constructors
| Method | Description |
|---|---|
| NewObject | Default constructor. Constructs an empty object. |
| NewObject_Bool | Constructs from a bool value. |
| NewObject_Integer8 | Constructs from an int8_t value. |
| NewObject_Byte | Constructs from an uint8_t value. |
| NewObject_Int16 | Constructs from an int16_t value. |
| NewObject_UInteger16 | Constructs from an uint16_t value. |
| NewObject_Int | Constructs from an int32_t value. |
| NewObject_UInteger | Constructs from an uint32_t value. |
| NewObject_Int64 | Constructs from an int64_t value. |
| NewObject_ULong | Constructs from an uint64_t value. |
| NewObject_Float | Constructs from a float value. |
| NewObject_Double | Constructs from a double value. |
| NewObject_Date | Constructs from a Date value. |
| NewObject_Color | Constructs from a Color value. |
| NewObject_String | Constructs from U16String value. |
| NewObject_Range | Constructs from a Range value. |
| NewObject_ObjectArray | Constructs from a one-dimensional array. |
| NewObject_Object2Array | Constructs from a two-dimensional array. |
Methods
| Method | Description |
|---|---|
| GetType | Gets the ObjectType of the object. |
| GetNumberType | Gets the NumberType of the object. |
| IsBool | Checks whether the object is a bool value. |
| IsNumber | Checks whether the object is a number value. |
| IsInt32 | Checks whether the object is an int32_t value. |
| IsDouble | Checks whether the object is a double value. |
| IsNull | Checks whether the object is null. |
| IsDate | Checks whether the object is a Date value. |
| IsColor | Checks whether the object is a Color value. |
| IsString | Checks whether the object is a String value. |
| IsRange | Checks whether the object is a Range pointer. |
| IsReferredArea | Checks whether the object is a ReferredArea pointer. |
| IsArray1D | Checks whether the object is a one-dimensional array. |
| IsArray2D | Checks whether the object is a two-dimensional array. |
| IsObject | Checks whether the object is an object pointer. |
| ToBool | Gets the bool value. |
| ToInt8 | Gets the int8_t value. |
| ToUInt8 | Gets the uint8_t value. |
| ToInt16 | Gets the int16_t value. |
| ToUInt16 | Gets the uint16_t value. |
| ToInt32 | Gets the int32_t value. |
| ToUInt32 | Gets the uint32_t value. |
| ToInt64 | Gets the int64_t value. |
| ToUInt64 | Gets the uint64_t value. |
| ToFloat | Gets the float value. |
| ToDouble | Gets the double value. |
| AsInt32 | Converts the object to an int32_t value, if object is number type. |
| AsDouble | Converts the object to a double value, if object is number type. |
| ToString | Gets the String value. |
| ToDate | Gets the Date value. |
| ToColor | Gets the Color value. |
| ToRange | Gets the Range value. |
| ToReferredArea | Gets the ReferredArea value. |
| ToArray1D | Gets the one-dimensional array value. |
| ToArray2D | Gets the two-dimensional array value. |