Class ItemObject
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
- API Level:
- preview
The ItemObject is used to manage the item object.
C#Copypublic class ItemObject
- Inheritance
-
System.ObjectItemObject
- Derived
Constructors
Declaration
C#Copyprotected ItemObject(IntPtr handle)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | handle | IntPtr |
API Level: preview
ItemObject(IntPtr, EvasObject)
Creates and initializes a new instance of the ItemObject class with parent object.
Declaration
C#Copyprotected ItemObject(IntPtr handle, EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | handle | IntPtr |
EvasObject | parent | Parent EvasObject |
API Level: preview
Properties
Declaration
C#Copypublic int Id { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: preview
Declaration
C#Copypublic bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
API Level: preview
Declaration
C#Copypublic EvasObject Parent { get; }
Property Value
Type | Description |
---|---|
EvasObject |
API Level: preview
Declaration
C#Copypublic virtual string Style { get; set; }
Property Value
Type | Description |
---|---|
System.String |
API Level: preview
Declaration
C#Copypublic EvasObject TrackObject { get; }
Property Value
Type | Description |
---|---|
EvasObject |
API Level: preview
Methods
AddSignalHandler(String, String, Func<String, String, Boolean>)
Adds a function for a signal emitted by the object item edje.
Declaration
C#Copypublic void AddSignalHandler(string emission, string source, Func<string, string, bool> func)
Parameters
Type | Name | Description |
---|---|---|
System.String | emission | The signal's name. |
System.String | source | The signal's source. |
System.Func<System.String, System.String, System.Boolean> | func | The function to be executed when the signal is emitted. |
API Level: preview
Declaration
C#Copypublic void Delete()
API Level: preview
Declaration
C#Copypublic void DeletePartColor(string part)
Parameters
Type | Name | Description |
---|---|---|
System.String | part | The text part name. |
API Level: preview
Declaration
C#Copypublic void EmitSignal(string emission, string source)
Parameters
Type | Name | Description |
---|---|---|
System.String | emission | The signal's name. |
System.String | source | The signal's source. |
API Level: preview
Declaration
C#Copypublic Color GetPartColor(string part)
Parameters
Type | Name | Description |
---|---|---|
System.String | part | The text part name (null for the default label). |
Returns
Type | Description |
---|---|
Color | The color of an object item. |
API Level: preview
Declaration
C#Copypublic string GetPartText(string part)
Parameters
Type | Name | Description |
---|---|---|
System.String | part | The text part name (null for the default label). |
Returns
Type | Description |
---|---|
System.String |
API Level: preview
Declaration
C#Copyprotected virtual void OnInvalidate()
API Level: preview
RemoveSignalHandler(String, String, Func<String, String, Boolean>)
Removes a signal-triggered function from the object item edje object.
Declaration
C#Copypublic void RemoveSignalHandler(string emission, string source, Func<string, string, bool> func)
Parameters
Type | Name | Description |
---|---|---|
System.String | emission | The signal's name. |
System.String | source | The signal's source. |
System.Func<System.String, System.String, System.Boolean> | func | The function to be executed when the signal is emitted. |
API Level: preview
Declaration
C#Copypublic void SetPartColor(string part, Color color)
Parameters
Type | Name | Description |
---|---|---|
System.String | part | The text part name (null for the default label). |
Color | color | The color. |
API Level: preview
SetPartContent(String, EvasObject)
Sets a content of an object item and deletes the old content.
Declaration
C#Copypublic void SetPartContent(string part, EvasObject content)
Parameters
Type | Name | Description |
---|---|---|
System.String | part | The content part name (null for the default content). |
EvasObject | content | The content of the object item. |
API Level: preview
Declaration
C#Copypublic void SetPartContent(string part, EvasObject content, bool preserveOldContent)
Parameters
Type | Name | Description |
---|---|---|
System.String | part | The content part name (null for the default content) |
EvasObject | content | The content of the object item. |
System.Boolean | preserveOldContent | Judge whether to delete the old content. |
API Level: preview
Declaration
C#Copypublic void SetPartText(string part, string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | part | The text part name (null for the default label). |
System.String | text | Text of the label. |
API Level: preview
Events
Declaration
C#Copypublic event EventHandler Deleted
Event Type
Type | Description |
---|---|
System.EventHandler |
API Level: preview
Operators
Declaration
C#Copypublic static implicit operator IntPtr(ItemObject obj)
Parameters
Type | Name | Description |
---|---|---|
ItemObject | obj | ItemObject |
Returns
Type | Description |
---|---|
System.IntPtr |