Show / Hide Table of Contents

    Class ItemObject

    Definition

    Namespace:
    ElmSharp
    Assembly:
    ElmSharp.dll
    API Level:
    preview

    The ItemObject is used to manage the item object.

    public class ItemObject
    Inheritance
    Object
    ItemObject
    Derived
    ColorSelectorItem
    ColorSelectorItem
    ContextPopupItem
    ContextPopupItem
    FlipSelectorItem
    FlipSelectorItem
    GenItem
    GenItem
    HoverselItem
    HoverselItem
    IndexItem
    IndexItem
    ListItem
    ListItem
    MultiButtonEntryItem
    MultiButtonEntryItem
    NaviItem
    NaviItem
    PopupItem
    PopupItem
    ToolbarItem
    ToolbarItem

    Constructors

    View Source

    ItemObject(IntPtr)

    Creates and initializes a new instance of the ItemObject class.

    Declaration
    protected ItemObject(IntPtr handle)
    Parameters
    Type Name Description
    IntPtr handle

    IntPtr

    API Level: preview
    View Source

    ItemObject(IntPtr, EvasObject)

    Creates and initializes a new instance of the ItemObject class with parent object.

    Declaration
    protected ItemObject(IntPtr handle, EvasObject parent)
    Parameters
    Type Name Description
    IntPtr handle

    IntPtr

    EvasObject parent

    Parent EvasObject

    API Level: preview

    Properties

    View Source

    Id

    Gets the ID of the item object.

    Declaration
    public int Id { get; }
    Property Value
    Type Description
    Int32
    API Level: preview
    View Source

    IsEnabled

    Sets or gets whether the item object is enabled.

    Declaration
    public bool IsEnabled { get; set; }
    Property Value
    Type Description
    Boolean
    API Level: preview
    View Source

    Parent

    Gets the parent object for ItemObject.

    Declaration
    public EvasObject Parent { get; }
    Property Value
    Type Description
    EvasObject
    API Level: preview
    View Source

    Style

    Sets or gets the style of the item.

    Declaration
    public virtual string Style { get; set; }
    Property Value
    Type Description
    String
    API Level: preview
    View Source

    TrackObject

    Gets the track object of the item.

    Declaration
    public EvasObject TrackObject { get; }
    Property Value
    Type Description
    EvasObject
    API Level: preview

    Methods

    View Source

    AddSignalHandler(String, String, Func<String, String, Boolean>)

    Adds a function for a signal emitted by the object item edje.

    Declaration
    public void AddSignalHandler(string emission, string source, Func<string, string, bool> func)
    Parameters
    Type Name Description
    String emission

    The signal's name.

    String source

    The signal's source.

    Func<String, String, Boolean> func

    The function to be executed when the signal is emitted.

    API Level: preview
    View Source

    Delete()

    Deletes the item object.

    Declaration
    public void Delete()
    API Level: preview
    View Source

    DeletePartColor(String)

    Deletes the color of the object item.

    Declaration
    public void DeletePartColor(string part)
    Parameters
    Type Name Description
    String part

    The text part name.

    API Level: preview
    View Source

    EmitSignal(String, String)

    Send a signal to the edje object of the widget item.

    Declaration
    public void EmitSignal(string emission, string source)
    Parameters
    Type Name Description
    String emission

    The signal's name.

    String source

    The signal's source.

    API Level: preview
    View Source

    GetPartColor(String)

    Gets the color of the object item.

    Declaration
    public Color GetPartColor(string part)
    Parameters
    Type Name Description
    String part

    The text part name (null for the default label).

    Returns
    Type Description
    Color

    The color of an object item.

    API Level: preview
    View Source

    GetPartText(String)

    Gets the label of the object item.

    Declaration
    public string GetPartText(string part)
    Parameters
    Type Name Description
    String part

    The text part name (null for the default label).

    Returns
    Type Description
    String
    API Level: preview
    View Source

    OnInvalidate()

    OnInvalidate of the object item.

    Declaration
    protected virtual void OnInvalidate()
    API Level: preview
    View Source

    RemoveSignalHandler(String, String, Func<String, String, Boolean>)

    Removes a signal-triggered function from the object item edje object.

    Declaration
    public void RemoveSignalHandler(string emission, string source, Func<string, string, bool> func)
    Parameters
    Type Name Description
    String emission

    The signal's name.

    String source

    The signal's source.

    Func<String, String, Boolean> func

    The function to be executed when the signal is emitted.

    API Level: preview
    View Source

    SetPartColor(String, Color)

    Sets the color of the object item.

    Declaration
    public void SetPartColor(string part, Color color)
    Parameters
    Type Name Description
    String part

    The text part name (null for the default label).

    Color color

    The color.

    API Level: preview
    View Source

    SetPartContent(String, EvasObject)

    Sets a content of an object item and deletes the old content.

    Declaration
    public void SetPartContent(string part, EvasObject content)
    Parameters
    Type Name Description
    String part

    The content part name (null for the default content).

    EvasObject content

    The content of the object item.

    API Level: preview
    View Source

    SetPartContent(String, EvasObject, Boolean)

    . Sets a content of the object item.

    Declaration
    public void SetPartContent(string part, EvasObject content, bool preserveOldContent)
    Parameters
    Type Name Description
    String part

    The content part name (null for the default content)

    EvasObject content

    The content of the object item.

    Boolean preserveOldContent

    Judge whether to delete the old content.

    API Level: preview
    View Source

    SetPartText(String, String)

    Sets the label of the object item.

    Declaration
    public void SetPartText(string part, string text)
    Parameters
    Type Name Description
    String part

    The text part name (null for the default label).

    String text

    Text of the label.

    API Level: preview

    Events

    View Source

    Deleted

    Deleted will be triggered when the item object is deleted.

    Declaration
    public event EventHandler Deleted
    Event Type
    Type Description
    EventHandler
    API Level: preview

    Operators

    View Source

    Implicit(ItemObject to IntPtr)

    Gets the handle of the object item.

    Declaration
    public static implicit operator IntPtr(ItemObject obj)
    Parameters
    Type Name Description
    ItemObject obj

    ItemObject

    Returns
    Type Description
    IntPtr
    API Level: preview

    Extension Methods

    ItemObjectExtension.GrabHighlight(ItemObject)
    ItemObjectExtension.ClearHighlight(ItemObject)
    • View Source
    Back to top Copyright © 2016-2020 Samsung
    Generated by DocFX