Class PropertyValue
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
A value-type representing a property value.
C#Copypublic class PropertyValue : Disposable
- Inheritance
Constructors
Declaration
C#Copypublic PropertyValue()
API Level: 3
Declaration
C#Copypublic PropertyValue(bool boolValue)
Parameters
Type | Name | Description |
---|---|---|
Boolean | boolValue | A boolean value. |
API Level: 3
Declaration
C#Copypublic PropertyValue(int integerValue)
Parameters
Type | Name | Description |
---|---|---|
Int32 | integerValue | An integer value. |
API Level: 3
Declaration
C#Copypublic PropertyValue(float floatValue)
Parameters
Type | Name | Description |
---|---|---|
Single | floatValue | A floating-point value. |
API Level: 3
Declaration
C#Copypublic PropertyValue(string stringValue)
Parameters
Type | Name | Description |
---|---|---|
String | stringValue | A string. |
API Level: 3
Declaration
C#Copypublic PropertyValue(Color vectorValue)
Parameters
Type | Name | Description |
---|---|---|
Color | vectorValue | Color values. |
API Level: 3
Declaration
C#Copypublic PropertyValue(Extents extentsValue)
Parameters
Type | Name | Description |
---|---|---|
Extents | extentsValue | A Extents value. |
API Level: 4
Declaration
C#Copypublic PropertyValue(Position vectorValue)
Parameters
Type | Name | Description |
---|---|---|
Position | vectorValue | Position values. |
API Level: 3
Declaration
C#Copypublic PropertyValue(Position2D vectorValue)
Parameters
Type | Name | Description |
---|---|---|
Position2D | vectorValue | Position2D values. |
API Level: 3
Declaration
C#Copypublic PropertyValue(PropertyArray arrayValue)
Parameters
Type | Name | Description |
---|---|---|
PropertyArray | arrayValue | An array. |
API Level: 3
Declaration
C#Copypublic PropertyValue(PropertyMap mapValue)
Parameters
Type | Name | Description |
---|---|---|
PropertyMap | mapValue | An array. |
API Level: 3
Declaration
C#Copypublic PropertyValue(PropertyType type)
Parameters
Type | Name | Description |
---|---|---|
PropertyType | type | A PropertyType value. |
API Level: 3
Declaration
C#Copypublic PropertyValue(PropertyValue value)
Parameters
Type | Name | Description |
---|---|---|
PropertyValue | value | A PropertyValue value. |
API Level: 3
Declaration
C#Copypublic PropertyValue(Rectangle vectorValue)
Parameters
Type | Name | Description |
---|---|---|
Rectangle | vectorValue | Rectangle values. |
API Level: 3
Declaration
C#Copypublic PropertyValue(Rotation quaternion)
Parameters
Type | Name | Description |
---|---|---|
Rotation | quaternion | Rotation values. |
API Level: 3
Declaration
C#Copypublic PropertyValue(Size2D vectorValue)
Parameters
Type | Name | Description |
---|---|---|
Size2D | vectorValue | Size2D values. |
API Level: 3
Declaration
C#Copypublic PropertyValue(Vector2 vectorValue)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | vectorValue | A vector of 2 floating-point values. |
API Level: 3
Declaration
C#Copypublic PropertyValue(Vector3 vectorValue)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vectorValue | A vector of 3 floating-point values. |
API Level: 3
Declaration
C#Copypublic PropertyValue(Vector4 vectorValue)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | vectorValue | A vector of 4 floating-point values. |
API Level: 3
Methods
CreateFromObject(Object)
An extension to the property value class that allows us to create a
Property value from a C# object, for example, integer, float, or string.
Declaration
C#Copypublic static PropertyValue CreateFromObject(Object obj)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Object | obj | An object to create. |
Returns
Type | Description |
---|---|
PropertyValue | The created value. |
API Level: 3
Declaration
C#Copyprotected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | true in order to free managed objects |
Overrides
Remarks
Following the guide of https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/implementing-dispose. This will replace "protected virtual void Dispose(DisposeTypes type)" which is exactly same in functionality.
EqualTo(PropertyValue)
Determines whether the ProperyValue has equal value with the current ProperyValue.
Declaration
C#Copypublic bool EqualTo(PropertyValue rhs)
Parameters
Type | Name | Description |
---|---|---|
PropertyValue | rhs | The ProperyValue to compare with the current ProperyValue. |
Returns
Type | Description |
---|---|
Boolean | true if the specified ProperyValue is equal to the current ProperyValue; otherwise, false. |
Remarks
Equal only if same type. PropertyArray and PropertyMap don't have EqaulTo method. In that case, always return false. EqualTo API consider absolute/relative error internally.
Declaration
C#Copypublic bool Get(out bool boolValue)
Parameters
Type | Name | Description |
---|---|---|
Boolean | boolValue | On return, a boolean value. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the value is successfully retrieved, false if the type is not convertible. |
API Level: 3
Declaration
C#Copypublic bool Get(out int integerValue)
Parameters
Type | Name | Description |
---|---|---|
Int32 | integerValue | On return, an integer value. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the value is successfully retrieved, false if the type is not convertible. |
API Level: 3
Declaration
C#Copypublic bool Get(out float floatValue)
Parameters
Type | Name | Description |
---|---|---|
Single | floatValue | On return, a floating-point value. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the value is successfully retrieved, false if the type is not convertible. |
API Level: 3
Declaration
C#Copypublic bool Get(out string stringValue)
Parameters
Type | Name | Description |
---|---|---|
String | stringValue | On return, a string. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the value is successfully retrieved, false if the type is not convertible. |
API Level: 3
Declaration
C#Copypublic bool Get(Color vectorValue)
Parameters
Type | Name | Description |
---|---|---|
Color | vectorValue | On return, a color value. |
Returns
Type | Description |
---|---|
Boolean |
API Level: 3
Declaration
C#Copypublic bool Get(Extents extentsValue)
Parameters
Type | Name | Description |
---|---|---|
Extents | extentsValue | On return, a extents. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the value is successfully retrieved, false if the type is not convertible. |
API Level: 4
Declaration
C#Copypublic bool Get(Position vectorValue)
Parameters
Type | Name | Description |
---|---|---|
Position | vectorValue | On return, a position value. |
Returns
Type | Description |
---|---|
Boolean |
API Level: 3
Declaration
C#Copypublic bool Get(Position2D vectorValue)
Parameters
Type | Name | Description |
---|---|---|
Position2D | vectorValue | On return, a Position2D value. |
Returns
Type | Description |
---|---|
Boolean |
API Level: 3
Declaration
C#Copypublic bool Get(PropertyArray arrayValue)
Parameters
Type | Name | Description |
---|---|---|
PropertyArray | arrayValue | On return, the array as a vector property values. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the value is successfully retrieved, false if the type is not convertible. |
API Level: 3
Declaration
C#Copypublic bool Get(PropertyMap mapValue)
Parameters
Type | Name | Description |
---|---|---|
PropertyMap | mapValue | On return, the map as vector of string and property value pairs. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the value is successfully retrieved, false if the type is not convertible. |
API Level: 3
Declaration
C#Copypublic bool Get(ref PropertyMap mapValue)
Parameters
Type | Name | Description |
---|---|---|
PropertyMap | mapValue | On return, the map as vector of string and property value pairs. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the value is successfully retrieved, false if the type is not convertible. |
Declaration
C#Copypublic bool Get(Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
Rectangle | rect | On return, an integer rectangle. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the value is successfully retrieved, false if the type is not convertible. |
API Level: 3
Declaration
C#Copypublic bool Get(RelativeVector2 vectorValue)
Parameters
Type | Name | Description |
---|---|---|
RelativeVector2 | vectorValue | On return, a vector value. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the value is successfully retrieved, false if the type is not convertible. |
API Level: 5
Declaration
C#Copypublic bool Get(RelativeVector3 vectorValue)
Parameters
Type | Name | Description |
---|---|---|
RelativeVector3 | vectorValue | On return, a vector value. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the value is successfully retrieved, false if the type is not convertible. |
API Level: 5
Declaration
C#Copypublic bool Get(RelativeVector4 vectorValue)
Parameters
Type | Name | Description |
---|---|---|
RelativeVector4 | vectorValue | On return, a vector value. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the value is successfully retrieved, false if the type is not convertible. |
API Level: 5
Declaration
C#Copypublic bool Get(Rotation quaternionValue)
Parameters
Type | Name | Description |
---|---|---|
Rotation | quaternionValue | On return, a rotation value. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the value is successfully retrieved, false if the type is not convertible. |
API Level: 3
Declaration
C#Copypublic bool Get(Size vectorValue)
Parameters
Type | Name | Description |
---|---|---|
Size | vectorValue | On return, a size value. |
Returns
Type | Description |
---|---|
Boolean |
Declaration
C#Copypublic bool Get(Size2D vectorValue)
Parameters
Type | Name | Description |
---|---|---|
Size2D | vectorValue | On return, a Size2D value. |
Returns
Type | Description |
---|---|
Boolean |
API Level: 3
Declaration
C#Copypublic bool Get(Vector2 vectorValue)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | vectorValue | On return, a vector value. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the value is successfully retrieved, false if the type is not convertible. |
API Level: 3
Declaration
C#Copypublic bool Get(Vector3 vectorValue)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vectorValue | On return, a vector value. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the value is successfully retrieved, false if the type is not convertible. |
API Level: 3
Declaration
C#Copypublic bool Get(Vector4 vectorValue)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | vectorValue | On return, a vector value. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the value is successfully retrieved, false if the type is not convertible. |
API Level: 3
Declaration
C#Copypublic PropertyType GetType()
Returns
Type | Description |
---|---|
PropertyType | The type ID |
API Level: 3
NotEqualTo(PropertyValue)
Determines whether the ProperyValue doesn't have equal value with the current ProperyValue.
Declaration
C#Copypublic bool NotEqualTo(PropertyValue rhs)
Parameters
Type | Name | Description |
---|---|---|
PropertyValue | rhs | The ProperyValue to compare with the current ProperyValue. |
Returns
Type | Description |
---|---|
Boolean | true if the specified ProperyValue is not equal to the current ProperyValue; otherwise, false. |
Remarks
Same as !EqualTo(rhs);
Declaration
C#Copyprotected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Runtime.InteropServices.HandleRef | swigCPtr |