Change PositionUsesAnchorPoint property to PositionUsesPivotPoint
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / TextEditor.cs
1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
2 *
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
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
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.
14 *
15 */
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
18 // <auto-generated />
19 //
20 // This file was automatically generated by SWIG (http://www.swig.org).
21 // Version 3.0.9
22 //
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
26
27 namespace Tizen.NUI.BaseComponents
28 {
29
30     using System;
31     using System.Runtime.InteropServices;
32
33     /// <summary>
34     /// A control which provides a multi-line editable text editor.
35     /// </summary>
36     public class TextEditor : View
37     {
38         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
39
40         internal TextEditor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextEditor_SWIGUpcast(cPtr), cMemoryOwn)
41         {
42             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
43         }
44
45         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextEditor obj)
46         {
47             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
48         }
49
50         /// <summary>
51         /// Dispose.
52         /// </summary>
53         protected override void Dispose(DisposeTypes type)
54         {
55             if (disposed)
56             {
57                 return;
58             }
59
60             if(type == DisposeTypes.Explicit)
61             {
62                 //Called by User
63                 //Release your own managed resources here.
64                 //You should release all of your own disposable objects here.
65             }
66
67             //Release your own unmanaged resources here.
68             //You should not access any managed member here except static instance.
69             //because the execution order of Finalizes is non-deterministic.
70
71             if (swigCPtr.Handle != global::System.IntPtr.Zero)
72             {
73                 if (swigCMemOwn)
74                 {
75                     swigCMemOwn = false;
76                     NDalicPINVOKE.delete_TextEditor(swigCPtr);
77                 }
78                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
79             }
80
81             base.Dispose(type);
82         }
83
84         /// <summary>
85         /// Event arguments that passed via TextChanged signal.
86         /// </summary>
87         public class TextChangedEventArgs : EventArgs
88         {
89             private TextEditor _textEditor;
90
91             /// <summary>
92             /// TextEditor - is the texteditor control which has the text contents changed.
93             /// </summary>
94             public TextEditor TextEditor
95             {
96                 get
97                 {
98                     return _textEditor;
99                 }
100                 set
101                 {
102                     _textEditor = value;
103                 }
104             }
105         }
106
107         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
108         private delegate void TextChangedCallbackDelegate(IntPtr textEditor);
109         private EventHandler<TextChangedEventArgs> _textEditorTextChangedEventHandler;
110         private TextChangedCallbackDelegate _textEditorTextChangedCallbackDelegate;
111
112         /// <summary>
113         /// Event for TextChanged signal which can be used to subscribe/unsubscribe the event handler
114         /// provided by the user. TextChanged signal is emitted when the text changes.<br>
115         /// </summary>
116         public event EventHandler<TextChangedEventArgs> TextChanged
117         {
118             add
119             {
120                 if (_textEditorTextChangedEventHandler == null)
121                 {
122                     _textEditorTextChangedCallbackDelegate = (OnTextChanged);
123                     TextChangedSignal().Connect(_textEditorTextChangedCallbackDelegate);
124                 }
125                 _textEditorTextChangedEventHandler += value;
126             }
127             remove
128             {
129                 _textEditorTextChangedEventHandler -= value;
130                 if (_textEditorTextChangedEventHandler == null && TextChangedSignal().Empty() == false)
131                 {
132                     TextChangedSignal().Disconnect(_textEditorTextChangedCallbackDelegate);
133                 }
134             }
135         }
136
137         private void OnTextChanged(IntPtr textEditor)
138         {
139             TextChangedEventArgs e = new TextChangedEventArgs();
140
141             // Populate all members of "e" (TextChangedEventArgs) with real data
142             e.TextEditor = Registry.GetManagedBaseHandleFromNativePtr(textEditor) as TextEditor;
143
144             if (_textEditorTextChangedEventHandler != null)
145             {
146                 //here we send all data to user event handlers
147                 _textEditorTextChangedEventHandler(this, e);
148             }
149
150         }
151
152         /// <summary>
153         /// Event arguments that passed via ScrollStateChanged signal.
154         /// </summary>
155         public class ScrollStateChangedEventArgs : EventArgs
156         {
157             private TextEditor _textEditor;
158             private ScrollState _scrollState;
159
160             /// <summary>
161             /// TextEditor - is the texteditor control which has the scroll state changed.
162             /// </summary>
163             public TextEditor TextEditor
164             {
165                 get
166                 {
167                     return _textEditor;
168                 }
169                 set
170                 {
171                     _textEditor = value;
172                 }
173             }
174
175             /// <summary>
176             /// ScrollState - is the texteditor control scroll state.
177             /// </summary>
178             public ScrollState ScrollState
179             {
180                 get
181                 {
182                     return _scrollState;
183                 }
184                 set
185                 {
186                     _scrollState = value;
187                 }
188             }
189         }
190
191         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
192         private delegate void ScrollStateChangedCallbackDelegate(IntPtr textEditor, ScrollState state);
193         private EventHandler<ScrollStateChangedEventArgs> _textEditorScrollStateChangedEventHandler;
194         private ScrollStateChangedCallbackDelegate _textEditorScrollStateChangedCallbackDelegate;
195
196         /// <summary>
197         /// Event for ScrollStateChanged signal which can be used to subscribe/unsubscribe the event handler
198         /// provided by the user. ScrollStateChanged signal is emitted when the scroll state changes.<br>
199         /// </summary>
200         public event EventHandler<ScrollStateChangedEventArgs> ScrollStateChanged
201         {
202             add
203             {
204                 if (_textEditorScrollStateChangedEventHandler == null)
205                 {
206                     _textEditorScrollStateChangedCallbackDelegate = OnScrollStateChanged;
207                     ScrollStateChangedSignal(this).Connect(_textEditorScrollStateChangedCallbackDelegate);
208                 }
209                 _textEditorScrollStateChangedEventHandler += value;
210             }
211             remove
212             {
213                 _textEditorScrollStateChangedEventHandler -= value;
214                 if (_textEditorScrollStateChangedEventHandler == null && ScrollStateChangedSignal(this).Empty() == false)
215                 {
216                     ScrollStateChangedSignal(this).Disconnect(_textEditorScrollStateChangedCallbackDelegate);
217                 }
218             }
219         }
220
221         private void OnScrollStateChanged(IntPtr textEditor, ScrollState state)
222         {
223             ScrollStateChangedEventArgs e = new ScrollStateChangedEventArgs();
224
225             if (textEditor != null)
226             {
227                 // Populate all members of "e" (ScrollStateChangedEventArgs) with real data
228                 e.TextEditor = Registry.GetManagedBaseHandleFromNativePtr(textEditor) as TextEditor;
229                 e.ScrollState = state;
230             }
231
232             if (_textEditorScrollStateChangedEventHandler != null)
233             {
234                 //here we send all data to user event handlers
235                 _textEditorScrollStateChangedEventHandler(this, e);
236             }
237         }
238
239         internal class Property
240         {
241             internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextEditor_Property_RENDERING_BACKEND_get();
242             internal static readonly int TEXT = NDalicPINVOKE.TextEditor_Property_TEXT_get();
243             internal static readonly int TEXT_COLOR = NDalicPINVOKE.TextEditor_Property_TEXT_COLOR_get();
244             internal static readonly int FONT_FAMILY = NDalicPINVOKE.TextEditor_Property_FONT_FAMILY_get();
245             internal static readonly int FONT_STYLE = NDalicPINVOKE.TextEditor_Property_FONT_STYLE_get();
246             internal static readonly int POINT_SIZE = NDalicPINVOKE.TextEditor_Property_POINT_SIZE_get();
247             internal static readonly int HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TextEditor_Property_HORIZONTAL_ALIGNMENT_get();
248             internal static readonly int SCROLL_THRESHOLD = NDalicPINVOKE.TextEditor_Property_SCROLL_THRESHOLD_get();
249             internal static readonly int SCROLL_SPEED = NDalicPINVOKE.TextEditor_Property_SCROLL_SPEED_get();
250             internal static readonly int PRIMARY_CURSOR_COLOR = NDalicPINVOKE.TextEditor_Property_PRIMARY_CURSOR_COLOR_get();
251             internal static readonly int SECONDARY_CURSOR_COLOR = NDalicPINVOKE.TextEditor_Property_SECONDARY_CURSOR_COLOR_get();
252             internal static readonly int ENABLE_CURSOR_BLINK = NDalicPINVOKE.TextEditor_Property_ENABLE_CURSOR_BLINK_get();
253             internal static readonly int CURSOR_BLINK_INTERVAL = NDalicPINVOKE.TextEditor_Property_CURSOR_BLINK_INTERVAL_get();
254             internal static readonly int CURSOR_BLINK_DURATION = NDalicPINVOKE.TextEditor_Property_CURSOR_BLINK_DURATION_get();
255             internal static readonly int CURSOR_WIDTH = NDalicPINVOKE.TextEditor_Property_CURSOR_WIDTH_get();
256             internal static readonly int GRAB_HANDLE_IMAGE = NDalicPINVOKE.TextEditor_Property_GRAB_HANDLE_IMAGE_get();
257             internal static readonly int GRAB_HANDLE_PRESSED_IMAGE = NDalicPINVOKE.TextEditor_Property_GRAB_HANDLE_PRESSED_IMAGE_get();
258             internal static readonly int SELECTION_HANDLE_IMAGE_LEFT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_IMAGE_LEFT_get();
259             internal static readonly int SELECTION_HANDLE_IMAGE_RIGHT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_IMAGE_RIGHT_get();
260             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_LEFT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_PRESSED_IMAGE_LEFT_get();
261             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT_get();
262             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_LEFT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_MARKER_IMAGE_LEFT_get();
263             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_RIGHT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_MARKER_IMAGE_RIGHT_get();
264             internal static readonly int SELECTION_HIGHLIGHT_COLOR = NDalicPINVOKE.TextEditor_Property_SELECTION_HIGHLIGHT_COLOR_get();
265             internal static readonly int DECORATION_BOUNDING_BOX = NDalicPINVOKE.TextEditor_Property_DECORATION_BOUNDING_BOX_get();
266             internal static readonly int ENABLE_MARKUP = NDalicPINVOKE.TextEditor_Property_ENABLE_MARKUP_get();
267             internal static readonly int INPUT_COLOR = NDalicPINVOKE.TextEditor_Property_INPUT_COLOR_get();
268             internal static readonly int INPUT_FONT_FAMILY = NDalicPINVOKE.TextEditor_Property_INPUT_FONT_FAMILY_get();
269             internal static readonly int INPUT_FONT_STYLE = NDalicPINVOKE.TextEditor_Property_INPUT_FONT_STYLE_get();
270             internal static readonly int INPUT_POINT_SIZE = NDalicPINVOKE.TextEditor_Property_INPUT_POINT_SIZE_get();
271             internal static readonly int LINE_SPACING = NDalicPINVOKE.TextEditor_Property_LINE_SPACING_get();
272             internal static readonly int INPUT_LINE_SPACING = NDalicPINVOKE.TextEditor_Property_INPUT_LINE_SPACING_get();
273             internal static readonly int UNDERLINE = NDalicPINVOKE.TextEditor_Property_UNDERLINE_get();
274             internal static readonly int INPUT_UNDERLINE = NDalicPINVOKE.TextEditor_Property_INPUT_UNDERLINE_get();
275             internal static readonly int SHADOW = NDalicPINVOKE.TextEditor_Property_SHADOW_get();
276             internal static readonly int INPUT_SHADOW = NDalicPINVOKE.TextEditor_Property_INPUT_SHADOW_get();
277             internal static readonly int EMBOSS = NDalicPINVOKE.TextEditor_Property_EMBOSS_get();
278             internal static readonly int INPUT_EMBOSS = NDalicPINVOKE.TextEditor_Property_INPUT_EMBOSS_get();
279             internal static readonly int OUTLINE = NDalicPINVOKE.TextEditor_Property_OUTLINE_get();
280             internal static readonly int INPUT_OUTLINE = NDalicPINVOKE.TextEditor_Property_INPUT_OUTLINE_get();
281             internal static readonly int SMOOTH_SCROLL = NDalicManualPINVOKE.TextEditor_Property_SMOOTH_SCROLL_get();
282             internal static readonly int SMOOTH_SCROLL_DURATION = NDalicManualPINVOKE.TextEditor_Property_SMOOTH_SCROLL_DURATION_get();
283             internal static readonly int ENABLE_SCROLL_BAR = NDalicManualPINVOKE.TextEditor_Property_ENABLE_SCROLL_BAR_get();
284             internal static readonly int SCROLL_BAR_SHOW_DURATION = NDalicManualPINVOKE.TextEditor_Property_SCROLL_BAR_SHOW_DURATION_get();
285             internal static readonly int SCROLL_BAR_FADE_DURATION = NDalicManualPINVOKE.TextEditor_Property_SCROLL_BAR_FADE_DURATION_get();
286             internal static readonly int PIXEL_SIZE = NDalicManualPINVOKE.TextEditor_Property_PIXEL_SIZE_get();
287             internal static readonly int LINE_COUNT = NDalicManualPINVOKE.TextEditor_Property_LINE_COUNT_get();
288             internal static readonly int PLACEHOLDER_TEXT = NDalicManualPINVOKE.TextEditor_Property_PLACEHOLDER_TEXT_get();
289             internal static readonly int PLACEHOLDER_TEXT_COLOR = NDalicManualPINVOKE.TextEditor_Property_PLACEHOLDER_TEXT_COLOR_get();
290
291         }
292
293         internal class InputStyle
294         {
295             internal enum Mask
296             {
297                 None = 0x0000,
298                 Color = 0x0001,
299                 FontFamily = 0x0002,
300                 PointSize = 0x0004,
301                 FontStyle = 0x0008,
302                 LineSpacing = 0x0010,
303                 Underline = 0x0020,
304                 Shadow = 0x0040,
305                 Emboss = 0x0080,
306                 Outline = 0x0100
307             }
308         }
309
310         /// <summary>
311         /// Creates the TextEditor control.
312         /// </summary>
313         public TextEditor() : this(NDalicPINVOKE.TextEditor_New(), true)
314         {
315             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
316
317         }
318         internal TextEditor(TextEditor handle) : this(NDalicPINVOKE.new_TextEditor__SWIG_1(TextEditor.getCPtr(handle)), true)
319         {
320             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
321         }
322
323         internal TextEditorSignal TextChangedSignal()
324         {
325             TextEditorSignal ret = new TextEditorSignal(NDalicPINVOKE.TextEditor_TextChangedSignal(swigCPtr), false);
326             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
327             return ret;
328         }
329
330         internal ScrollStateChangedSignal ScrollStateChangedSignal(TextEditor textEditor)
331         {
332             ScrollStateChangedSignal ret = new ScrollStateChangedSignal(NDalicManualPINVOKE.TextEditor_ScrollStateChangedSignal(TextEditor.getCPtr(textEditor)), false);
333             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
334             return ret;
335         }
336
337         internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t InputStyleChangedSignal()
338         {
339             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);
340             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
341             return ret;
342         }
343
344         /// <summary>
345         /// Text property.
346         /// </summary>
347         public string Text
348         {
349             get
350             {
351                 string temp;
352                 GetProperty(TextEditor.Property.TEXT).Get(out temp);
353                 return temp;
354             }
355             set
356             {
357                 SetProperty(TextEditor.Property.TEXT, new Tizen.NUI.PropertyValue(value));
358             }
359         }
360
361         /// <summary>
362         /// Text color property.
363         /// </summary>
364         public Vector4 TextColor
365         {
366             get
367             {
368                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
369                 GetProperty(TextEditor.Property.TEXT_COLOR).Get(temp);
370                 return temp;
371             }
372             set
373             {
374                 SetProperty(TextEditor.Property.TEXT_COLOR, new Tizen.NUI.PropertyValue(value));
375             }
376         }
377
378         /// <summary>
379         /// Font family property.
380         /// </summary>
381         public string FontFamily
382         {
383             get
384             {
385                 string temp;
386                 GetProperty(TextEditor.Property.FONT_FAMILY).Get(out temp);
387                 return temp;
388             }
389             set
390             {
391                 SetProperty(TextEditor.Property.FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
392             }
393         }
394
395         /// <summary>
396         /// Font style property.
397         /// </summary>
398         public PropertyMap FontStyle
399         {
400             get
401             {
402                 PropertyMap temp = new PropertyMap();
403                 GetProperty(TextEditor.Property.FONT_STYLE).Get(temp);
404                 return temp;
405             }
406             set
407             {
408                 SetProperty(TextEditor.Property.FONT_STYLE, new Tizen.NUI.PropertyValue(value));
409             }
410         }
411
412         /// <summary>
413         /// Point size property.
414         /// </summary>
415         public float PointSize
416         {
417             get
418             {
419                 float temp = 0.0f;
420                 GetProperty(TextEditor.Property.POINT_SIZE).Get(out temp);
421                 return temp;
422             }
423             set
424             {
425                 SetProperty(TextEditor.Property.POINT_SIZE, new Tizen.NUI.PropertyValue(value));
426             }
427         }
428
429         /// <summary>
430         /// Horizontal alignment property.
431         /// </summary>
432         public HorizontalAlignment HorizontalAlignment
433         {
434             get
435             {
436                 string temp;
437                 if (GetProperty(TextEditor.Property.HORIZONTAL_ALIGNMENT).Get(out temp) == false)
438                 {
439 #if DEBUG_ON
440                     Tizen.Log.Error("NUI", "HorizontalAlignment get error!");
441 #endif
442                 }
443
444                 switch (temp)
445                 {
446                     case "BEGIN":
447                         return HorizontalAlignment.Begin;
448                     case "CENTER":
449                         return HorizontalAlignment.Center;
450                     case "END":
451                         return HorizontalAlignment.End;
452                     default:
453                         return HorizontalAlignment.Begin;
454                 }
455             }
456             set
457             {
458                 string valueToString = "";
459                 switch (value)
460                 {
461                     case HorizontalAlignment.Begin:
462                     {
463                         valueToString = "BEGIN";
464                         break;
465                     }
466                     case HorizontalAlignment.Center:
467                     {
468                         valueToString = "CENTER";
469                         break;
470                     }
471                     case HorizontalAlignment.End:
472                     {
473                         valueToString = "END";
474                         break;
475                     }
476                     default:
477                     {
478                         valueToString = "BEGIN";
479                         break;
480                     }
481                 }
482                 SetProperty(TextEditor.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
483             }
484         }
485
486         /// <summary>
487         /// Scroll threshold property.
488         /// </summary>
489         public float ScrollThreshold
490         {
491             get
492             {
493                 float temp = 0.0f;
494                 GetProperty(TextEditor.Property.SCROLL_THRESHOLD).Get(out temp);
495                 return temp;
496             }
497             set
498             {
499                 SetProperty(TextEditor.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue(value));
500             }
501         }
502
503         /// <summary>
504         /// Scroll speed property.
505         /// </summary>
506         public float ScrollSpeed
507         {
508             get
509             {
510                 float temp = 0.0f;
511                 GetProperty(TextEditor.Property.SCROLL_SPEED).Get(out temp);
512                 return temp;
513             }
514             set
515             {
516                 SetProperty(TextEditor.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue(value));
517             }
518         }
519
520         /// <summary>
521         /// Primary cursor color property.
522         /// </summary>
523         public Vector4 PrimaryCursorColor
524         {
525             get
526             {
527                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
528                 GetProperty(TextEditor.Property.PRIMARY_CURSOR_COLOR).Get(temp);
529                 return temp;
530             }
531             set
532             {
533                 SetProperty(TextEditor.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
534             }
535         }
536
537         /// <summary>
538         /// SecondaryCursorColor property.
539         /// </summary>
540         public Vector4 SecondaryCursorColor
541         {
542             get
543             {
544                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
545                 GetProperty(TextEditor.Property.SECONDARY_CURSOR_COLOR).Get(temp);
546                 return temp;
547             }
548             set
549             {
550                 SetProperty(TextEditor.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
551             }
552         }
553
554         /// <summary>
555         /// EnableCursorBlink property.
556         /// </summary>
557         public bool EnableCursorBlink
558         {
559             get
560             {
561                 bool temp = false;
562                 GetProperty(TextEditor.Property.ENABLE_CURSOR_BLINK).Get(out temp);
563                 return temp;
564             }
565             set
566             {
567                 SetProperty(TextEditor.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue(value));
568             }
569         }
570
571         /// <summary>
572         /// CursorBlinkInterval property.
573         /// </summary>
574         public float CursorBlinkInterval
575         {
576             get
577             {
578                 float temp = 0.0f;
579                 GetProperty(TextEditor.Property.CURSOR_BLINK_INTERVAL).Get(out temp);
580                 return temp;
581             }
582             set
583             {
584                 SetProperty(TextEditor.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue(value));
585             }
586         }
587
588         /// <summary>
589         /// CursorBlinkDuration property.
590         /// </summary>
591         public float CursorBlinkDuration
592         {
593             get
594             {
595                 float temp = 0.0f;
596                 GetProperty(TextEditor.Property.CURSOR_BLINK_DURATION).Get(out temp);
597                 return temp;
598             }
599             set
600             {
601                 SetProperty(TextEditor.Property.CURSOR_BLINK_DURATION, new Tizen.NUI.PropertyValue(value));
602             }
603         }
604
605         /// <summary>
606         /// CursorWidth property.
607         /// </summary>
608         public int CursorWidth
609         {
610             get
611             {
612                 int temp = 0;
613                 GetProperty(TextEditor.Property.CURSOR_WIDTH).Get(out temp);
614                 return temp;
615             }
616             set
617             {
618                 SetProperty(TextEditor.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue(value));
619             }
620         }
621
622         /// <summary>
623         /// GrabHandleImage property.
624         /// </summary>
625         public string GrabHandleImage
626         {
627             get
628             {
629                 string temp;
630                 GetProperty(TextEditor.Property.GRAB_HANDLE_IMAGE).Get(out temp);
631                 return temp;
632             }
633             set
634             {
635                 SetProperty(TextEditor.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue(value));
636             }
637         }
638
639         /// <summary>
640         /// GrabHandlePressedImage property.
641         /// </summary>
642         public string GrabHandlePressedImage
643         {
644             get
645             {
646                 string temp;
647                 GetProperty(TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);
648                 return temp;
649             }
650             set
651             {
652                 SetProperty(TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue(value));
653             }
654         }
655
656         /// <summary>
657         /// SelectionHandleImageLeft property.
658         /// </summary>
659         public PropertyMap SelectionHandleImageLeft
660         {
661             get
662             {
663                 PropertyMap temp = new PropertyMap();
664                 GetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT).Get(temp);
665                 return temp;
666             }
667             set
668             {
669                 SetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
670             }
671         }
672
673         /// <summary>
674         /// SelectionHandleImageRight property.
675         /// </summary>
676         public PropertyMap SelectionHandleImageRight
677         {
678             get
679             {
680                 PropertyMap temp = new PropertyMap();
681                 GetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT).Get(temp);
682                 return temp;
683             }
684             set
685             {
686                 SetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
687             }
688         }
689
690         /// <summary>
691         /// SelectionHandlePressedImageLeft property.
692         /// </summary>
693         public PropertyMap SelectionHandlePressedImageLeft
694         {
695             get
696             {
697                 PropertyMap temp = new PropertyMap();
698                 GetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT).Get(temp);
699                 return temp;
700             }
701             set
702             {
703                 SetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
704             }
705         }
706
707         /// <summary>
708         /// SelectionHandlePressedImageRight property.
709         /// </summary>
710         public PropertyMap SelectionHandlePressedImageRight
711         {
712             get
713             {
714                 PropertyMap temp = new PropertyMap();
715                 GetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT).Get(temp);
716                 return temp;
717             }
718             set
719             {
720                 SetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
721             }
722         }
723
724         /// <summary>
725         /// SelectionHandleMarkerImageLeft property.
726         /// </summary>
727         public PropertyMap SelectionHandleMarkerImageLeft
728         {
729             get
730             {
731                 PropertyMap temp = new PropertyMap();
732                 GetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT).Get(temp);
733                 return temp;
734             }
735             set
736             {
737                 SetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
738             }
739         }
740
741         /// <summary>
742         /// SelectionHandleMarkerImageRight property.
743         /// </summary>
744         public PropertyMap SelectionHandleMarkerImageRight
745         {
746             get
747             {
748                 PropertyMap temp = new PropertyMap();
749                 GetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT).Get(temp);
750                 return temp;
751             }
752             set
753             {
754                 SetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
755             }
756         }
757
758         /// <summary>
759         /// SelectionHighlightColor property.
760         /// </summary>
761         public Vector4 SelectionHighlightColor
762         {
763             get
764             {
765                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
766                 GetProperty(TextEditor.Property.SELECTION_HIGHLIGHT_COLOR).Get(temp);
767                 return temp;
768             }
769             set
770             {
771                 SetProperty(TextEditor.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue(value));
772             }
773         }
774
775         /// <summary>
776         /// DecorationBoundingBox property.
777         /// </summary>
778         public Rectangle DecorationBoundingBox
779         {
780             get
781             {
782                 Rectangle temp = new Rectangle(0, 0, 0, 0);
783                 GetProperty(TextEditor.Property.DECORATION_BOUNDING_BOX).Get(temp);
784                 return temp;
785             }
786             set
787             {
788                 SetProperty(TextEditor.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue(value));
789             }
790         }
791
792         /// <summary>
793         /// EnableMarkup property.
794         /// </summary>
795         public bool EnableMarkup
796         {
797             get
798             {
799                 bool temp = false;
800                 GetProperty(TextEditor.Property.ENABLE_MARKUP).Get(out temp);
801                 return temp;
802             }
803             set
804             {
805                 SetProperty(TextEditor.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue(value));
806             }
807         }
808
809         /// <summary>
810         /// InputColor property.
811         /// </summary>
812         public Vector4 InputColor
813         {
814             get
815             {
816                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
817                 GetProperty(TextEditor.Property.INPUT_COLOR).Get(temp);
818                 return temp;
819             }
820             set
821             {
822                 SetProperty(TextEditor.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue(value));
823             }
824         }
825
826         /// <summary>
827         /// InputFontFamily property.
828         /// </summary>
829         public string InputFontFamily
830         {
831             get
832             {
833                 string temp;
834                 GetProperty(TextEditor.Property.INPUT_FONT_FAMILY).Get(out temp);
835                 return temp;
836             }
837             set
838             {
839                 SetProperty(TextEditor.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
840             }
841         }
842
843         /// <summary>
844         /// InputFontStyle property.
845         /// </summary>
846         public PropertyMap InputFontStyle
847         {
848             get
849             {
850                 PropertyMap temp = new PropertyMap();
851                 GetProperty(TextEditor.Property.INPUT_FONT_STYLE).Get(temp);
852                 return temp;
853             }
854             set
855             {
856                 SetProperty(TextEditor.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue(value));
857             }
858         }
859
860         /// <summary>
861         /// InputPointSize property.
862         /// </summary>
863         public float InputPointSize
864         {
865             get
866             {
867                 float temp = 0.0f;
868                 GetProperty(TextEditor.Property.INPUT_POINT_SIZE).Get(out temp);
869                 return temp;
870             }
871             set
872             {
873                 SetProperty(TextEditor.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue(value));
874             }
875         }
876
877         /// <summary>
878         /// LineSpacing property.
879         /// </summary>
880         public float LineSpacing
881         {
882             get
883             {
884                 float temp = 0.0f;
885                 GetProperty(TextEditor.Property.LINE_SPACING).Get(out temp);
886                 return temp;
887             }
888             set
889             {
890                 SetProperty(TextEditor.Property.LINE_SPACING, new Tizen.NUI.PropertyValue(value));
891             }
892         }
893
894         /// <summary>
895         /// InputLineSpacing property.
896         /// </summary>
897         public float InputLineSpacing
898         {
899             get
900             {
901                 float temp = 0.0f;
902                 GetProperty(TextEditor.Property.INPUT_LINE_SPACING).Get(out temp);
903                 return temp;
904             }
905             set
906             {
907                 SetProperty(TextEditor.Property.INPUT_LINE_SPACING, new Tizen.NUI.PropertyValue(value));
908             }
909         }
910
911         /// <summary>
912         /// Underline property.
913         /// </summary>
914         public PropertyMap Underline
915         {
916             get
917             {
918                 PropertyMap temp = new PropertyMap();
919                 GetProperty(TextEditor.Property.UNDERLINE).Get(temp);
920                 return temp;
921             }
922             set
923             {
924                 SetProperty(TextEditor.Property.UNDERLINE, new Tizen.NUI.PropertyValue(value));
925             }
926         }
927
928         /// <summary>
929         /// InputUnderline property.
930         /// </summary>
931         public string InputUnderline
932         {
933             get
934             {
935                 string temp;
936                 GetProperty(TextEditor.Property.INPUT_UNDERLINE).Get(out temp);
937                 return temp;
938             }
939             set
940             {
941                 SetProperty(TextEditor.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue(value));
942             }
943         }
944
945         /// <summary>
946         /// Shadow property.
947         /// </summary>
948         public PropertyMap Shadow
949         {
950             get
951             {
952                 PropertyMap temp = new PropertyMap();
953                 GetProperty(TextEditor.Property.SHADOW).Get(temp);
954                 return temp;
955             }
956             set
957             {
958                 SetProperty(TextEditor.Property.SHADOW, new Tizen.NUI.PropertyValue(value));
959             }
960         }
961
962         /// <summary>
963         /// InputShadow property.
964         /// </summary>
965         public string InputShadow
966         {
967             get
968             {
969                 string temp;
970                 GetProperty(TextEditor.Property.INPUT_SHADOW).Get(out temp);
971                 return temp;
972             }
973             set
974             {
975                 SetProperty(TextEditor.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue(value));
976             }
977         }
978
979         /// <summary>
980         /// Emboss property.
981         /// </summary>
982         public string Emboss
983         {
984             get
985             {
986                 string temp;
987                 GetProperty(TextEditor.Property.EMBOSS).Get(out temp);
988                 return temp;
989             }
990             set
991             {
992                 SetProperty(TextEditor.Property.EMBOSS, new Tizen.NUI.PropertyValue(value));
993             }
994         }
995
996         /// <summary>
997         /// InputEmboss property.
998         /// </summary>
999         public string InputEmboss
1000         {
1001             get
1002             {
1003                 string temp;
1004                 GetProperty(TextEditor.Property.INPUT_EMBOSS).Get(out temp);
1005                 return temp;
1006             }
1007             set
1008             {
1009                 SetProperty(TextEditor.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue(value));
1010             }
1011         }
1012
1013         /// <summary>
1014         /// Outline property.
1015         /// </summary>
1016         public string Outline
1017         {
1018             get
1019             {
1020                 string temp;
1021                 GetProperty(TextEditor.Property.OUTLINE).Get(out temp);
1022                 return temp;
1023             }
1024             set
1025             {
1026                 SetProperty(TextEditor.Property.OUTLINE, new Tizen.NUI.PropertyValue(value));
1027             }
1028         }
1029
1030         /// <summary>
1031         /// InputOutline property.
1032         /// </summary>
1033         public string InputOutline
1034         {
1035             get
1036             {
1037                 string temp;
1038                 GetProperty(TextEditor.Property.INPUT_OUTLINE).Get(out temp);
1039                 return temp;
1040             }
1041             set
1042             {
1043                 SetProperty(TextEditor.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue(value));
1044             }
1045         }
1046
1047         /// <summary>
1048         /// SmoothScroll property.
1049         /// </summary>
1050         public bool SmoothScroll
1051         {
1052             get
1053             {
1054                 bool temp = false;
1055                 GetProperty(TextEditor.Property.SMOOTH_SCROLL).Get(out temp);
1056                 return temp;
1057             }
1058             set
1059             {
1060                 SetProperty(TextEditor.Property.SMOOTH_SCROLL, new Tizen.NUI.PropertyValue(value));
1061             }
1062         }
1063
1064         /// <summary>
1065         /// SmoothScrollDuration property.
1066         /// </summary>
1067         public float SmoothScrollDuration
1068         {
1069             get
1070             {
1071                 float temp = 0.0f;
1072                 GetProperty(TextEditor.Property.SMOOTH_SCROLL_DURATION).Get(out temp);
1073                 return temp;
1074             }
1075             set
1076             {
1077                 SetProperty(TextEditor.Property.SMOOTH_SCROLL_DURATION, new Tizen.NUI.PropertyValue(value));
1078             }
1079         }
1080
1081         /// <summary>
1082         /// EnableScrollBar property.
1083         /// </summary>
1084         public bool EnableScrollBar
1085         {
1086             get
1087             {
1088                 bool temp = false;
1089                 GetProperty(TextEditor.Property.ENABLE_SCROLL_BAR).Get(out temp);
1090                 return temp;
1091             }
1092             set
1093             {
1094                 SetProperty(TextEditor.Property.ENABLE_SCROLL_BAR, new Tizen.NUI.PropertyValue(value));
1095             }
1096         }
1097
1098         /// <summary>
1099         /// ScrollBarShowDuration property.
1100         /// </summary>
1101         public float ScrollBarShowDuration
1102         {
1103             get
1104             {
1105                 float temp = 0.0f;
1106                 GetProperty(TextEditor.Property.SCROLL_BAR_SHOW_DURATION).Get(out temp);
1107                 return temp;
1108             }
1109             set
1110             {
1111                 SetProperty(TextEditor.Property.SCROLL_BAR_SHOW_DURATION, new Tizen.NUI.PropertyValue(value));
1112             }
1113         }
1114
1115         /// <summary>
1116         /// ScrollBarFadeDuration property.
1117         /// </summary>
1118         public float ScrollBarFadeDuration
1119         {
1120             get
1121             {
1122                 float temp = 0.0f;
1123                 GetProperty(TextEditor.Property.SCROLL_BAR_FADE_DURATION).Get(out temp);
1124                 return temp;
1125             }
1126             set
1127             {
1128                 SetProperty(TextEditor.Property.SCROLL_BAR_FADE_DURATION, new Tizen.NUI.PropertyValue(value));
1129             }
1130         }
1131
1132         /// <summary>
1133         /// PixelSize property.
1134         /// </summary>
1135         public float PixelSize
1136         {
1137             get
1138             {
1139                 float temp = 0.0f;
1140                 GetProperty(TextEditor.Property.PIXEL_SIZE).Get(out temp);
1141                 return temp;
1142             }
1143             set
1144             {
1145                 SetProperty(TextEditor.Property.PIXEL_SIZE, new Tizen.NUI.PropertyValue(value));
1146             }
1147         }
1148
1149         /// <summary>
1150         /// The line count of text.
1151         /// </summary>
1152         public int LineCount
1153         {
1154             get
1155             {
1156                 int temp = 0;
1157                 GetProperty(TextEditor.Property.LINE_COUNT).Get(out temp);
1158                 return temp;
1159             }
1160         }
1161
1162         /// <summary>
1163         /// The text to display when the TextEditor is empty and inactive.
1164         /// </summary>
1165         public string PlaceholderText
1166         {
1167             get
1168             {
1169                 string temp;
1170                 GetProperty(TextEditor.Property.PLACEHOLDER_TEXT).Get(out temp);
1171                 return temp;
1172             }
1173             set
1174             {
1175                 SetProperty(TextEditor.Property.PLACEHOLDER_TEXT, new Tizen.NUI.PropertyValue(value));
1176             }
1177         }
1178
1179         /// <summary>
1180         /// The placeholder-text color.
1181         /// </summary>
1182         public Color PlaceholderTextColor
1183         {
1184             get
1185             {
1186                 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1187                 GetProperty(TextEditor.Property.PLACEHOLDER_TEXT_COLOR).Get(temp);
1188                 return temp;
1189             }
1190             set
1191             {
1192                 SetProperty(TextEditor.Property.PLACEHOLDER_TEXT_COLOR, new Tizen.NUI.PropertyValue(value));
1193             }
1194         }
1195
1196     }
1197
1198 }