1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
20 // This file was automatically generated by SWIG (http://www.swig.org).
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
27 namespace Tizen.NUI.BaseComponents
31 using System.Runtime.InteropServices;
34 /// A control which provides a multi-line editable text editor.
36 public class TextEditor : View
38 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
40 internal TextEditor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextEditor_SWIGUpcast(cPtr), cMemoryOwn)
42 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
43 // By default, we do not want the position to use the anchor point
44 PositionUsesAnchorPoint = false;
47 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextEditor obj)
49 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
55 protected override void Dispose(DisposeTypes type)
62 if(type == DisposeTypes.Explicit)
65 //Release your own managed resources here.
66 //You should release all of your own disposable objects here.
69 //Release your own unmanaged resources here.
70 //You should not access any managed member here except static instance.
71 //because the execution order of Finalizes is non-deterministic.
73 if (swigCPtr.Handle != global::System.IntPtr.Zero)
78 NDalicPINVOKE.delete_TextEditor(swigCPtr);
80 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
87 /// Event arguments that passed via TextChanged signal.
89 public class TextChangedEventArgs : EventArgs
91 private TextEditor _textEditor;
94 /// TextEditor - is the texteditor control which has the text contents changed.
96 public TextEditor TextEditor
109 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
110 private delegate void TextChangedCallbackDelegate(IntPtr textEditor);
111 private EventHandler<TextChangedEventArgs> _textEditorTextChangedEventHandler;
112 private TextChangedCallbackDelegate _textEditorTextChangedCallbackDelegate;
115 /// Event for TextChanged signal which can be used to subscribe/unsubscribe the event handler
116 /// provided by the user. TextChanged signal is emitted when the text changes.<br>
118 public event EventHandler<TextChangedEventArgs> TextChanged
122 if (_textEditorTextChangedEventHandler == null)
124 _textEditorTextChangedCallbackDelegate = (OnTextChanged);
125 TextChangedSignal().Connect(_textEditorTextChangedCallbackDelegate);
127 _textEditorTextChangedEventHandler += value;
131 _textEditorTextChangedEventHandler -= value;
132 if (_textEditorTextChangedEventHandler == null && TextChangedSignal().Empty() == false)
134 TextChangedSignal().Disconnect(_textEditorTextChangedCallbackDelegate);
139 private void OnTextChanged(IntPtr textEditor)
141 TextChangedEventArgs e = new TextChangedEventArgs();
143 // Populate all members of "e" (TextChangedEventArgs) with real data
144 e.TextEditor = Registry.GetManagedBaseHandleFromNativePtr(textEditor) as TextEditor;
146 if (_textEditorTextChangedEventHandler != null)
148 //here we send all data to user event handlers
149 _textEditorTextChangedEventHandler(this, e);
155 /// Event arguments that passed via ScrollStateChanged signal.
157 public class ScrollStateChangedEventArgs : EventArgs
159 private TextEditor _textEditor;
160 private ScrollState _scrollState;
163 /// TextEditor - is the texteditor control which has the scroll state changed.
165 public TextEditor TextEditor
178 /// ScrollState - is the texteditor control scroll state.
180 public ScrollState ScrollState
188 _scrollState = value;
193 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
194 private delegate void ScrollStateChangedCallbackDelegate(IntPtr textEditor, ScrollState state);
195 private EventHandler<ScrollStateChangedEventArgs> _textEditorScrollStateChangedEventHandler;
196 private ScrollStateChangedCallbackDelegate _textEditorScrollStateChangedCallbackDelegate;
199 /// Event for ScrollStateChanged signal which can be used to subscribe/unsubscribe the event handler
200 /// provided by the user. ScrollStateChanged signal is emitted when the scroll state changes.<br>
202 public event EventHandler<ScrollStateChangedEventArgs> ScrollStateChanged
206 if (_textEditorScrollStateChangedEventHandler == null)
208 _textEditorScrollStateChangedCallbackDelegate = OnScrollStateChanged;
209 ScrollStateChangedSignal(this).Connect(_textEditorScrollStateChangedCallbackDelegate);
211 _textEditorScrollStateChangedEventHandler += value;
215 _textEditorScrollStateChangedEventHandler -= value;
216 if (_textEditorScrollStateChangedEventHandler == null && ScrollStateChangedSignal(this).Empty() == false)
218 ScrollStateChangedSignal(this).Disconnect(_textEditorScrollStateChangedCallbackDelegate);
223 private void OnScrollStateChanged(IntPtr textEditor, ScrollState state)
225 ScrollStateChangedEventArgs e = new ScrollStateChangedEventArgs();
227 if (textEditor != null)
229 // Populate all members of "e" (ScrollStateChangedEventArgs) with real data
230 e.TextEditor = Registry.GetManagedBaseHandleFromNativePtr(textEditor) as TextEditor;
231 e.ScrollState = state;
234 if (_textEditorScrollStateChangedEventHandler != null)
236 //here we send all data to user event handlers
237 _textEditorScrollStateChangedEventHandler(this, e);
241 internal class Property
243 internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextEditor_Property_RENDERING_BACKEND_get();
244 internal static readonly int TEXT = NDalicPINVOKE.TextEditor_Property_TEXT_get();
245 internal static readonly int TEXT_COLOR = NDalicPINVOKE.TextEditor_Property_TEXT_COLOR_get();
246 internal static readonly int FONT_FAMILY = NDalicPINVOKE.TextEditor_Property_FONT_FAMILY_get();
247 internal static readonly int FONT_STYLE = NDalicPINVOKE.TextEditor_Property_FONT_STYLE_get();
248 internal static readonly int POINT_SIZE = NDalicPINVOKE.TextEditor_Property_POINT_SIZE_get();
249 internal static readonly int HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TextEditor_Property_HORIZONTAL_ALIGNMENT_get();
250 internal static readonly int SCROLL_THRESHOLD = NDalicPINVOKE.TextEditor_Property_SCROLL_THRESHOLD_get();
251 internal static readonly int SCROLL_SPEED = NDalicPINVOKE.TextEditor_Property_SCROLL_SPEED_get();
252 internal static readonly int PRIMARY_CURSOR_COLOR = NDalicPINVOKE.TextEditor_Property_PRIMARY_CURSOR_COLOR_get();
253 internal static readonly int SECONDARY_CURSOR_COLOR = NDalicPINVOKE.TextEditor_Property_SECONDARY_CURSOR_COLOR_get();
254 internal static readonly int ENABLE_CURSOR_BLINK = NDalicPINVOKE.TextEditor_Property_ENABLE_CURSOR_BLINK_get();
255 internal static readonly int CURSOR_BLINK_INTERVAL = NDalicPINVOKE.TextEditor_Property_CURSOR_BLINK_INTERVAL_get();
256 internal static readonly int CURSOR_BLINK_DURATION = NDalicPINVOKE.TextEditor_Property_CURSOR_BLINK_DURATION_get();
257 internal static readonly int CURSOR_WIDTH = NDalicPINVOKE.TextEditor_Property_CURSOR_WIDTH_get();
258 internal static readonly int GRAB_HANDLE_IMAGE = NDalicPINVOKE.TextEditor_Property_GRAB_HANDLE_IMAGE_get();
259 internal static readonly int GRAB_HANDLE_PRESSED_IMAGE = NDalicPINVOKE.TextEditor_Property_GRAB_HANDLE_PRESSED_IMAGE_get();
260 internal static readonly int SELECTION_HANDLE_IMAGE_LEFT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_IMAGE_LEFT_get();
261 internal static readonly int SELECTION_HANDLE_IMAGE_RIGHT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_IMAGE_RIGHT_get();
262 internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_LEFT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_PRESSED_IMAGE_LEFT_get();
263 internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT_get();
264 internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_LEFT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_MARKER_IMAGE_LEFT_get();
265 internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_RIGHT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_MARKER_IMAGE_RIGHT_get();
266 internal static readonly int SELECTION_HIGHLIGHT_COLOR = NDalicPINVOKE.TextEditor_Property_SELECTION_HIGHLIGHT_COLOR_get();
267 internal static readonly int DECORATION_BOUNDING_BOX = NDalicPINVOKE.TextEditor_Property_DECORATION_BOUNDING_BOX_get();
268 internal static readonly int ENABLE_MARKUP = NDalicPINVOKE.TextEditor_Property_ENABLE_MARKUP_get();
269 internal static readonly int INPUT_COLOR = NDalicPINVOKE.TextEditor_Property_INPUT_COLOR_get();
270 internal static readonly int INPUT_FONT_FAMILY = NDalicPINVOKE.TextEditor_Property_INPUT_FONT_FAMILY_get();
271 internal static readonly int INPUT_FONT_STYLE = NDalicPINVOKE.TextEditor_Property_INPUT_FONT_STYLE_get();
272 internal static readonly int INPUT_POINT_SIZE = NDalicPINVOKE.TextEditor_Property_INPUT_POINT_SIZE_get();
273 internal static readonly int LINE_SPACING = NDalicPINVOKE.TextEditor_Property_LINE_SPACING_get();
274 internal static readonly int INPUT_LINE_SPACING = NDalicPINVOKE.TextEditor_Property_INPUT_LINE_SPACING_get();
275 internal static readonly int UNDERLINE = NDalicPINVOKE.TextEditor_Property_UNDERLINE_get();
276 internal static readonly int INPUT_UNDERLINE = NDalicPINVOKE.TextEditor_Property_INPUT_UNDERLINE_get();
277 internal static readonly int SHADOW = NDalicPINVOKE.TextEditor_Property_SHADOW_get();
278 internal static readonly int INPUT_SHADOW = NDalicPINVOKE.TextEditor_Property_INPUT_SHADOW_get();
279 internal static readonly int EMBOSS = NDalicPINVOKE.TextEditor_Property_EMBOSS_get();
280 internal static readonly int INPUT_EMBOSS = NDalicPINVOKE.TextEditor_Property_INPUT_EMBOSS_get();
281 internal static readonly int OUTLINE = NDalicPINVOKE.TextEditor_Property_OUTLINE_get();
282 internal static readonly int INPUT_OUTLINE = NDalicPINVOKE.TextEditor_Property_INPUT_OUTLINE_get();
283 internal static readonly int SMOOTH_SCROLL = NDalicManualPINVOKE.TextEditor_Property_SMOOTH_SCROLL_get();
284 internal static readonly int SMOOTH_SCROLL_DURATION = NDalicManualPINVOKE.TextEditor_Property_SMOOTH_SCROLL_DURATION_get();
285 internal static readonly int ENABLE_SCROLL_BAR = NDalicManualPINVOKE.TextEditor_Property_ENABLE_SCROLL_BAR_get();
286 internal static readonly int SCROLL_BAR_SHOW_DURATION = NDalicManualPINVOKE.TextEditor_Property_SCROLL_BAR_SHOW_DURATION_get();
287 internal static readonly int SCROLL_BAR_FADE_DURATION = NDalicManualPINVOKE.TextEditor_Property_SCROLL_BAR_FADE_DURATION_get();
288 internal static readonly int PIXEL_SIZE = NDalicManualPINVOKE.TextEditor_Property_PIXEL_SIZE_get();
289 internal static readonly int LINE_COUNT = NDalicManualPINVOKE.TextEditor_Property_LINE_COUNT_get();
290 internal static readonly int PLACEHOLDER_TEXT = NDalicManualPINVOKE.TextEditor_Property_PLACEHOLDER_TEXT_get();
291 internal static readonly int PLACEHOLDER_TEXT_COLOR = NDalicManualPINVOKE.TextEditor_Property_PLACEHOLDER_TEXT_COLOR_get();
295 internal class InputStyle
304 LineSpacing = 0x0010,
313 /// Creates the TextEditor control.
315 public TextEditor() : this(NDalicPINVOKE.TextEditor_New(), true)
317 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
320 internal TextEditor(TextEditor handle) : this(NDalicPINVOKE.new_TextEditor__SWIG_1(TextEditor.getCPtr(handle)), true)
322 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
325 internal TextEditorSignal TextChangedSignal()
327 TextEditorSignal ret = new TextEditorSignal(NDalicPINVOKE.TextEditor_TextChangedSignal(swigCPtr), false);
328 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
332 internal ScrollStateChangedSignal ScrollStateChangedSignal(TextEditor textEditor)
334 ScrollStateChangedSignal ret = new ScrollStateChangedSignal(NDalicManualPINVOKE.TextEditor_ScrollStateChangedSignal(TextEditor.getCPtr(textEditor)), false);
335 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
339 internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t InputStyleChangedSignal()
341 SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t ret = new SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t(NDalicPINVOKE.TextEditor_InputStyleChangedSignal(swigCPtr), false);
342 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
354 GetProperty(TextEditor.Property.TEXT).Get(out temp);
359 SetProperty(TextEditor.Property.TEXT, new Tizen.NUI.PropertyValue(value));
364 /// Text color property.
366 public Vector4 TextColor
370 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
371 GetProperty(TextEditor.Property.TEXT_COLOR).Get(temp);
376 SetProperty(TextEditor.Property.TEXT_COLOR, new Tizen.NUI.PropertyValue(value));
381 /// Font family property.
383 public string FontFamily
388 GetProperty(TextEditor.Property.FONT_FAMILY).Get(out temp);
393 SetProperty(TextEditor.Property.FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
398 /// Font style property.
400 public PropertyMap FontStyle
404 PropertyMap temp = new PropertyMap();
405 GetProperty(TextEditor.Property.FONT_STYLE).Get(temp);
410 SetProperty(TextEditor.Property.FONT_STYLE, new Tizen.NUI.PropertyValue(value));
415 /// Point size property.
417 public float PointSize
422 GetProperty(TextEditor.Property.POINT_SIZE).Get(out temp);
427 SetProperty(TextEditor.Property.POINT_SIZE, new Tizen.NUI.PropertyValue(value));
432 /// Horizontal alignment property.
434 public HorizontalAlignment HorizontalAlignment
439 if (GetProperty(TextEditor.Property.HORIZONTAL_ALIGNMENT).Get(out temp) == false)
442 Tizen.Log.Error("NUI", "HorizontalAlignment get error!");
449 return HorizontalAlignment.Begin;
451 return HorizontalAlignment.Center;
453 return HorizontalAlignment.End;
455 return HorizontalAlignment.Begin;
460 string valueToString = "";
463 case HorizontalAlignment.Begin:
465 valueToString = "BEGIN";
468 case HorizontalAlignment.Center:
470 valueToString = "CENTER";
473 case HorizontalAlignment.End:
475 valueToString = "END";
480 valueToString = "BEGIN";
484 SetProperty(TextEditor.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
489 /// Scroll threshold property.
491 public float ScrollThreshold
496 GetProperty(TextEditor.Property.SCROLL_THRESHOLD).Get(out temp);
501 SetProperty(TextEditor.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue(value));
506 /// Scroll speed property.
508 public float ScrollSpeed
513 GetProperty(TextEditor.Property.SCROLL_SPEED).Get(out temp);
518 SetProperty(TextEditor.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue(value));
523 /// Primary cursor color property.
525 public Vector4 PrimaryCursorColor
529 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
530 GetProperty(TextEditor.Property.PRIMARY_CURSOR_COLOR).Get(temp);
535 SetProperty(TextEditor.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
540 /// SecondaryCursorColor property.
542 public Vector4 SecondaryCursorColor
546 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
547 GetProperty(TextEditor.Property.SECONDARY_CURSOR_COLOR).Get(temp);
552 SetProperty(TextEditor.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
557 /// EnableCursorBlink property.
559 public bool EnableCursorBlink
564 GetProperty(TextEditor.Property.ENABLE_CURSOR_BLINK).Get(out temp);
569 SetProperty(TextEditor.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue(value));
574 /// CursorBlinkInterval property.
576 public float CursorBlinkInterval
581 GetProperty(TextEditor.Property.CURSOR_BLINK_INTERVAL).Get(out temp);
586 SetProperty(TextEditor.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue(value));
591 /// CursorBlinkDuration property.
593 public float CursorBlinkDuration
598 GetProperty(TextEditor.Property.CURSOR_BLINK_DURATION).Get(out temp);
603 SetProperty(TextEditor.Property.CURSOR_BLINK_DURATION, new Tizen.NUI.PropertyValue(value));
608 /// CursorWidth property.
610 public int CursorWidth
615 GetProperty(TextEditor.Property.CURSOR_WIDTH).Get(out temp);
620 SetProperty(TextEditor.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue(value));
625 /// GrabHandleImage property.
627 public string GrabHandleImage
632 GetProperty(TextEditor.Property.GRAB_HANDLE_IMAGE).Get(out temp);
637 SetProperty(TextEditor.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue(value));
642 /// GrabHandlePressedImage property.
644 public string GrabHandlePressedImage
649 GetProperty(TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);
654 SetProperty(TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue(value));
659 /// SelectionHandleImageLeft property.
661 public PropertyMap SelectionHandleImageLeft
665 PropertyMap temp = new PropertyMap();
666 GetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT).Get(temp);
671 SetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
676 /// SelectionHandleImageRight property.
678 public PropertyMap SelectionHandleImageRight
682 PropertyMap temp = new PropertyMap();
683 GetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT).Get(temp);
688 SetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
693 /// SelectionHandlePressedImageLeft property.
695 public PropertyMap SelectionHandlePressedImageLeft
699 PropertyMap temp = new PropertyMap();
700 GetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT).Get(temp);
705 SetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
710 /// SelectionHandlePressedImageRight property.
712 public PropertyMap SelectionHandlePressedImageRight
716 PropertyMap temp = new PropertyMap();
717 GetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT).Get(temp);
722 SetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
727 /// SelectionHandleMarkerImageLeft property.
729 public PropertyMap SelectionHandleMarkerImageLeft
733 PropertyMap temp = new PropertyMap();
734 GetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT).Get(temp);
739 SetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
744 /// SelectionHandleMarkerImageRight property.
746 public PropertyMap SelectionHandleMarkerImageRight
750 PropertyMap temp = new PropertyMap();
751 GetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT).Get(temp);
756 SetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
761 /// SelectionHighlightColor property.
763 public Vector4 SelectionHighlightColor
767 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
768 GetProperty(TextEditor.Property.SELECTION_HIGHLIGHT_COLOR).Get(temp);
773 SetProperty(TextEditor.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue(value));
778 /// DecorationBoundingBox property.
780 public Rectangle DecorationBoundingBox
784 Rectangle temp = new Rectangle(0, 0, 0, 0);
785 GetProperty(TextEditor.Property.DECORATION_BOUNDING_BOX).Get(temp);
790 SetProperty(TextEditor.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue(value));
795 /// EnableMarkup property.
797 public bool EnableMarkup
802 GetProperty(TextEditor.Property.ENABLE_MARKUP).Get(out temp);
807 SetProperty(TextEditor.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue(value));
812 /// InputColor property.
814 public Vector4 InputColor
818 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
819 GetProperty(TextEditor.Property.INPUT_COLOR).Get(temp);
824 SetProperty(TextEditor.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue(value));
829 /// InputFontFamily property.
831 public string InputFontFamily
836 GetProperty(TextEditor.Property.INPUT_FONT_FAMILY).Get(out temp);
841 SetProperty(TextEditor.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
846 /// InputFontStyle property.
848 public PropertyMap InputFontStyle
852 PropertyMap temp = new PropertyMap();
853 GetProperty(TextEditor.Property.INPUT_FONT_STYLE).Get(temp);
858 SetProperty(TextEditor.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue(value));
863 /// InputPointSize property.
865 public float InputPointSize
870 GetProperty(TextEditor.Property.INPUT_POINT_SIZE).Get(out temp);
875 SetProperty(TextEditor.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue(value));
880 /// LineSpacing property.
882 public float LineSpacing
887 GetProperty(TextEditor.Property.LINE_SPACING).Get(out temp);
892 SetProperty(TextEditor.Property.LINE_SPACING, new Tizen.NUI.PropertyValue(value));
897 /// InputLineSpacing property.
899 public float InputLineSpacing
904 GetProperty(TextEditor.Property.INPUT_LINE_SPACING).Get(out temp);
909 SetProperty(TextEditor.Property.INPUT_LINE_SPACING, new Tizen.NUI.PropertyValue(value));
914 /// Underline property.
916 public PropertyMap Underline
920 PropertyMap temp = new PropertyMap();
921 GetProperty(TextEditor.Property.UNDERLINE).Get(temp);
926 SetProperty(TextEditor.Property.UNDERLINE, new Tizen.NUI.PropertyValue(value));
931 /// InputUnderline property.
933 public string InputUnderline
938 GetProperty(TextEditor.Property.INPUT_UNDERLINE).Get(out temp);
943 SetProperty(TextEditor.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue(value));
950 public PropertyMap Shadow
954 PropertyMap temp = new PropertyMap();
955 GetProperty(TextEditor.Property.SHADOW).Get(temp);
960 SetProperty(TextEditor.Property.SHADOW, new Tizen.NUI.PropertyValue(value));
965 /// InputShadow property.
967 public string InputShadow
972 GetProperty(TextEditor.Property.INPUT_SHADOW).Get(out temp);
977 SetProperty(TextEditor.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue(value));
989 GetProperty(TextEditor.Property.EMBOSS).Get(out temp);
994 SetProperty(TextEditor.Property.EMBOSS, new Tizen.NUI.PropertyValue(value));
999 /// InputEmboss property.
1001 public string InputEmboss
1006 GetProperty(TextEditor.Property.INPUT_EMBOSS).Get(out temp);
1011 SetProperty(TextEditor.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue(value));
1016 /// Outline property.
1018 public string Outline
1023 GetProperty(TextEditor.Property.OUTLINE).Get(out temp);
1028 SetProperty(TextEditor.Property.OUTLINE, new Tizen.NUI.PropertyValue(value));
1033 /// InputOutline property.
1035 public string InputOutline
1040 GetProperty(TextEditor.Property.INPUT_OUTLINE).Get(out temp);
1045 SetProperty(TextEditor.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue(value));
1050 /// SmoothScroll property.
1052 public bool SmoothScroll
1057 GetProperty(TextEditor.Property.SMOOTH_SCROLL).Get(out temp);
1062 SetProperty(TextEditor.Property.SMOOTH_SCROLL, new Tizen.NUI.PropertyValue(value));
1067 /// SmoothScrollDuration property.
1069 public float SmoothScrollDuration
1074 GetProperty(TextEditor.Property.SMOOTH_SCROLL_DURATION).Get(out temp);
1079 SetProperty(TextEditor.Property.SMOOTH_SCROLL_DURATION, new Tizen.NUI.PropertyValue(value));
1084 /// EnableScrollBar property.
1086 public bool EnableScrollBar
1091 GetProperty(TextEditor.Property.ENABLE_SCROLL_BAR).Get(out temp);
1096 SetProperty(TextEditor.Property.ENABLE_SCROLL_BAR, new Tizen.NUI.PropertyValue(value));
1101 /// ScrollBarShowDuration property.
1103 public float ScrollBarShowDuration
1108 GetProperty(TextEditor.Property.SCROLL_BAR_SHOW_DURATION).Get(out temp);
1113 SetProperty(TextEditor.Property.SCROLL_BAR_SHOW_DURATION, new Tizen.NUI.PropertyValue(value));
1118 /// ScrollBarFadeDuration property.
1120 public float ScrollBarFadeDuration
1125 GetProperty(TextEditor.Property.SCROLL_BAR_FADE_DURATION).Get(out temp);
1130 SetProperty(TextEditor.Property.SCROLL_BAR_FADE_DURATION, new Tizen.NUI.PropertyValue(value));
1135 /// PixelSize property.
1137 public float PixelSize
1142 GetProperty(TextEditor.Property.PIXEL_SIZE).Get(out temp);
1147 SetProperty(TextEditor.Property.PIXEL_SIZE, new Tizen.NUI.PropertyValue(value));
1152 /// The line count of text.
1154 public int LineCount
1159 GetProperty(TextEditor.Property.LINE_COUNT).Get(out temp);
1165 /// The text to display when the TextEditor is empty and inactive.
1167 public string PlaceholderText
1172 GetProperty(TextEditor.Property.PLACEHOLDER_TEXT).Get(out temp);
1177 SetProperty(TextEditor.Property.PLACEHOLDER_TEXT, new Tizen.NUI.PropertyValue(value));
1182 /// The placeholder-text color.
1184 public Color PlaceholderTextColor
1188 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1189 GetProperty(TextEditor.Property.PLACEHOLDER_TEXT_COLOR).Get(temp);
1194 SetProperty(TextEditor.Property.PLACEHOLDER_TEXT_COLOR, new Tizen.NUI.PropertyValue(value));