2 using System.Collections.Generic;
12 /// The MoreOptioniItem is an item used by more option widget.
14 /// <since_tizen> 6 </since_tizen>
15 public class MoreOptionItem
17 const string MainTextPartName = "selector,main_text";
18 const string SubTextPartName = "selector,sub_text";
19 const string IconPartName = "item,icon";
26 public IntPtr _handle;
27 public IntPtr NativeHandle
31 if (_handle == value) return;
34 if (_handle == null) return;
36 if (_mainText != null)
37 Interop.Eext.eext_more_option_item_part_text_set(NativeHandle, MainTextPartName, _mainText);
39 Interop.Eext.eext_more_option_item_part_text_set(NativeHandle, SubTextPartName, _subText);
41 Interop.Eext.eext_more_option_item_part_content_set(NativeHandle, IconPartName, _icon.NativeHandle);
50 /// Sets or gets the main text.
52 /// <since_tizen> 6 </since_tizen>
53 public string MainText
57 if (_mainText == value) return;
59 if (NativeHandle != IntPtr.Zero)
61 Interop.Eext.eext_more_option_item_part_text_set(NativeHandle, MainTextPartName, _mainText);
72 /// Sets or gets the sub text.
74 /// <since_tizen> 6 </since_tizen>
79 if (_subText == value) return;
81 if (NativeHandle != IntPtr.Zero)
83 Interop.Eext.eext_more_option_item_part_text_set(NativeHandle, SubTextPartName, _subText);
94 /// Sets or gets the icon image.
96 /// <since_tizen> 6 </since_tizen>
101 if (_icon != null) _preIcon = _icon;
102 if (_icon == value) return;
105 if (NativeHandle != IntPtr.Zero)
107 if (_preIcon != null)
108 _preIcon.SetVisible(false);
109 Interop.Eext.eext_more_option_item_part_content_set(NativeHandle, IconPartName, _icon.NativeHandle);