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