Add comments for API reference of part 4
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / TextField.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
28 {
29
30     using System;
31     using System.Runtime.InteropServices;
32
33     /// <summary>
34     /// A control which provides a single-line editable text field.
35     /// </summary>
36     public class TextField : View
37     {
38         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
39
40         internal TextField(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextField_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(TextField obj)
46         {
47             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
48         }
49
50         ~TextField()
51         {
52             DisposeQueue.Instance.Add(this);
53         }
54
55         /// <summary>
56         /// Dispose
57         /// </summary>
58         public override void Dispose()
59         {
60             if (!Stage.IsInstalled())
61             {
62                 DisposeQueue.Instance.Add(this);
63                 return;
64             }
65
66             lock (this)
67             {
68                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
69                 {
70                     if (swigCMemOwn)
71                     {
72                         swigCMemOwn = false;
73                         NDalicPINVOKE.delete_TextField(swigCPtr);
74                     }
75                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
76                 }
77                 global::System.GC.SuppressFinalize(this);
78                 base.Dispose();
79             }
80         }
81
82         /// <summary>
83         /// Text changed event arguments.
84         /// </summary>
85         public class TextChangedEventArgs : EventArgs
86         {
87             private TextField _textField;
88
89             /// <summary>
90             /// TextField.
91             /// </summary>
92             public TextField TextField
93             {
94                 get
95                 {
96                     return _textField;
97                 }
98                 set
99                 {
100                     _textField = value;
101                 }
102             }
103         }
104
105         /// <summary>
106         /// MaxLengthReached event arguments.
107         /// </summary>
108         public class MaxLengthReachedEventArgs : EventArgs
109         {
110             private TextField _textField;
111
112             /// <summary>
113             /// TextField.
114             /// </summary>
115             public TextField TextField
116             {
117                 get
118                 {
119                     return _textField;
120                 }
121                 set
122                 {
123                     _textField = value;
124                 }
125             }
126         }
127
128
129         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
130         private delegate void TextChangedCallbackDelegate(IntPtr textField);
131         private EventHandler<TextChangedEventArgs> _textFieldTextChangedEventHandler;
132         private TextChangedCallbackDelegate _textFieldTextChangedCallbackDelegate;
133
134         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
135         private delegate void MaxLengthReachedCallbackDelegate(IntPtr textField);
136         private EventHandler<MaxLengthReachedEventArgs> _textFieldMaxLengthReachedEventHandler;
137         private MaxLengthReachedCallbackDelegate _textFieldMaxLengthReachedCallbackDelegate;
138
139         /// <summary>
140         /// TextChanged event.
141         /// </summary>
142         public event EventHandler<TextChangedEventArgs> TextChanged
143         {
144             add
145             {
146                 if (_textFieldTextChangedEventHandler == null)
147                 {
148                     _textFieldTextChangedCallbackDelegate = (OnTextChanged);
149                     TextChangedSignal().Connect(_textFieldTextChangedCallbackDelegate);
150                 }
151                 _textFieldTextChangedEventHandler += value;
152             }
153             remove
154             {
155                 _textFieldTextChangedEventHandler -= value;
156                 if (_textFieldTextChangedEventHandler == null && _textFieldTextChangedCallbackDelegate != null)
157                 {
158                     TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
159                 }
160             }
161         }
162
163         private void OnTextChanged(IntPtr textField)
164         {
165             TextChangedEventArgs e = new TextChangedEventArgs();
166
167             // Populate all members of "e" (TextChangedEventArgs) with real data
168             e.TextField = Tizen.NUI.TextField.GetTextFieldFromPtr(textField);
169
170             if (_textFieldTextChangedEventHandler != null)
171             {
172                 //here we send all data to user event handlers
173                 _textFieldTextChangedEventHandler(this, e);
174             }
175
176         }
177
178         /// <summary>
179         /// MaxLengthReached event.
180         /// </summary>
181         public event EventHandler<MaxLengthReachedEventArgs> MaxLengthReached
182         {
183             add
184             {
185                 if (_textFieldMaxLengthReachedEventHandler == null)
186                 {
187                     _textFieldMaxLengthReachedCallbackDelegate = (OnMaxLengthReached);
188                     MaxLengthReachedSignal().Connect(_textFieldMaxLengthReachedCallbackDelegate);
189                 }
190                 _textFieldMaxLengthReachedEventHandler += value;
191             }
192             remove
193             {
194                 if (_textFieldMaxLengthReachedEventHandler == null && _textFieldMaxLengthReachedCallbackDelegate != null)
195                 {
196                     this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
197                 }
198                 _textFieldMaxLengthReachedEventHandler -= value;
199             }
200         }
201
202         private void OnMaxLengthReached(IntPtr textField)
203         {
204             MaxLengthReachedEventArgs e = new MaxLengthReachedEventArgs();
205
206             // Populate all members of "e" (MaxLengthReachedEventArgs) with real data
207             e.TextField = Tizen.NUI.TextField.GetTextFieldFromPtr(textField);
208
209             if (_textFieldMaxLengthReachedEventHandler != null)
210             {
211                 //here we send all data to user event handlers
212                 _textFieldMaxLengthReachedEventHandler(this, e);
213             }
214
215         }
216
217         internal static TextField GetTextFieldFromPtr(global::System.IntPtr cPtr)
218         {
219             TextField ret = new TextField(cPtr, false);
220             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
221             return ret;
222         }
223
224
225         internal class Property : global::System.IDisposable
226         {
227             private global::System.Runtime.InteropServices.HandleRef swigCPtr;
228             protected bool swigCMemOwn;
229
230             internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
231             {
232                 swigCMemOwn = cMemoryOwn;
233                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
234             }
235
236             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
237             {
238                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
239             }
240
241             ~Property()
242             {
243                 Dispose();
244             }
245
246             public virtual void Dispose()
247             {
248                 lock (this)
249                 {
250                     if (swigCPtr.Handle != global::System.IntPtr.Zero)
251                     {
252                         if (swigCMemOwn)
253                         {
254                             swigCMemOwn = false;
255                             NDalicPINVOKE.delete_TextField_Property(swigCPtr);
256                         }
257                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
258                     }
259                     global::System.GC.SuppressFinalize(this);
260                 }
261             }
262
263             internal Property() : this(NDalicPINVOKE.new_TextField_Property(), true)
264             {
265                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
266             }
267
268             internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextField_Property_RENDERING_BACKEND_get();
269             internal static readonly int TEXT = NDalicPINVOKE.TextField_Property_TEXT_get();
270             internal static readonly int PLACEHOLDER_TEXT = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_get();
271             internal static readonly int PLACEHOLDER_TEXT_FOCUSED = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_FOCUSED_get();
272             internal static readonly int FONT_FAMILY = NDalicPINVOKE.TextField_Property_FONT_FAMILY_get();
273             internal static readonly int FONT_STYLE = NDalicPINVOKE.TextField_Property_FONT_STYLE_get();
274             internal static readonly int POINT_SIZE = NDalicPINVOKE.TextField_Property_POINT_SIZE_get();
275             internal static readonly int MAX_LENGTH = NDalicPINVOKE.TextField_Property_MAX_LENGTH_get();
276             internal static readonly int EXCEED_POLICY = NDalicPINVOKE.TextField_Property_EXCEED_POLICY_get();
277             internal static readonly int HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_HORIZONTAL_ALIGNMENT_get();
278             internal static readonly int VERTICAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_VERTICAL_ALIGNMENT_get();
279             internal static readonly int TEXT_COLOR = NDalicPINVOKE.TextField_Property_TEXT_COLOR_get();
280             internal static readonly int PLACEHOLDER_TEXT_COLOR = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_COLOR_get();
281             internal static readonly int SHADOW_OFFSET = NDalicPINVOKE.TextField_Property_SHADOW_OFFSET_get();
282             internal static readonly int SHADOW_COLOR = NDalicPINVOKE.TextField_Property_SHADOW_COLOR_get();
283             internal static readonly int PRIMARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_PRIMARY_CURSOR_COLOR_get();
284             internal static readonly int SECONDARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_SECONDARY_CURSOR_COLOR_get();
285             internal static readonly int ENABLE_CURSOR_BLINK = NDalicPINVOKE.TextField_Property_ENABLE_CURSOR_BLINK_get();
286             internal static readonly int CURSOR_BLINK_INTERVAL = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_INTERVAL_get();
287             internal static readonly int CURSOR_BLINK_DURATION = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_DURATION_get();
288             internal static readonly int CURSOR_WIDTH = NDalicPINVOKE.TextField_Property_CURSOR_WIDTH_get();
289             internal static readonly int GRAB_HANDLE_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_IMAGE_get();
290             internal static readonly int GRAB_HANDLE_PRESSED_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_PRESSED_IMAGE_get();
291             internal static readonly int SCROLL_THRESHOLD = NDalicPINVOKE.TextField_Property_SCROLL_THRESHOLD_get();
292             internal static readonly int SCROLL_SPEED = NDalicPINVOKE.TextField_Property_SCROLL_SPEED_get();
293             internal static readonly int SELECTION_HANDLE_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_LEFT_get();
294             internal static readonly int SELECTION_HANDLE_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_RIGHT_get();
295             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_LEFT_get();
296             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT_get();
297             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_LEFT_get();
298             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_RIGHT_get();
299             internal static readonly int SELECTION_HIGHLIGHT_COLOR = NDalicPINVOKE.TextField_Property_SELECTION_HIGHLIGHT_COLOR_get();
300             internal static readonly int DECORATION_BOUNDING_BOX = NDalicPINVOKE.TextField_Property_DECORATION_BOUNDING_BOX_get();
301             internal static readonly int INPUT_METHOD_SETTINGS = NDalicPINVOKE.TextField_Property_INPUT_METHOD_SETTINGS_get();
302             internal static readonly int INPUT_COLOR = NDalicPINVOKE.TextField_Property_INPUT_COLOR_get();
303             internal static readonly int ENABLE_MARKUP = NDalicPINVOKE.TextField_Property_ENABLE_MARKUP_get();
304             internal static readonly int INPUT_FONT_FAMILY = NDalicPINVOKE.TextField_Property_INPUT_FONT_FAMILY_get();
305             internal static readonly int INPUT_FONT_STYLE = NDalicPINVOKE.TextField_Property_INPUT_FONT_STYLE_get();
306             internal static readonly int INPUT_POINT_SIZE = NDalicPINVOKE.TextField_Property_INPUT_POINT_SIZE_get();
307             internal static readonly int UNDERLINE = NDalicPINVOKE.TextField_Property_UNDERLINE_get();
308             internal static readonly int INPUT_UNDERLINE = NDalicPINVOKE.TextField_Property_INPUT_UNDERLINE_get();
309             internal static readonly int SHADOW = NDalicPINVOKE.TextField_Property_SHADOW_get();
310             internal static readonly int INPUT_SHADOW = NDalicPINVOKE.TextField_Property_INPUT_SHADOW_get();
311             internal static readonly int EMBOSS = NDalicPINVOKE.TextField_Property_EMBOSS_get();
312             internal static readonly int INPUT_EMBOSS = NDalicPINVOKE.TextField_Property_INPUT_EMBOSS_get();
313             internal static readonly int OUTLINE = NDalicPINVOKE.TextField_Property_OUTLINE_get();
314             internal static readonly int INPUT_OUTLINE = NDalicPINVOKE.TextField_Property_INPUT_OUTLINE_get();
315
316         }
317
318         internal class InputStyle : global::System.IDisposable
319         {
320             private global::System.Runtime.InteropServices.HandleRef swigCPtr;
321             protected bool swigCMemOwn;
322
323             internal InputStyle(global::System.IntPtr cPtr, bool cMemoryOwn)
324             {
325                 swigCMemOwn = cMemoryOwn;
326                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
327             }
328
329             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(InputStyle obj)
330             {
331                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
332             }
333
334             ~InputStyle()
335             {
336                 Dispose();
337             }
338
339             public virtual void Dispose()
340             {
341                 lock (this)
342                 {
343                     if (swigCPtr.Handle != global::System.IntPtr.Zero)
344                     {
345                         if (swigCMemOwn)
346                         {
347                             swigCMemOwn = false;
348                             NDalicPINVOKE.delete_TextField_InputStyle(swigCPtr);
349                         }
350                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
351                     }
352                     global::System.GC.SuppressFinalize(this);
353                 }
354             }
355
356             internal InputStyle() : this(NDalicPINVOKE.new_TextField_InputStyle(), true)
357             {
358                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
359             }
360
361             internal enum Mask
362             {
363                 None = 0x0000,
364                 Color = 0x0001,
365                 FontFamily = 0x0002,
366                 PointSize = 0x0004,
367                 FontStyle = 0x0008,
368                 Underline = 0x0010,
369                 Shadow = 0x0020,
370                 Emboss = 0x0040,
371                 Outline = 0x0080
372             }
373
374         }
375
376         /// <summary>
377         /// Creates an empty handle.
378         /// </summary>
379         public TextField() : this(NDalicPINVOKE.TextField_New(), true)
380         {
381             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
382
383         }
384         internal TextField(TextField handle) : this(NDalicPINVOKE.new_TextField__SWIG_1(TextField.getCPtr(handle)), true)
385         {
386             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
387         }
388
389         internal TextField Assign(TextField handle)
390         {
391             TextField ret = new TextField(NDalicPINVOKE.TextField_Assign(swigCPtr, TextField.getCPtr(handle)), false);
392             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
393             return ret;
394         }
395
396         /// <summary>
397         /// Downcasts a handle to TextField.
398         /// </summary>
399         public new static TextField DownCast(BaseHandle handle)
400         {
401             TextField ret = new TextField(NDalicPINVOKE.TextField_DownCast(BaseHandle.getCPtr(handle)), true);
402             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
403             return ret;
404         }
405
406         internal TextFieldSignal TextChangedSignal()
407         {
408             TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_TextChangedSignal(swigCPtr), false);
409             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
410             return ret;
411         }
412
413         internal TextFieldSignal MaxLengthReachedSignal()
414         {
415             TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_MaxLengthReachedSignal(swigCPtr), false);
416             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
417             return ret;
418         }
419
420         internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t InputStyleChangedSignal()
421         {
422             SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t ret = new SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t(NDalicPINVOKE.TextField_InputStyleChangedSignal(swigCPtr), false);
423             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
424             return ret;
425         }
426
427         internal enum PropertyRange
428         {
429             PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
430             PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000
431         }
432
433         internal enum ExceedPolicyType
434         {
435             ExceedPolicyOriginal,
436             ExceedPolicyClip
437         }
438
439         /// <summary>
440         /// RenderingBackend property.
441         /// </summary>
442         public int RenderingBackend
443         {
444             get
445             {
446                 int temp = 0;
447                 GetProperty(TextField.Property.RENDERING_BACKEND).Get(ref temp);
448                 return temp;
449             }
450             set
451             {
452                 SetProperty(TextField.Property.RENDERING_BACKEND, new Tizen.NUI.PropertyValue(value));
453             }
454         }
455
456         /// <summary>
457         /// Text property.
458         /// </summary>
459         public string Text
460         {
461             get
462             {
463                 string temp;
464                 GetProperty(TextField.Property.TEXT).Get(out temp);
465                 return temp;
466             }
467             set
468             {
469                 SetProperty(TextField.Property.TEXT, new Tizen.NUI.PropertyValue(value));
470             }
471         }
472
473         /// <summary>
474         /// PlaceholderText property.
475         /// </summary>
476         public string PlaceholderText
477         {
478             get
479             {
480                 string temp;
481                 GetProperty(TextField.Property.PLACEHOLDER_TEXT).Get(out temp);
482                 return temp;
483             }
484             set
485             {
486                 SetProperty(TextField.Property.PLACEHOLDER_TEXT, new Tizen.NUI.PropertyValue(value));
487             }
488         }
489
490         /// <summary>
491         /// PlaceholderTextFocused property.
492         /// </summary>
493         public string PlaceholderTextFocused
494         {
495             get
496             {
497                 string temp;
498                 GetProperty(TextField.Property.PLACEHOLDER_TEXT_FOCUSED).Get(out temp);
499                 return temp;
500             }
501             set
502             {
503                 SetProperty(TextField.Property.PLACEHOLDER_TEXT_FOCUSED, new Tizen.NUI.PropertyValue(value));
504             }
505         }
506
507         /// <summary>
508         /// FontFamily property.
509         /// </summary>
510         public string FontFamily
511         {
512             get
513             {
514                 string temp;
515                 GetProperty(TextField.Property.FONT_FAMILY).Get(out temp);
516                 return temp;
517             }
518             set
519             {
520                 SetProperty(TextField.Property.FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
521             }
522         }
523
524         /// <summary>
525         /// FontStyle property.
526         /// </summary>
527         public PropertyMap FontStyle
528         {
529             get
530             {
531                 PropertyMap temp = new PropertyMap();
532                 GetProperty(TextField.Property.FONT_STYLE).Get(temp);
533                 return temp;
534             }
535             set
536             {
537                 SetProperty(TextField.Property.FONT_STYLE, new Tizen.NUI.PropertyValue(value));
538             }
539         }
540
541         /// <summary>
542         /// PointSize property.
543         /// </summary>
544         public float PointSize
545         {
546             get
547             {
548                 float temp = 0.0f;
549                 GetProperty(TextField.Property.POINT_SIZE).Get(ref temp);
550                 return temp;
551             }
552             set
553             {
554                 SetProperty(TextField.Property.POINT_SIZE, new Tizen.NUI.PropertyValue(value));
555             }
556         }
557
558         /// <summary>
559         /// MaxLength property.
560         /// </summary>
561         public int MaxLength
562         {
563             get
564             {
565                 int temp = 0;
566                 GetProperty(TextField.Property.MAX_LENGTH).Get(ref temp);
567                 return temp;
568             }
569             set
570             {
571                 SetProperty(TextField.Property.MAX_LENGTH, new Tizen.NUI.PropertyValue(value));
572             }
573         }
574
575         /// <summary>
576         /// ExceedPolicy property.
577         /// </summary>
578         public int ExceedPolicy
579         {
580             get
581             {
582                 int temp = 0;
583                 GetProperty(TextField.Property.EXCEED_POLICY).Get(ref temp);
584                 return temp;
585             }
586             set
587             {
588                 SetProperty(TextField.Property.EXCEED_POLICY, new Tizen.NUI.PropertyValue(value));
589             }
590         }
591
592         /// <summary>
593         /// HorizontalAlignment property.
594         /// </summary>
595         public string HorizontalAlignment
596         {
597             get
598             {
599                 string temp;
600                 GetProperty(TextField.Property.HORIZONTAL_ALIGNMENT).Get(out temp);
601                 return temp;
602             }
603             set
604             {
605                 SetProperty(TextField.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(value));
606             }
607         }
608
609         /// <summary>
610         /// VerticalAlignment property.
611         /// </summary>
612         public string VerticalAlignment
613         {
614             get
615             {
616                 string temp;
617                 GetProperty(TextField.Property.VERTICAL_ALIGNMENT).Get(out temp);
618                 return temp;
619             }
620             set
621             {
622                 SetProperty(TextField.Property.VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(value));
623             }
624         }
625
626         /// <summary>
627         /// TextColor property.
628         /// </summary>
629         public Color TextColor
630         {
631             get
632             {
633                 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
634                 GetProperty(TextField.Property.TEXT_COLOR).Get(temp);
635                 return temp;
636             }
637             set
638             {
639                 SetProperty(TextField.Property.TEXT_COLOR, new Tizen.NUI.PropertyValue(value));
640             }
641         }
642
643         /// <summary>
644         /// PlaceholderTextColor property.
645         /// </summary>
646         public Vector4 PlaceholderTextColor
647         {
648             get
649             {
650                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
651                 GetProperty(TextField.Property.PLACEHOLDER_TEXT_COLOR).Get(temp);
652                 return temp;
653             }
654             set
655             {
656                 SetProperty(TextField.Property.PLACEHOLDER_TEXT_COLOR, new Tizen.NUI.PropertyValue(value));
657             }
658         }
659
660         /// <summary>
661         /// ShadowOffset property.
662         /// </summary>
663         public Vector2 ShadowOffset
664         {
665             get
666             {
667                 Vector2 temp = new Vector2(0.0f, 0.0f);
668                 GetProperty(TextField.Property.SHADOW_OFFSET).Get(temp);
669                 return temp;
670             }
671             set
672             {
673                 SetProperty(TextField.Property.SHADOW_OFFSET, new Tizen.NUI.PropertyValue(value));
674             }
675         }
676
677         /// <summary>
678         /// ShadowColor property.
679         /// </summary>
680         public Vector4 ShadowColor
681         {
682             get
683             {
684                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
685                 GetProperty(TextField.Property.SHADOW_COLOR).Get(temp);
686                 return temp;
687             }
688             set
689             {
690                 SetProperty(TextField.Property.SHADOW_COLOR, new Tizen.NUI.PropertyValue(value));
691             }
692         }
693
694         /// <summary>
695         /// PrimaryCursorColor property.
696         /// </summary>
697         public Vector4 PrimaryCursorColor
698         {
699             get
700             {
701                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
702                 GetProperty(TextField.Property.PRIMARY_CURSOR_COLOR).Get(temp);
703                 return temp;
704             }
705             set
706             {
707                 SetProperty(TextField.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
708             }
709         }
710
711         /// <summary>
712         /// SecondaryCursorColor property.
713         /// </summary>
714         public Vector4 SecondaryCursorColor
715         {
716             get
717             {
718                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
719                 GetProperty(TextField.Property.SECONDARY_CURSOR_COLOR).Get(temp);
720                 return temp;
721             }
722             set
723             {
724                 SetProperty(TextField.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
725             }
726         }
727
728         /// <summary>
729         /// EnableCursorBlink property.
730         /// </summary>
731         public bool EnableCursorBlink
732         {
733             get
734             {
735                 bool temp = false;
736                 GetProperty(TextField.Property.ENABLE_CURSOR_BLINK).Get(ref temp);
737                 return temp;
738             }
739             set
740             {
741                 SetProperty(TextField.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue(value));
742             }
743         }
744
745         /// <summary>
746         /// CursorBlinkInterval property.
747         /// </summary>
748         public float CursorBlinkInterval
749         {
750             get
751             {
752                 float temp = 0.0f;
753                 GetProperty(TextField.Property.CURSOR_BLINK_INTERVAL).Get(ref temp);
754                 return temp;
755             }
756             set
757             {
758                 SetProperty(TextField.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue(value));
759             }
760         }
761
762         /// <summary>
763         /// CursorBlinkDuration property.
764         /// </summary>
765         public float CursorBlinkDuration
766         {
767             get
768             {
769                 float temp = 0.0f;
770                 GetProperty(TextField.Property.CURSOR_BLINK_DURATION).Get(ref temp);
771                 return temp;
772             }
773             set
774             {
775                 SetProperty(TextField.Property.CURSOR_BLINK_DURATION, new Tizen.NUI.PropertyValue(value));
776             }
777         }
778
779         /// <summary>
780         /// CursorWidth property.
781         /// </summary>
782         public int CursorWidth
783         {
784             get
785             {
786                 int temp = 0;
787                 GetProperty(TextField.Property.CURSOR_WIDTH).Get(ref temp);
788                 return temp;
789             }
790             set
791             {
792                 SetProperty(TextField.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue(value));
793             }
794         }
795
796         /// <summary>
797         /// GrabHandleImage property.
798         /// </summary>
799         public string GrabHandleImage
800         {
801             get
802             {
803                 string temp;
804                 GetProperty(TextField.Property.GRAB_HANDLE_IMAGE).Get(out temp);
805                 return temp;
806             }
807             set
808             {
809                 SetProperty(TextField.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue(value));
810             }
811         }
812
813         /// <summary>
814         /// GrabHandlePressedImage property.
815         /// </summary>
816         public string GrabHandlePressedImage
817         {
818             get
819             {
820                 string temp;
821                 GetProperty(TextField.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);
822                 return temp;
823             }
824             set
825             {
826                 SetProperty(TextField.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue(value));
827             }
828         }
829
830         /// <summary>
831         /// ScrollThreshold property.
832         /// </summary>
833         public float ScrollThreshold
834         {
835             get
836             {
837                 float temp = 0.0f;
838                 GetProperty(TextField.Property.SCROLL_THRESHOLD).Get(ref temp);
839                 return temp;
840             }
841             set
842             {
843                 SetProperty(TextField.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue(value));
844             }
845         }
846
847         /// <summary>
848         /// ScrollSpeed property.
849         /// </summary>
850         public float ScrollSpeed
851         {
852             get
853             {
854                 float temp = 0.0f;
855                 GetProperty(TextField.Property.SCROLL_SPEED).Get(ref temp);
856                 return temp;
857             }
858             set
859             {
860                 SetProperty(TextField.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue(value));
861             }
862         }
863
864         /// <summary>
865         /// SelectionHandleImageLeft property.
866         /// </summary>
867         public PropertyMap SelectionHandleImageLeft
868         {
869             get
870             {
871                 PropertyMap temp = new PropertyMap();
872                 GetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_LEFT).Get(temp);
873                 return temp;
874             }
875             set
876             {
877                 SetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
878             }
879         }
880
881         /// <summary>
882         /// SelectionHandleImageRight property.
883         /// </summary>
884         public PropertyMap SelectionHandleImageRight
885         {
886             get
887             {
888                 PropertyMap temp = new PropertyMap();
889                 GetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT).Get(temp);
890                 return temp;
891             }
892             set
893             {
894                 SetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
895             }
896         }
897
898         /// <summary>
899         /// SelectionHandlePressedImageLeft property.
900         /// </summary>
901         public PropertyMap SelectionHandlePressedImageLeft
902         {
903             get
904             {
905                 PropertyMap temp = new PropertyMap();
906                 GetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT).Get(temp);
907                 return temp;
908             }
909             set
910             {
911                 SetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
912             }
913         }
914
915         /// <summary>
916         /// SelectionHandlePressedImageRight property.
917         /// </summary>
918         public PropertyMap SelectionHandlePressedImageRight
919         {
920             get
921             {
922                 PropertyMap temp = new PropertyMap();
923                 GetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT).Get(temp);
924                 return temp;
925             }
926             set
927             {
928                 SetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
929             }
930         }
931
932         /// <summary>
933         /// SelectionHandleMarkerImageLeft property.
934         /// </summary>
935         public PropertyMap SelectionHandleMarkerImageLeft
936         {
937             get
938             {
939                 PropertyMap temp = new PropertyMap();
940                 GetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT).Get(temp);
941                 return temp;
942             }
943             set
944             {
945                 SetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
946             }
947         }
948
949         /// <summary>
950         /// SelectionHandleMarkerImageRight property.
951         /// </summary>
952         public PropertyMap SelectionHandleMarkerImageRight
953         {
954             get
955             {
956                 PropertyMap temp = new PropertyMap();
957                 GetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT).Get(temp);
958                 return temp;
959             }
960             set
961             {
962                 SetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
963             }
964         }
965
966         /// <summary>
967         /// SelectionHighlightColor property.
968         /// </summary>
969         public Vector4 SelectionHighlightColor
970         {
971             get
972             {
973                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
974                 GetProperty(TextField.Property.SELECTION_HIGHLIGHT_COLOR).Get(temp);
975                 return temp;
976             }
977             set
978             {
979                 SetProperty(TextField.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue(value));
980             }
981         }
982
983         /// <summary>
984         /// DecorationBoundingBox property.
985         /// </summary>
986         public Rectangle DecorationBoundingBox
987         {
988             get
989             {
990                 Rectangle temp = new Rectangle(0, 0, 0, 0);
991                 GetProperty(TextField.Property.DECORATION_BOUNDING_BOX).Get(temp);
992                 return temp;
993             }
994             set
995             {
996                 SetProperty(TextField.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue(value));
997             }
998         }
999
1000         /// <summary>
1001         /// InputMethodSettings property.
1002         /// </summary>
1003         public PropertyMap InputMethodSettings
1004         {
1005             get
1006             {
1007                 PropertyMap temp = new PropertyMap();
1008                 GetProperty(TextField.Property.INPUT_METHOD_SETTINGS).Get(temp);
1009                 return temp;
1010             }
1011             set
1012             {
1013                 SetProperty(TextField.Property.INPUT_METHOD_SETTINGS, new Tizen.NUI.PropertyValue(value));
1014             }
1015         }
1016
1017         /// <summary>
1018         /// InputColor property.
1019         /// </summary>
1020         public Vector4 InputColor
1021         {
1022             get
1023             {
1024                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1025                 GetProperty(TextField.Property.INPUT_COLOR).Get(temp);
1026                 return temp;
1027             }
1028             set
1029             {
1030                 SetProperty(TextField.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue(value));
1031             }
1032         }
1033
1034         /// <summary>
1035         /// EnableMarkup property.
1036         /// </summary>
1037         public bool EnableMarkup
1038         {
1039             get
1040             {
1041                 bool temp = false;
1042                 GetProperty(TextField.Property.ENABLE_MARKUP).Get(ref temp);
1043                 return temp;
1044             }
1045             set
1046             {
1047                 SetProperty(TextField.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue(value));
1048             }
1049         }
1050
1051         /// <summary>
1052         /// InputFontFamily property.
1053         /// </summary>
1054         public string InputFontFamily
1055         {
1056             get
1057             {
1058                 string temp;
1059                 GetProperty(TextField.Property.INPUT_FONT_FAMILY).Get(out temp);
1060                 return temp;
1061             }
1062             set
1063             {
1064                 SetProperty(TextField.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
1065             }
1066         }
1067
1068         /// <summary>
1069         /// InputFontStyle property.
1070         /// </summary>
1071         public PropertyMap InputFontStyle
1072         {
1073             get
1074             {
1075                 PropertyMap temp = new PropertyMap();
1076                 GetProperty(TextField.Property.INPUT_FONT_STYLE).Get(temp);
1077                 return temp;
1078             }
1079             set
1080             {
1081                 SetProperty(TextField.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue(value));
1082             }
1083         }
1084
1085         /// <summary>
1086         /// InputPointSize property.
1087         /// </summary>
1088         public float InputPointSize
1089         {
1090             get
1091             {
1092                 float temp = 0.0f;
1093                 GetProperty(TextField.Property.INPUT_POINT_SIZE).Get(ref temp);
1094                 return temp;
1095             }
1096             set
1097             {
1098                 SetProperty(TextField.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue(value));
1099             }
1100         }
1101
1102         /// <summary>
1103         /// Underline property.
1104         /// </summary>
1105         public PropertyMap Underline
1106         {
1107             get
1108             {
1109                 PropertyMap temp = new PropertyMap();
1110                 GetProperty(TextField.Property.UNDERLINE).Get(temp);
1111                 return temp;
1112             }
1113             set
1114             {
1115                 SetProperty(TextField.Property.UNDERLINE, new Tizen.NUI.PropertyValue(value));
1116             }
1117         }
1118
1119         /// <summary>
1120         /// InputUnderline property.
1121         /// </summary>
1122         public PropertyMap InputUnderline
1123         {
1124             get
1125             {
1126                 PropertyMap temp = new PropertyMap();
1127                 GetProperty(TextField.Property.INPUT_UNDERLINE).Get(temp);
1128                 return temp;
1129             }
1130             set
1131             {
1132                 SetProperty(TextField.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue(value));
1133             }
1134         }
1135
1136         /// <summary>
1137         /// Shadow property.
1138         /// </summary>
1139         public PropertyMap Shadow
1140         {
1141             get
1142             {
1143                 PropertyMap temp = new PropertyMap();
1144                 GetProperty(TextField.Property.SHADOW).Get(temp);
1145                 return temp;
1146             }
1147             set
1148             {
1149                 SetProperty(TextField.Property.SHADOW, new Tizen.NUI.PropertyValue(value));
1150             }
1151         }
1152
1153         /// <summary>
1154         /// InputShadow property.
1155         /// </summary>
1156         public PropertyMap InputShadow
1157         {
1158             get
1159             {
1160                 PropertyMap temp = new PropertyMap();
1161                 GetProperty(TextField.Property.INPUT_SHADOW).Get(temp);
1162                 return temp;
1163             }
1164             set
1165             {
1166                 SetProperty(TextField.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue(value));
1167             }
1168         }
1169
1170         /// <summary>
1171         /// Emboss property.
1172         /// </summary>
1173         public PropertyMap Emboss
1174         {
1175             get
1176             {
1177                 PropertyMap temp = new PropertyMap();
1178                 GetProperty(TextField.Property.EMBOSS).Get(temp);
1179                 return temp;
1180             }
1181             set
1182             {
1183                 SetProperty(TextField.Property.EMBOSS, new Tizen.NUI.PropertyValue(value));
1184             }
1185         }
1186
1187         /// <summary>
1188         /// InputEmboss property.
1189         /// </summary>
1190         public PropertyMap InputEmboss
1191         {
1192             get
1193             {
1194                 PropertyMap temp = new PropertyMap();
1195                 GetProperty(TextField.Property.INPUT_EMBOSS).Get(temp);
1196                 return temp;
1197             }
1198             set
1199             {
1200                 SetProperty(TextField.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue(value));
1201             }
1202         }
1203
1204         /// <summary>
1205         /// Outline property.
1206         /// </summary>
1207         public PropertyMap Outline
1208         {
1209             get
1210             {
1211                 PropertyMap temp = new PropertyMap();
1212                 GetProperty(TextField.Property.OUTLINE).Get(temp);
1213                 return temp;
1214             }
1215             set
1216             {
1217                 SetProperty(TextField.Property.OUTLINE, new Tizen.NUI.PropertyValue(value));
1218             }
1219         }
1220
1221         /// <summary>
1222         /// InputOutline property.
1223         /// </summary>
1224         public PropertyMap InputOutline
1225         {
1226             get
1227             {
1228                 PropertyMap temp = new PropertyMap();
1229                 GetProperty(TextField.Property.INPUT_OUTLINE).Get(temp);
1230                 return temp;
1231             }
1232             set
1233             {
1234                 SetProperty(TextField.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue(value));
1235             }
1236         }
1237
1238     }
1239
1240 }