Set position to use the anchor point false default.
[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         public override void Dispose()
56         {
57             if (!Window.IsInstalled())
58             {
59                 DisposeQueue.Instance.Add(this);
60                 return;
61             }
62
63             lock (this)
64             {
65                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
66                 {
67                     if (swigCMemOwn)
68                     {
69                         swigCMemOwn = false;
70                         NDalicPINVOKE.delete_TextEditor(swigCPtr);
71                     }
72                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
73                 }
74                 global::System.GC.SuppressFinalize(this);
75                 base.Dispose();
76             }
77         }
78
79
80
81         /// <summary>
82         /// Event arguments that passed via TextChanged signal.
83         /// </summary>
84         public class TextChangedEventArgs : EventArgs
85         {
86             private TextEditor _textEditor;
87
88             /// <summary>
89             /// TextEditor - is the texteditor control which has the text contents changed.
90             /// </summary>
91             public TextEditor TextEditor
92             {
93                 get
94                 {
95                     return _textEditor;
96                 }
97                 set
98                 {
99                     _textEditor = value;
100                 }
101             }
102         }
103
104         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
105         private delegate void TextChangedCallbackDelegate(IntPtr textEditor);
106         private EventHandler<TextChangedEventArgs> _textEditorTextChangedEventHandler;
107         private TextChangedCallbackDelegate _textEditorTextChangedCallbackDelegate;
108
109         /// <summary>
110         /// Event for TextChanged signal which can be used to subscribe/unsubscribe the event handler
111         /// provided by the user. TextChanged signal is emitted when the text changes.<br>
112         /// </summary>
113         public event EventHandler<TextChangedEventArgs> TextChanged
114         {
115             add
116             {
117                 if (_textEditorTextChangedEventHandler == null)
118                 {
119                     _textEditorTextChangedCallbackDelegate = (OnTextChanged);
120                     TextChangedSignal().Connect(_textEditorTextChangedCallbackDelegate);
121                 }
122                 _textEditorTextChangedEventHandler += value;
123             }
124             remove
125             {
126                 _textEditorTextChangedEventHandler -= value;
127                 if (_textEditorTextChangedEventHandler == null && TextChangedSignal().Empty() == false)
128                 {
129                     TextChangedSignal().Disconnect(_textEditorTextChangedCallbackDelegate);
130                 }
131             }
132         }
133
134         private void OnTextChanged(IntPtr textEditor)
135         {
136             TextChangedEventArgs e = new TextChangedEventArgs();
137
138             // Populate all members of "e" (TextChangedEventArgs) with real data
139             e.TextEditor = TextEditor.GetTextEditorFromPtr(textEditor);
140
141             if (_textEditorTextChangedEventHandler != null)
142             {
143                 //here we send all data to user event handlers
144                 _textEditorTextChangedEventHandler(this, e);
145             }
146
147         }
148
149         internal static TextEditor GetTextEditorFromPtr(global::System.IntPtr cPtr)
150         {
151             TextEditor ret = new TextEditor(cPtr, false);
152             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
153             return ret;
154         }
155
156
157         internal class Property : global::System.IDisposable
158         {
159             private global::System.Runtime.InteropServices.HandleRef swigCPtr;
160             protected bool swigCMemOwn;
161
162             internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
163             {
164                 swigCMemOwn = cMemoryOwn;
165                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
166             }
167
168             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
169             {
170                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
171             }
172
173             ~Property()
174             {
175                 DisposeQueue.Instance.Add(this);
176             }
177
178             public virtual void Dispose()
179             {
180                 if (!Window.IsInstalled()) {
181                     DisposeQueue.Instance.Add(this);
182                     return;
183                 }
184
185                 lock (this)
186                 {
187                     if (swigCPtr.Handle != global::System.IntPtr.Zero)
188                     {
189                         if (swigCMemOwn)
190                         {
191                             swigCMemOwn = false;
192                             NDalicPINVOKE.delete_TextEditor_Property(swigCPtr);
193                         }
194                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
195                     }
196                     global::System.GC.SuppressFinalize(this);
197                 }
198             }
199
200             internal Property() : this(NDalicPINVOKE.new_TextEditor_Property(), true)
201             {
202                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
203             }
204
205             internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextEditor_Property_RENDERING_BACKEND_get();
206             internal static readonly int TEXT = NDalicPINVOKE.TextEditor_Property_TEXT_get();
207             internal static readonly int TEXT_COLOR = NDalicPINVOKE.TextEditor_Property_TEXT_COLOR_get();
208             internal static readonly int FONT_FAMILY = NDalicPINVOKE.TextEditor_Property_FONT_FAMILY_get();
209             internal static readonly int FONT_STYLE = NDalicPINVOKE.TextEditor_Property_FONT_STYLE_get();
210             internal static readonly int POINT_SIZE = NDalicPINVOKE.TextEditor_Property_POINT_SIZE_get();
211             internal static readonly int HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TextEditor_Property_HORIZONTAL_ALIGNMENT_get();
212             internal static readonly int SCROLL_THRESHOLD = NDalicPINVOKE.TextEditor_Property_SCROLL_THRESHOLD_get();
213             internal static readonly int SCROLL_SPEED = NDalicPINVOKE.TextEditor_Property_SCROLL_SPEED_get();
214             internal static readonly int PRIMARY_CURSOR_COLOR = NDalicPINVOKE.TextEditor_Property_PRIMARY_CURSOR_COLOR_get();
215             internal static readonly int SECONDARY_CURSOR_COLOR = NDalicPINVOKE.TextEditor_Property_SECONDARY_CURSOR_COLOR_get();
216             internal static readonly int ENABLE_CURSOR_BLINK = NDalicPINVOKE.TextEditor_Property_ENABLE_CURSOR_BLINK_get();
217             internal static readonly int CURSOR_BLINK_INTERVAL = NDalicPINVOKE.TextEditor_Property_CURSOR_BLINK_INTERVAL_get();
218             internal static readonly int CURSOR_BLINK_DURATION = NDalicPINVOKE.TextEditor_Property_CURSOR_BLINK_DURATION_get();
219             internal static readonly int CURSOR_WIDTH = NDalicPINVOKE.TextEditor_Property_CURSOR_WIDTH_get();
220             internal static readonly int GRAB_HANDLE_IMAGE = NDalicPINVOKE.TextEditor_Property_GRAB_HANDLE_IMAGE_get();
221             internal static readonly int GRAB_HANDLE_PRESSED_IMAGE = NDalicPINVOKE.TextEditor_Property_GRAB_HANDLE_PRESSED_IMAGE_get();
222             internal static readonly int SELECTION_HANDLE_IMAGE_LEFT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_IMAGE_LEFT_get();
223             internal static readonly int SELECTION_HANDLE_IMAGE_RIGHT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_IMAGE_RIGHT_get();
224             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_LEFT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_PRESSED_IMAGE_LEFT_get();
225             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT_get();
226             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_LEFT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_MARKER_IMAGE_LEFT_get();
227             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_RIGHT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_MARKER_IMAGE_RIGHT_get();
228             internal static readonly int SELECTION_HIGHLIGHT_COLOR = NDalicPINVOKE.TextEditor_Property_SELECTION_HIGHLIGHT_COLOR_get();
229             internal static readonly int DECORATION_BOUNDING_BOX = NDalicPINVOKE.TextEditor_Property_DECORATION_BOUNDING_BOX_get();
230             internal static readonly int ENABLE_MARKUP = NDalicPINVOKE.TextEditor_Property_ENABLE_MARKUP_get();
231             internal static readonly int INPUT_COLOR = NDalicPINVOKE.TextEditor_Property_INPUT_COLOR_get();
232             internal static readonly int INPUT_FONT_FAMILY = NDalicPINVOKE.TextEditor_Property_INPUT_FONT_FAMILY_get();
233             internal static readonly int INPUT_FONT_STYLE = NDalicPINVOKE.TextEditor_Property_INPUT_FONT_STYLE_get();
234             internal static readonly int INPUT_POINT_SIZE = NDalicPINVOKE.TextEditor_Property_INPUT_POINT_SIZE_get();
235             internal static readonly int LINE_SPACING = NDalicPINVOKE.TextEditor_Property_LINE_SPACING_get();
236             internal static readonly int INPUT_LINE_SPACING = NDalicPINVOKE.TextEditor_Property_INPUT_LINE_SPACING_get();
237             internal static readonly int UNDERLINE = NDalicPINVOKE.TextEditor_Property_UNDERLINE_get();
238             internal static readonly int INPUT_UNDERLINE = NDalicPINVOKE.TextEditor_Property_INPUT_UNDERLINE_get();
239             internal static readonly int SHADOW = NDalicPINVOKE.TextEditor_Property_SHADOW_get();
240             internal static readonly int INPUT_SHADOW = NDalicPINVOKE.TextEditor_Property_INPUT_SHADOW_get();
241             internal static readonly int EMBOSS = NDalicPINVOKE.TextEditor_Property_EMBOSS_get();
242             internal static readonly int INPUT_EMBOSS = NDalicPINVOKE.TextEditor_Property_INPUT_EMBOSS_get();
243             internal static readonly int OUTLINE = NDalicPINVOKE.TextEditor_Property_OUTLINE_get();
244             internal static readonly int INPUT_OUTLINE = NDalicPINVOKE.TextEditor_Property_INPUT_OUTLINE_get();
245
246         }
247
248         internal class InputStyle : global::System.IDisposable
249         {
250             private global::System.Runtime.InteropServices.HandleRef swigCPtr;
251             protected bool swigCMemOwn;
252
253             internal InputStyle(global::System.IntPtr cPtr, bool cMemoryOwn)
254             {
255                 swigCMemOwn = cMemoryOwn;
256                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
257             }
258
259             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(InputStyle obj)
260             {
261                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
262             }
263
264             ~InputStyle()
265             {
266                 DisposeQueue.Instance.Add(this);
267             }
268
269             public virtual void Dispose()
270             {
271                 if (!Window.IsInstalled()) {
272                     DisposeQueue.Instance.Add(this);
273                     return;
274                 }
275
276                 lock (this)
277                 {
278                     if (swigCPtr.Handle != global::System.IntPtr.Zero)
279                     {
280                         if (swigCMemOwn)
281                         {
282                             swigCMemOwn = false;
283                             NDalicPINVOKE.delete_TextEditor_InputStyle(swigCPtr);
284                         }
285                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
286                     }
287                     global::System.GC.SuppressFinalize(this);
288                 }
289             }
290
291             internal InputStyle() : this(NDalicPINVOKE.new_TextEditor_InputStyle(), true)
292             {
293                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
294             }
295
296             internal enum Mask
297             {
298                 None = 0x0000,
299                 Color = 0x0001,
300                 FontFamily = 0x0002,
301                 PointSize = 0x0004,
302                 FontStyle = 0x0008,
303                 LineSpacing = 0x0010,
304                 Underline = 0x0020,
305                 Shadow = 0x0040,
306                 Emboss = 0x0080,
307                 Outline = 0x0100
308             }
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 TextEditor Assign(TextEditor handle)
326         {
327             TextEditor ret = new TextEditor(NDalicPINVOKE.TextEditor_Assign(swigCPtr, TextEditor.getCPtr(handle)), false);
328             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
329             return ret;
330         }
331
332         /// <summary>
333         /// Downcasts a handle to TextEditor.
334         /// </summary>
335         /// <param name="handle">Handle to an object</param>
336         /// <returns>Handle to a TextEditor or an empty handle</returns>
337         public new static TextEditor DownCast(BaseHandle handle)
338         {
339             TextEditor ret = new TextEditor(NDalicPINVOKE.TextEditor_DownCast(BaseHandle.getCPtr(handle)), true);
340             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
341             return ret;
342         }
343
344         internal TextEditorSignal TextChangedSignal()
345         {
346             TextEditorSignal ret = new TextEditorSignal(NDalicPINVOKE.TextEditor_TextChangedSignal(swigCPtr), false);
347             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
348             return ret;
349         }
350
351         internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t InputStyleChangedSignal()
352         {
353             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);
354             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
355             return ret;
356         }
357
358         internal enum PropertyRange
359         {
360             PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
361             PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000
362         }
363
364         /// <summary>
365         /// Rendering backend property
366         /// </summary>
367         public int RenderingBackend
368         {
369             get
370             {
371                 int temp = 0;
372                 GetProperty(TextEditor.Property.RENDERING_BACKEND).Get(ref temp);
373                 return temp;
374             }
375             set
376             {
377                 SetProperty(TextEditor.Property.RENDERING_BACKEND, new Tizen.NUI.PropertyValue(value));
378             }
379         }
380
381         /// <summary>
382         /// Text property.
383         /// </summary>
384         public string Text
385         {
386             get
387             {
388                 string temp;
389                 GetProperty(TextEditor.Property.TEXT).Get(out temp);
390                 return temp;
391             }
392             set
393             {
394                 SetProperty(TextEditor.Property.TEXT, new Tizen.NUI.PropertyValue(value));
395             }
396         }
397
398         /// <summary>
399         /// Text color property.
400         /// </summary>
401         public Vector4 TextColor
402         {
403             get
404             {
405                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
406                 GetProperty(TextEditor.Property.TEXT_COLOR).Get(temp);
407                 return temp;
408             }
409             set
410             {
411                 SetProperty(TextEditor.Property.TEXT_COLOR, new Tizen.NUI.PropertyValue(value));
412             }
413         }
414
415         /// <summary>
416         /// Font family property.
417         /// </summary>
418         public string FontFamily
419         {
420             get
421             {
422                 string temp;
423                 GetProperty(TextEditor.Property.FONT_FAMILY).Get(out temp);
424                 return temp;
425             }
426             set
427             {
428                 SetProperty(TextEditor.Property.FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
429             }
430         }
431
432         /// <summary>
433         /// Font style property.
434         /// </summary>
435         public PropertyMap FontStyle
436         {
437             get
438             {
439                 PropertyMap temp = new PropertyMap();
440                 GetProperty(TextEditor.Property.FONT_STYLE).Get(temp);
441                 return temp;
442             }
443             set
444             {
445                 SetProperty(TextEditor.Property.FONT_STYLE, new Tizen.NUI.PropertyValue(value));
446             }
447         }
448
449         /// <summary>
450         /// Point size property.
451         /// </summary>
452         public float PointSize
453         {
454             get
455             {
456                 float temp = 0.0f;
457                 GetProperty(TextEditor.Property.POINT_SIZE).Get(ref temp);
458                 return temp;
459             }
460             set
461             {
462                 SetProperty(TextEditor.Property.POINT_SIZE, new Tizen.NUI.PropertyValue(value));
463             }
464         }
465
466         /// <summary>
467         /// Horizontal alignment property.
468         /// </summary>
469         public HorizontalAlignment HorizontalAlignment
470         {
471             get
472             {
473                 string temp;
474                 if (GetProperty(TextEditor.Property.HORIZONTAL_ALIGNMENT).Get(out temp) == false)
475                 {
476 #if DEBUG_ON
477                     Tizen.Log.Error("NUI", "HorizontalAlignment get error!");
478 #endif
479                 }
480
481                 switch (temp)
482                 {
483                     case "BEGIN":
484                         return HorizontalAlignment.Begin;
485                     case "CENTER":
486                         return HorizontalAlignment.Center;
487                     case "END":
488                         return HorizontalAlignment.End;
489                     default:
490                         return HorizontalAlignment.Begin;
491                 }
492             }
493             set
494             {
495                 string valueToString = "";
496                 switch (value)
497                 {
498                     case HorizontalAlignment.Begin:
499                     {
500                         valueToString = "BEGIN";
501                         break;
502                     }
503                     case HorizontalAlignment.Center:
504                     {
505                         valueToString = "CENTER";
506                         break;
507                     }
508                     case HorizontalAlignment.End:
509                     {
510                         valueToString = "END";
511                         break;
512                     }
513                     default:
514                     {
515                         valueToString = "BEGIN";
516                         break;
517                     }
518                 }
519                 SetProperty(TextEditor.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
520             }
521         }
522
523         /// <summary>
524         /// Scroll threshold property.
525         /// </summary>
526         public float ScrollThreshold
527         {
528             get
529             {
530                 float temp = 0.0f;
531                 GetProperty(TextEditor.Property.SCROLL_THRESHOLD).Get(ref temp);
532                 return temp;
533             }
534             set
535             {
536                 SetProperty(TextEditor.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue(value));
537             }
538         }
539
540         /// <summary>
541         /// Scroll speed property.
542         /// </summary>
543         public float ScrollSpeed
544         {
545             get
546             {
547                 float temp = 0.0f;
548                 GetProperty(TextEditor.Property.SCROLL_SPEED).Get(ref temp);
549                 return temp;
550             }
551             set
552             {
553                 SetProperty(TextEditor.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue(value));
554             }
555         }
556
557         /// <summary>
558         /// Primary cursor color property.
559         /// </summary>
560         public Vector4 PrimaryCursorColor
561         {
562             get
563             {
564                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
565                 GetProperty(TextEditor.Property.PRIMARY_CURSOR_COLOR).Get(temp);
566                 return temp;
567             }
568             set
569             {
570                 SetProperty(TextEditor.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
571             }
572         }
573
574         /// <summary>
575         /// SecondaryCursorColor property.
576         /// </summary>
577         public Vector4 SecondaryCursorColor
578         {
579             get
580             {
581                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
582                 GetProperty(TextEditor.Property.SECONDARY_CURSOR_COLOR).Get(temp);
583                 return temp;
584             }
585             set
586             {
587                 SetProperty(TextEditor.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
588             }
589         }
590
591         /// <summary>
592         /// EnableCursorBlink property.
593         /// </summary>
594         public bool EnableCursorBlink
595         {
596             get
597             {
598                 bool temp = false;
599                 GetProperty(TextEditor.Property.ENABLE_CURSOR_BLINK).Get(ref temp);
600                 return temp;
601             }
602             set
603             {
604                 SetProperty(TextEditor.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue(value));
605             }
606         }
607
608         /// <summary>
609         /// CursorBlinkInterval property.
610         /// </summary>
611         public float CursorBlinkInterval
612         {
613             get
614             {
615                 float temp = 0.0f;
616                 GetProperty(TextEditor.Property.CURSOR_BLINK_INTERVAL).Get(ref temp);
617                 return temp;
618             }
619             set
620             {
621                 SetProperty(TextEditor.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue(value));
622             }
623         }
624
625         /// <summary>
626         /// CursorBlinkDuration property.
627         /// </summary>
628         public float CursorBlinkDuration
629         {
630             get
631             {
632                 float temp = 0.0f;
633                 GetProperty(TextEditor.Property.CURSOR_BLINK_DURATION).Get(ref temp);
634                 return temp;
635             }
636             set
637             {
638                 SetProperty(TextEditor.Property.CURSOR_BLINK_DURATION, new Tizen.NUI.PropertyValue(value));
639             }
640         }
641
642         /// <summary>
643         /// CursorWidth property.
644         /// </summary>
645         public int CursorWidth
646         {
647             get
648             {
649                 int temp = 0;
650                 GetProperty(TextEditor.Property.CURSOR_WIDTH).Get(ref temp);
651                 return temp;
652             }
653             set
654             {
655                 SetProperty(TextEditor.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue(value));
656             }
657         }
658
659         /// <summary>
660         /// GrabHandleImage property.
661         /// </summary>
662         public string GrabHandleImage
663         {
664             get
665             {
666                 string temp;
667                 GetProperty(TextEditor.Property.GRAB_HANDLE_IMAGE).Get(out temp);
668                 return temp;
669             }
670             set
671             {
672                 SetProperty(TextEditor.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue(value));
673             }
674         }
675
676         /// <summary>
677         /// GrabHandlePressedImage property.
678         /// </summary>
679         public string GrabHandlePressedImage
680         {
681             get
682             {
683                 string temp;
684                 GetProperty(TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);
685                 return temp;
686             }
687             set
688             {
689                 SetProperty(TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue(value));
690             }
691         }
692
693         /// <summary>
694         /// SelectionHandleImageLeft property.
695         /// </summary>
696         public PropertyMap SelectionHandleImageLeft
697         {
698             get
699             {
700                 PropertyMap temp = new PropertyMap();
701                 GetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT).Get(temp);
702                 return temp;
703             }
704             set
705             {
706                 SetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
707             }
708         }
709
710         /// <summary>
711         /// SelectionHandleImageRight property.
712         /// </summary>
713         public PropertyMap SelectionHandleImageRight
714         {
715             get
716             {
717                 PropertyMap temp = new PropertyMap();
718                 GetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT).Get(temp);
719                 return temp;
720             }
721             set
722             {
723                 SetProperty(TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
724             }
725         }
726
727         /// <summary>
728         /// SelectionHandlePressedImageLeft property.
729         /// </summary>
730         public PropertyMap SelectionHandlePressedImageLeft
731         {
732             get
733             {
734                 PropertyMap temp = new PropertyMap();
735                 GetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT).Get(temp);
736                 return temp;
737             }
738             set
739             {
740                 SetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
741             }
742         }
743
744         /// <summary>
745         /// SelectionHandlePressedImageRight property.
746         /// </summary>
747         public PropertyMap SelectionHandlePressedImageRight
748         {
749             get
750             {
751                 PropertyMap temp = new PropertyMap();
752                 GetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT).Get(temp);
753                 return temp;
754             }
755             set
756             {
757                 SetProperty(TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
758             }
759         }
760
761         /// <summary>
762         /// SelectionHandleMarkerImageLeft property.
763         /// </summary>
764         public PropertyMap SelectionHandleMarkerImageLeft
765         {
766             get
767             {
768                 PropertyMap temp = new PropertyMap();
769                 GetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT).Get(temp);
770                 return temp;
771             }
772             set
773             {
774                 SetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
775             }
776         }
777
778         /// <summary>
779         /// SelectionHandleMarkerImageRight property.
780         /// </summary>
781         public PropertyMap SelectionHandleMarkerImageRight
782         {
783             get
784             {
785                 PropertyMap temp = new PropertyMap();
786                 GetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT).Get(temp);
787                 return temp;
788             }
789             set
790             {
791                 SetProperty(TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
792             }
793         }
794
795         /// <summary>
796         /// SelectionHighlightColor property.
797         /// </summary>
798         public Vector4 SelectionHighlightColor
799         {
800             get
801             {
802                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
803                 GetProperty(TextEditor.Property.SELECTION_HIGHLIGHT_COLOR).Get(temp);
804                 return temp;
805             }
806             set
807             {
808                 SetProperty(TextEditor.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue(value));
809             }
810         }
811
812         /// <summary>
813         /// DecorationBoundingBox property.
814         /// </summary>
815         public Rectangle DecorationBoundingBox
816         {
817             get
818             {
819                 Rectangle temp = new Rectangle(0, 0, 0, 0);
820                 GetProperty(TextEditor.Property.DECORATION_BOUNDING_BOX).Get(temp);
821                 return temp;
822             }
823             set
824             {
825                 SetProperty(TextEditor.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue(value));
826             }
827         }
828
829         /// <summary>
830         /// EnableMarkup property.
831         /// </summary>
832         public bool EnableMarkup
833         {
834             get
835             {
836                 bool temp = false;
837                 GetProperty(TextEditor.Property.ENABLE_MARKUP).Get(ref temp);
838                 return temp;
839             }
840             set
841             {
842                 SetProperty(TextEditor.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue(value));
843             }
844         }
845
846         /// <summary>
847         /// InputColor property.
848         /// </summary>
849         public Vector4 InputColor
850         {
851             get
852             {
853                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
854                 GetProperty(TextEditor.Property.INPUT_COLOR).Get(temp);
855                 return temp;
856             }
857             set
858             {
859                 SetProperty(TextEditor.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue(value));
860             }
861         }
862
863         /// <summary>
864         /// InputFontFamily property.
865         /// </summary>
866         public string InputFontFamily
867         {
868             get
869             {
870                 string temp;
871                 GetProperty(TextEditor.Property.INPUT_FONT_FAMILY).Get(out temp);
872                 return temp;
873             }
874             set
875             {
876                 SetProperty(TextEditor.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
877             }
878         }
879
880         /// <summary>
881         /// InputFontStyle property.
882         /// </summary>
883         public PropertyMap InputFontStyle
884         {
885             get
886             {
887                 PropertyMap temp = new PropertyMap();
888                 GetProperty(TextEditor.Property.INPUT_FONT_STYLE).Get(temp);
889                 return temp;
890             }
891             set
892             {
893                 SetProperty(TextEditor.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue(value));
894             }
895         }
896
897         /// <summary>
898         /// InputPointSize property.
899         /// </summary>
900         public float InputPointSize
901         {
902             get
903             {
904                 float temp = 0.0f;
905                 GetProperty(TextEditor.Property.INPUT_POINT_SIZE).Get(ref temp);
906                 return temp;
907             }
908             set
909             {
910                 SetProperty(TextEditor.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue(value));
911             }
912         }
913
914         /// <summary>
915         /// LineSpacing property.
916         /// </summary>
917         public float LineSpacing
918         {
919             get
920             {
921                 float temp = 0.0f;
922                 GetProperty(TextEditor.Property.LINE_SPACING).Get(ref temp);
923                 return temp;
924             }
925             set
926             {
927                 SetProperty(TextEditor.Property.LINE_SPACING, new Tizen.NUI.PropertyValue(value));
928             }
929         }
930
931         /// <summary>
932         /// InputLineSpacing property.
933         /// </summary>
934         public float InputLineSpacing
935         {
936             get
937             {
938                 float temp = 0.0f;
939                 GetProperty(TextEditor.Property.INPUT_LINE_SPACING).Get(ref temp);
940                 return temp;
941             }
942             set
943             {
944                 SetProperty(TextEditor.Property.INPUT_LINE_SPACING, new Tizen.NUI.PropertyValue(value));
945             }
946         }
947
948         /// <summary>
949         /// Underline property.
950         /// </summary>
951         public PropertyMap Underline
952         {
953             get
954             {
955                 PropertyMap temp = new PropertyMap();
956                 GetProperty(TextEditor.Property.UNDERLINE).Get(temp);
957                 return temp;
958             }
959             set
960             {
961                 SetProperty(TextEditor.Property.UNDERLINE, new Tizen.NUI.PropertyValue(value));
962             }
963         }
964
965         /// <summary>
966         /// InputUnderline property.
967         /// </summary>
968         public string InputUnderline
969         {
970             get
971             {
972                 string temp;
973                 GetProperty(TextEditor.Property.INPUT_UNDERLINE).Get(out temp);
974                 return temp;
975             }
976             set
977             {
978                 SetProperty(TextEditor.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue(value));
979             }
980         }
981
982         /// <summary>
983         /// Shadow property.
984         /// </summary>
985         public PropertyMap Shadow
986         {
987             get
988             {
989                 PropertyMap temp = new PropertyMap();
990                 GetProperty(TextEditor.Property.SHADOW).Get(temp);
991                 return temp;
992             }
993             set
994             {
995                 SetProperty(TextEditor.Property.SHADOW, new Tizen.NUI.PropertyValue(value));
996             }
997         }
998
999         /// <summary>
1000         /// InputShadow property.
1001         /// </summary>
1002         public string InputShadow
1003         {
1004             get
1005             {
1006                 string temp;
1007                 GetProperty(TextEditor.Property.INPUT_SHADOW).Get(out temp);
1008                 return temp;
1009             }
1010             set
1011             {
1012                 SetProperty(TextEditor.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue(value));
1013             }
1014         }
1015
1016         /// <summary>
1017         /// Emboss property.
1018         /// </summary>
1019         public string Emboss
1020         {
1021             get
1022             {
1023                 string temp;
1024                 GetProperty(TextEditor.Property.EMBOSS).Get(out temp);
1025                 return temp;
1026             }
1027             set
1028             {
1029                 SetProperty(TextEditor.Property.EMBOSS, new Tizen.NUI.PropertyValue(value));
1030             }
1031         }
1032
1033         /// <summary>
1034         /// InputEmboss property.
1035         /// </summary>
1036         public string InputEmboss
1037         {
1038             get
1039             {
1040                 string temp;
1041                 GetProperty(TextEditor.Property.INPUT_EMBOSS).Get(out temp);
1042                 return temp;
1043             }
1044             set
1045             {
1046                 SetProperty(TextEditor.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue(value));
1047             }
1048         }
1049
1050         /// <summary>
1051         /// Outline property.
1052         /// </summary>
1053         public string Outline
1054         {
1055             get
1056             {
1057                 string temp;
1058                 GetProperty(TextEditor.Property.OUTLINE).Get(out temp);
1059                 return temp;
1060             }
1061             set
1062             {
1063                 SetProperty(TextEditor.Property.OUTLINE, new Tizen.NUI.PropertyValue(value));
1064             }
1065         }
1066
1067         /// <summary>
1068         /// InputOutline property.
1069         /// </summary>
1070         public string InputOutline
1071         {
1072             get
1073             {
1074                 string temp;
1075                 GetProperty(TextEditor.Property.INPUT_OUTLINE).Get(out temp);
1076                 return temp;
1077             }
1078             set
1079             {
1080                 SetProperty(TextEditor.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue(value));
1081             }
1082         }
1083
1084     }
1085
1086 }