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