Class PropertyArray

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.dll

    An array of property values.

    public class PropertyArray : Disposable, IDisposable
    Inheritance
    object
    Disposable
    PropertyArray
    Implements
    System.IDisposable

    Constructors

    View Source

    PropertyArray()

    Default constructor of PropertyArray class.

    Declaration
    public PropertyArray()

    Properties

    View Source

    this[uint]

    The operator to access an element.

    Declaration
    public PropertyValue this[uint index] { get; }
    Parameters
    Type Name Description
    uint index

    The element index to access. No bounds checking is performed.

    Property Value
    Type Description
    PropertyValue

    The reference to the element.

    Methods

    View Source

    Add(KeyValue)

    Adds an keyvalue to the array. This function should be first

    Declaration
    public PropertyArray Add(KeyValue value)
    Parameters
    Type Name Description
    KeyValue value

    The value to add at the end of the array.

    Returns
    Type Description
    PropertyArray
    Exceptions
    Type Condition
    System.ArgumentNullException

    Thrown when value is null.

    View Source

    Add(PropertyValue)

    Adds an element to the array.

    Declaration
    public PropertyArray Add(PropertyValue value)
    Parameters
    Type Name Description
    PropertyValue value

    The value to add at the end of the array.

    Returns
    Type Description
    PropertyArray
    View Source

    Capacity()

    Retrieves the capacity of the array.

    Declaration
    public uint Capacity()
    Returns
    Type Description
    uint

    The allocated capacity of the array.

    View Source

    Clear()

    Clears the array. This method removes all elements from the PropertyArray, resulting in an empty array.

    Declaration
    public void Clear()
    View Source

    Count()

    Retrieves the number of elements in the array.

    Declaration
    public uint Count()
    Returns
    Type Description
    uint

    The number of elements in the array.

    View Source

    Empty()

    Returns whether the array is empty.

    Declaration
    public bool Empty()
    Returns
    Type Description
    bool

    Returns true if empty, false otherwise.

    View Source

    GetElementAt(uint)

    Accesses an element.

    Declaration
    public PropertyValue GetElementAt(uint index)
    Parameters
    Type Name Description
    uint index

    The element index to access. No bounds checking is performed.

    Returns
    Type Description
    PropertyValue

    The reference to the element.

    View Source

    PushBack(PropertyValue)

    Adds an element to the array.

    Declaration
    public void PushBack(PropertyValue value)
    Parameters
    Type Name Description
    PropertyValue value

    The value to add at the end of the array.

    View Source

    Reserve(uint)

    Increases the capacity of the array.

    Declaration
    public void Reserve(uint size)
    Parameters
    Type Name Description
    uint size

    The size to reserve.

    View Source

    Resize(uint)

    Resizes to size.

    Declaration
    public void Resize(uint size)
    Parameters
    Type Name Description
    uint size

    The size to resize

    View Source

    Size()

    Retrieves the number of elements in the array.

    Declaration
    public uint Size()
    Returns
    Type Description
    uint

    The number of elements in the array.

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX