[NUI] remove deprecated APIs
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / TextField.cs
1 /*
2  * Copyright(c) 2017 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 extern alias TizenSystemSettings;
18 using TizenSystemSettings.Tizen.System;
19
20 using System;
21 using System.Runtime.InteropServices;
22 using System.Globalization;
23 using System.ComponentModel;
24
25 namespace Tizen.NUI.BaseComponents
26 {
27     /// <summary>
28     /// A control which provides a single line editable text field.
29     /// </summary>
30     public class TextField : View
31     {
32         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
33         private string textFieldTextSid = null;
34         private string textFieldPlaceHolderTextSid = null;
35         private bool systemlangTextFlag = false;
36
37         internal TextField(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextField_SWIGUpcast(cPtr), cMemoryOwn)
38         {
39             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
40         }
41
42         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextField obj)
43         {
44             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
45         }
46
47         /// <summary>
48         /// Dispose.
49         /// </summary>
50         protected override void Dispose(DisposeTypes type)
51         {
52             if (disposed)
53             {
54                 DisposeQueue.Instance.Add(this);
55                 return;
56             }
57
58             if (type == DisposeTypes.Explicit)
59             {
60                 //Called by User
61                 //Release your own managed resources here.
62                 //You should release all of your own disposable objects here.
63             }
64
65             //Release your own unmanaged resources here.
66             //You should not access any managed member here except static instance.
67             //because the execution order of Finalizes is non-deterministic.
68
69             if (_textFieldMaxLengthReachedCallbackDelegate != null)
70             {
71                 this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
72             }
73
74             if (_textFieldTextChangedCallbackDelegate != null)
75             {
76                 TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
77             }
78
79             if (swigCPtr.Handle != global::System.IntPtr.Zero)
80             {
81                 if (swigCMemOwn)
82                 {
83                     swigCMemOwn = false;
84                     NDalicPINVOKE.delete_TextField(swigCPtr);
85                 }
86                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
87             }
88
89             base.Dispose(type);
90         }
91
92         /// <summary>
93         /// The TextChanged event arguments.
94         /// </summary>
95         public class TextChangedEventArgs : EventArgs
96         {
97             private TextField _textField;
98
99             /// <summary>
100             /// TextField.
101             /// </summary>
102             /// <since_tizen> 3 </since_tizen>
103             public TextField TextField
104             {
105                 get
106                 {
107                     return _textField;
108                 }
109                 set
110                 {
111                     _textField = value;
112                 }
113             }
114         }
115
116         /// <summary>
117         /// The MaxLengthReached event arguments.
118         /// </summary>
119         public class MaxLengthReachedEventArgs : EventArgs
120         {
121             private TextField _textField;
122
123             /// <summary>
124             /// TextField.
125             /// </summary>
126             /// <since_tizen> 3 </since_tizen>
127             public TextField TextField
128             {
129                 get
130                 {
131                     return _textField;
132                 }
133                 set
134                 {
135                     _textField = value;
136                 }
137             }
138         }
139
140
141         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
142         private delegate void TextChangedCallbackDelegate(IntPtr textField);
143         private EventHandler<TextChangedEventArgs> _textFieldTextChangedEventHandler;
144         private TextChangedCallbackDelegate _textFieldTextChangedCallbackDelegate;
145
146         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
147         private delegate void MaxLengthReachedCallbackDelegate(IntPtr textField);
148         private EventHandler<MaxLengthReachedEventArgs> _textFieldMaxLengthReachedEventHandler;
149         private MaxLengthReachedCallbackDelegate _textFieldMaxLengthReachedCallbackDelegate;
150
151         /// <summary>
152         /// The TextChanged event.
153         /// </summary>
154         /// <since_tizen> 3 </since_tizen>
155         public event EventHandler<TextChangedEventArgs> TextChanged
156         {
157             add
158             {
159                 if (_textFieldTextChangedEventHandler == null)
160                 {
161                     _textFieldTextChangedCallbackDelegate = (OnTextChanged);
162                     TextChangedSignal().Connect(_textFieldTextChangedCallbackDelegate);
163                 }
164                 _textFieldTextChangedEventHandler += value;
165             }
166             remove
167             {
168                 _textFieldTextChangedEventHandler -= value;
169                 if (_textFieldTextChangedEventHandler == null && TextChangedSignal().Empty() == false)
170                 {
171                     TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
172                 }
173             }
174         }
175
176         private void OnTextChanged(IntPtr textField)
177         {
178             TextChangedEventArgs e = new TextChangedEventArgs();
179
180             // Populate all members of "e" (TextChangedEventArgs) with real data
181             e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
182
183             if (_textFieldTextChangedEventHandler != null)
184             {
185                 //here we send all data to user event handlers
186                 _textFieldTextChangedEventHandler(this, e);
187             }
188
189         }
190
191         /// <summary>
192         /// The MaxLengthReached event.
193         /// </summary>
194         /// <since_tizen> 3 </since_tizen>
195         public event EventHandler<MaxLengthReachedEventArgs> MaxLengthReached
196         {
197             add
198             {
199                 if (_textFieldMaxLengthReachedEventHandler == null)
200                 {
201                     _textFieldMaxLengthReachedCallbackDelegate = (OnMaxLengthReached);
202                     MaxLengthReachedSignal().Connect(_textFieldMaxLengthReachedCallbackDelegate);
203                 }
204                 _textFieldMaxLengthReachedEventHandler += value;
205             }
206             remove
207             {
208                 if (_textFieldMaxLengthReachedEventHandler == null && MaxLengthReachedSignal().Empty() == false)
209                 {
210                     this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
211                 }
212                 _textFieldMaxLengthReachedEventHandler -= value;
213             }
214         }
215
216         private void OnMaxLengthReached(IntPtr textField)
217         {
218             MaxLengthReachedEventArgs e = new MaxLengthReachedEventArgs();
219
220             // Populate all members of "e" (MaxLengthReachedEventArgs) with real data
221             e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
222
223             if (_textFieldMaxLengthReachedEventHandler != null)
224             {
225                 //here we send all data to user event handlers
226                 _textFieldMaxLengthReachedEventHandler(this, e);
227             }
228
229         }
230
231         internal new class Property
232         {
233             internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextField_Property_RENDERING_BACKEND_get();
234             internal static readonly int TEXT = NDalicPINVOKE.TextField_Property_TEXT_get();
235             internal static readonly int PLACEHOLDER_TEXT = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_get();
236             internal static readonly int PLACEHOLDER_TEXT_FOCUSED = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_FOCUSED_get();
237             internal static readonly int FONT_FAMILY = NDalicPINVOKE.TextField_Property_FONT_FAMILY_get();
238             internal static readonly int FONT_STYLE = NDalicPINVOKE.TextField_Property_FONT_STYLE_get();
239             internal static readonly int POINT_SIZE = NDalicPINVOKE.TextField_Property_POINT_SIZE_get();
240             internal static readonly int MAX_LENGTH = NDalicPINVOKE.TextField_Property_MAX_LENGTH_get();
241             internal static readonly int EXCEED_POLICY = NDalicPINVOKE.TextField_Property_EXCEED_POLICY_get();
242             internal static readonly int HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_HORIZONTAL_ALIGNMENT_get();
243             internal static readonly int VERTICAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_VERTICAL_ALIGNMENT_get();
244             internal static readonly int TEXT_COLOR = NDalicPINVOKE.TextField_Property_TEXT_COLOR_get();
245             internal static readonly int PLACEHOLDER_TEXT_COLOR = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_COLOR_get();
246             internal static readonly int SHADOW_OFFSET = NDalicPINVOKE.TextField_Property_SHADOW_OFFSET_get();
247             internal static readonly int SHADOW_COLOR = NDalicPINVOKE.TextField_Property_SHADOW_COLOR_get();
248             internal static readonly int PRIMARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_PRIMARY_CURSOR_COLOR_get();
249             internal static readonly int SECONDARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_SECONDARY_CURSOR_COLOR_get();
250             internal static readonly int ENABLE_CURSOR_BLINK = NDalicPINVOKE.TextField_Property_ENABLE_CURSOR_BLINK_get();
251             internal static readonly int CURSOR_BLINK_INTERVAL = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_INTERVAL_get();
252             internal static readonly int CURSOR_BLINK_DURATION = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_DURATION_get();
253             internal static readonly int CURSOR_WIDTH = NDalicPINVOKE.TextField_Property_CURSOR_WIDTH_get();
254             internal static readonly int GRAB_HANDLE_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_IMAGE_get();
255             internal static readonly int GRAB_HANDLE_PRESSED_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_PRESSED_IMAGE_get();
256             internal static readonly int SCROLL_THRESHOLD = NDalicPINVOKE.TextField_Property_SCROLL_THRESHOLD_get();
257             internal static readonly int SCROLL_SPEED = NDalicPINVOKE.TextField_Property_SCROLL_SPEED_get();
258             internal static readonly int SELECTION_HANDLE_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_LEFT_get();
259             internal static readonly int SELECTION_HANDLE_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_RIGHT_get();
260             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_LEFT_get();
261             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT_get();
262             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_LEFT_get();
263             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_RIGHT_get();
264             internal static readonly int SELECTION_HIGHLIGHT_COLOR = NDalicPINVOKE.TextField_Property_SELECTION_HIGHLIGHT_COLOR_get();
265             internal static readonly int DECORATION_BOUNDING_BOX = NDalicPINVOKE.TextField_Property_DECORATION_BOUNDING_BOX_get();
266             internal static readonly int INPUT_METHOD_SETTINGS = NDalicPINVOKE.TextField_Property_INPUT_METHOD_SETTINGS_get();
267             internal static readonly int INPUT_COLOR = NDalicPINVOKE.TextField_Property_INPUT_COLOR_get();
268             internal static readonly int ENABLE_MARKUP = NDalicPINVOKE.TextField_Property_ENABLE_MARKUP_get();
269             internal static readonly int INPUT_FONT_FAMILY = NDalicPINVOKE.TextField_Property_INPUT_FONT_FAMILY_get();
270             internal static readonly int INPUT_FONT_STYLE = NDalicPINVOKE.TextField_Property_INPUT_FONT_STYLE_get();
271             internal static readonly int INPUT_POINT_SIZE = NDalicPINVOKE.TextField_Property_INPUT_POINT_SIZE_get();
272             internal static readonly int UNDERLINE = NDalicPINVOKE.TextField_Property_UNDERLINE_get();
273             internal static readonly int INPUT_UNDERLINE = NDalicPINVOKE.TextField_Property_INPUT_UNDERLINE_get();
274             internal static readonly int SHADOW = NDalicPINVOKE.TextField_Property_SHADOW_get();
275             internal static readonly int INPUT_SHADOW = NDalicPINVOKE.TextField_Property_INPUT_SHADOW_get();
276             internal static readonly int EMBOSS = NDalicPINVOKE.TextField_Property_EMBOSS_get();
277             internal static readonly int INPUT_EMBOSS = NDalicPINVOKE.TextField_Property_INPUT_EMBOSS_get();
278             internal static readonly int OUTLINE = NDalicPINVOKE.TextField_Property_OUTLINE_get();
279             internal static readonly int INPUT_OUTLINE = NDalicPINVOKE.TextField_Property_INPUT_OUTLINE_get();
280             internal static readonly int HIDDEN_INPUT_SETTINGS = NDalicManualPINVOKE.TextField_Property_HIDDEN_INPUT_SETTINGS_get();
281             internal static readonly int PIXEL_SIZE = NDalicManualPINVOKE.TextField_Property_PIXEL_SIZE_get();
282             internal static readonly int ENABLE_SELECTION = NDalicManualPINVOKE.TextField_Property_ENABLE_SELECTION_get();
283             internal static readonly int PLACEHOLDER = NDalicManualPINVOKE.TextField_Property_PLACEHOLDER_get();
284             internal static readonly int ELLIPSIS = NDalicManualPINVOKE.TextField_Property_ELLIPSIS_get();
285         }
286
287         internal class InputStyle
288         {
289             internal enum Mask
290             {
291                 None = 0x0000,
292                 Color = 0x0001,
293                 FontFamily = 0x0002,
294                 PointSize = 0x0004,
295                 FontStyle = 0x0008,
296                 Underline = 0x0010,
297                 Shadow = 0x0020,
298                 Emboss = 0x0040,
299                 Outline = 0x0080
300             }
301
302         }
303
304         /// <summary>
305         /// Creates the TextField control.
306         /// </summary>
307         /// <since_tizen> 3 </since_tizen>
308         public TextField() : this(NDalicPINVOKE.TextField_New(), true)
309         {
310             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
311
312         }
313         internal TextField(TextField handle) : this(NDalicPINVOKE.new_TextField__SWIG_1(TextField.getCPtr(handle)), true)
314         {
315             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
316         }
317
318         /// <summary>
319         /// Downcasts a handle to textField handle.
320         /// </summary>
321         /// <since_tizen> 3 </since_tizen>
322         /// Please do not use! this will be deprecated!
323         /// Instead please use as keyword.
324         [Obsolete("Please DO NOT use! This will be deprecated, instead please USE as keyword.")]
325         [EditorBrowsable(EditorBrowsableState.Never)]
326         public new static TextField DownCast(BaseHandle handle)
327         {
328             TextField ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as TextField;
329             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
330             return ret;
331         }
332
333         internal TextFieldSignal TextChangedSignal()
334         {
335             TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_TextChangedSignal(swigCPtr), false);
336             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
337             return ret;
338         }
339
340         internal TextFieldSignal MaxLengthReachedSignal()
341         {
342             TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_MaxLengthReachedSignal(swigCPtr), false);
343             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
344             return ret;
345         }
346
347         internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t InputStyleChangedSignal()
348         {
349             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);
350             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
351             return ret;
352         }
353
354         internal enum ExceedPolicyType
355         {
356             ExceedPolicyOriginal,
357             ExceedPolicyClip
358         }
359
360         /// <summary>
361         /// The TranslatableText property.<br />
362         /// The text can set the SID value.<br />
363         /// </summary>
364         /// <exception cref='ArgumentNullException'>
365         /// ResourceManager about multilingual is null.
366         /// </exception>
367         /// <since_tizen> 4 </since_tizen>
368         public string TranslatableText
369         {
370             get
371             {
372                 return textFieldTextSid;
373             }
374             set
375             {
376                 if (NUIApplication.MultilingualResourceManager == null)
377                 {
378                     throw new ArgumentNullException("ResourceManager about multilingual is null");
379                 }
380                 textFieldTextSid = value;
381                 Text = SetTranslatable(textFieldTextSid);
382             }
383         }
384         /// <summary>
385         /// The TranslatablePlaceholderText property.<br />
386         /// The text can set the SID value.<br />
387         /// </summary>
388         /// <exception cref='ArgumentNullException'>
389         /// ResourceManager about multilingual is null.
390         /// </exception>
391         /// <since_tizen> 4 </since_tizen>
392         public string TranslatablePlaceholderText
393         {
394             get
395             {
396                 return textFieldPlaceHolderTextSid;
397             }
398             set
399             {
400                 if (NUIApplication.MultilingualResourceManager == null)
401                 {
402                     throw new ArgumentNullException("ResourceManager about multilingual is null");
403                 }
404                 textFieldPlaceHolderTextSid = value;
405                 PlaceholderText = SetTranslatable(textFieldPlaceHolderTextSid);
406             }
407         }
408         private string SetTranslatable(string textFieldSid)
409         {
410             string translatableText = null;
411             translatableText = NUIApplication.MultilingualResourceManager?.GetString(textFieldSid, new CultureInfo(SystemSettings.LocaleLanguage.Replace("_", "-")));
412             if (translatableText != null)
413             {
414                 if (systemlangTextFlag == false)
415                 {
416                     SystemSettings.LocaleLanguageChanged += new WeakEventHandler<LocaleLanguageChangedEventArgs>(SystemSettings_LocaleLanguageChanged).Handler;
417                     systemlangTextFlag = true;
418                 }
419                 return translatableText;
420             }
421             else
422             {
423                 translatableText = "";
424                 return translatableText;
425             }
426         }
427         private void SystemSettings_LocaleLanguageChanged(object sender, LocaleLanguageChangedEventArgs e)
428         {
429             if (textFieldTextSid != null)
430             {
431                 Text = NUIApplication.MultilingualResourceManager?.GetString(textFieldTextSid, new CultureInfo(e.Value.Replace("_", "-")));
432             }
433             if (textFieldPlaceHolderTextSid != null)
434             {
435                 PlaceholderText = NUIApplication.MultilingualResourceManager?.GetString(textFieldPlaceHolderTextSid, new CultureInfo(e.Value.Replace("_", "-")));
436             }
437         }
438         /// <summary>
439         /// The Text property.
440         /// </summary>
441         /// <since_tizen> 3 </since_tizen>
442         public string Text
443         {
444             get
445             {
446                 string temp;
447                 GetProperty(TextField.Property.TEXT).Get(out temp);
448                 return temp;
449             }
450             set
451             {
452                 SetProperty(TextField.Property.TEXT, new Tizen.NUI.PropertyValue(value));
453             }
454         }
455
456         /// <summary>
457         /// The PlaceholderText property.
458         /// </summary>
459         /// <since_tizen> 3 </since_tizen>
460         public string PlaceholderText
461         {
462             get
463             {
464                 string temp;
465                 GetProperty(TextField.Property.PLACEHOLDER_TEXT).Get(out temp);
466                 return temp;
467             }
468             set
469             {
470                 SetProperty(TextField.Property.PLACEHOLDER_TEXT, new Tizen.NUI.PropertyValue(value));
471             }
472         }
473
474         /// <summary>
475         /// The PlaceholderTextFocused property.
476         /// </summary>
477         /// <since_tizen> 3 </since_tizen>
478         public string PlaceholderTextFocused
479         {
480             get
481             {
482                 string temp;
483                 GetProperty(TextField.Property.PLACEHOLDER_TEXT_FOCUSED).Get(out temp);
484                 return temp;
485             }
486             set
487             {
488                 SetProperty(TextField.Property.PLACEHOLDER_TEXT_FOCUSED, new Tizen.NUI.PropertyValue(value));
489             }
490         }
491
492         /// <summary>
493         /// The FontFamily property.
494         /// </summary>
495         /// <since_tizen> 3 </since_tizen>
496         public string FontFamily
497         {
498             get
499             {
500                 string temp;
501                 GetProperty(TextField.Property.FONT_FAMILY).Get(out temp);
502                 return temp;
503             }
504             set
505             {
506                 SetProperty(TextField.Property.FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
507             }
508         }
509
510         /// <summary>
511         /// The FontStyle property.
512         /// </summary>
513         /// <since_tizen> 3 </since_tizen>
514         public PropertyMap FontStyle
515         {
516             get
517             {
518                 PropertyMap temp = new PropertyMap();
519                 GetProperty(TextField.Property.FONT_STYLE).Get(temp);
520                 return temp;
521             }
522             set
523             {
524                 SetProperty(TextField.Property.FONT_STYLE, new Tizen.NUI.PropertyValue(value));
525             }
526         }
527
528         /// <summary>
529         /// The PointSize property.
530         /// </summary>
531         /// <since_tizen> 3 </since_tizen>
532         public float PointSize
533         {
534             get
535             {
536                 float temp = 0.0f;
537                 GetProperty(TextField.Property.POINT_SIZE).Get(out temp);
538                 return temp;
539             }
540             set
541             {
542                 SetProperty(TextField.Property.POINT_SIZE, new Tizen.NUI.PropertyValue(value));
543             }
544         }
545
546         /// <summary>
547         /// The MaxLength property.
548         /// </summary>
549         /// <since_tizen> 3 </since_tizen>
550         public int MaxLength
551         {
552             get
553             {
554                 int temp = 0;
555                 GetProperty(TextField.Property.MAX_LENGTH).Get(out temp);
556                 return temp;
557             }
558             set
559             {
560                 SetProperty(TextField.Property.MAX_LENGTH, new Tizen.NUI.PropertyValue(value));
561             }
562         }
563
564         /// <summary>
565         /// The ExceedPolicy property.
566         /// </summary>
567         /// <since_tizen> 3 </since_tizen>
568         public int ExceedPolicy
569         {
570             get
571             {
572                 int temp = 0;
573                 GetProperty(TextField.Property.EXCEED_POLICY).Get(out temp);
574                 return temp;
575             }
576             set
577             {
578                 SetProperty(TextField.Property.EXCEED_POLICY, new Tizen.NUI.PropertyValue(value));
579             }
580         }
581
582         /// <summary>
583         /// The HorizontalAlignment property.
584         /// </summary>
585         /// <since_tizen> 3 </since_tizen>
586         public HorizontalAlignment HorizontalAlignment
587         {
588             get
589             {
590                 string temp;
591                 if (GetProperty(TextField.Property.HORIZONTAL_ALIGNMENT).Get(out temp) == false)
592                 {
593                     NUILog.Error("HorizontalAlignment get error!");
594                 }
595
596                 switch (temp)
597                 {
598                     case "BEGIN":
599                         return HorizontalAlignment.Begin;
600                     case "CENTER":
601                         return HorizontalAlignment.Center;
602                     case "END":
603                         return HorizontalAlignment.End;
604                     default:
605                         return HorizontalAlignment.Begin;
606                 }
607             }
608             set
609             {
610                 string valueToString = "";
611                 switch (value)
612                 {
613                     case HorizontalAlignment.Begin:
614                     {
615                         valueToString = "BEGIN";
616                         break;
617                     }
618                     case HorizontalAlignment.Center:
619                     {
620                         valueToString = "CENTER";
621                         break;
622                     }
623                     case HorizontalAlignment.End:
624                     {
625                         valueToString = "END";
626                         break;
627                     }
628                     default:
629                     {
630                         valueToString = "BEGIN";
631                         break;
632                     }
633                 }
634                 SetProperty(TextField.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
635             }
636         }
637
638         /// <summary>
639         /// The VerticalAlignment property.
640         /// </summary>
641         /// <since_tizen> 3 </since_tizen>
642         public VerticalAlignment VerticalAlignment
643         {
644             get
645             {
646                 string temp;
647                 if (GetProperty(TextField.Property.VERTICAL_ALIGNMENT).Get(out temp) == false)
648                 {
649                     NUILog.Error("VerticalAlignment get error!");
650                 }
651
652                 switch (temp)
653                 {
654                     case "TOP":
655                         return VerticalAlignment.Top;
656                     case "CENTER":
657                         return VerticalAlignment.Center;
658                     case "BOTTOM":
659                         return VerticalAlignment.Bottom;
660                     default:
661                         return VerticalAlignment.Bottom;
662                 }
663             }
664             set
665             {
666                 string valueToString = "";
667                 switch (value)
668                 {
669                     case VerticalAlignment.Top:
670                     {
671                         valueToString = "TOP";
672                         break;
673                     }
674                     case VerticalAlignment.Center:
675                     {
676                         valueToString = "CENTER";
677                         break;
678                     }
679                     case VerticalAlignment.Bottom:
680                     {
681                         valueToString = "BOTTOM";
682                         break;
683                     }
684                     default:
685                     {
686                         valueToString = "BOTTOM";
687                         break;
688                     }
689                 }
690                 SetProperty(TextField.Property.VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
691             }
692         }
693
694         /// <summary>
695         /// The TextColor property.
696         /// </summary>
697         /// <since_tizen> 3 </since_tizen>
698         public Color TextColor
699         {
700             get
701             {
702                 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
703                 GetProperty(TextField.Property.TEXT_COLOR).Get(temp);
704                 return temp;
705             }
706             set
707             {
708                 SetProperty(TextField.Property.TEXT_COLOR, new Tizen.NUI.PropertyValue(value));
709             }
710         }
711
712         /// <summary>
713         /// The PlaceholderTextColor property.
714         /// </summary>
715         /// <since_tizen> 3 </since_tizen>
716         public Vector4 PlaceholderTextColor
717         {
718             get
719             {
720                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
721                 GetProperty(TextField.Property.PLACEHOLDER_TEXT_COLOR).Get(temp);
722                 return temp;
723             }
724             set
725             {
726                 SetProperty(TextField.Property.PLACEHOLDER_TEXT_COLOR, new Tizen.NUI.PropertyValue(value));
727             }
728         }
729
730         /// <summary>
731         /// The ShadowOffset property.
732         /// </summary>
733         /// <since_tizen> 3 </since_tizen>
734         public Vector2 ShadowOffset
735         {
736             get
737             {
738                 Vector2 temp = new Vector2(0.0f, 0.0f);
739                 GetProperty(TextField.Property.SHADOW_OFFSET).Get(temp);
740                 return temp;
741             }
742             set
743             {
744                 SetProperty(TextField.Property.SHADOW_OFFSET, new Tizen.NUI.PropertyValue(value));
745             }
746         }
747
748         /// <summary>
749         /// The ShadowColor property.
750         /// </summary>
751         /// <since_tizen> 3 </since_tizen>
752         public Vector4 ShadowColor
753         {
754             get
755             {
756                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
757                 GetProperty(TextField.Property.SHADOW_COLOR).Get(temp);
758                 return temp;
759             }
760             set
761             {
762                 SetProperty(TextField.Property.SHADOW_COLOR, new Tizen.NUI.PropertyValue(value));
763             }
764         }
765
766         /// <summary>
767         /// The PrimaryCursorColor property.
768         /// </summary>
769         /// <since_tizen> 3 </since_tizen>
770         public Vector4 PrimaryCursorColor
771         {
772             get
773             {
774                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
775                 GetProperty(TextField.Property.PRIMARY_CURSOR_COLOR).Get(temp);
776                 return temp;
777             }
778             set
779             {
780                 SetProperty(TextField.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
781             }
782         }
783
784         /// <summary>
785         /// The SecondaryCursorColor property.
786         /// </summary>
787         /// <since_tizen> 3 </since_tizen>
788         public Vector4 SecondaryCursorColor
789         {
790             get
791             {
792                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
793                 GetProperty(TextField.Property.SECONDARY_CURSOR_COLOR).Get(temp);
794                 return temp;
795             }
796             set
797             {
798                 SetProperty(TextField.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
799             }
800         }
801
802         /// <summary>
803         /// The EnableCursorBlink property.
804         /// </summary>
805         /// <since_tizen> 3 </since_tizen>
806         public bool EnableCursorBlink
807         {
808             get
809             {
810                 bool temp = false;
811                 GetProperty(TextField.Property.ENABLE_CURSOR_BLINK).Get(out temp);
812                 return temp;
813             }
814             set
815             {
816                 SetProperty(TextField.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue(value));
817             }
818         }
819
820         /// <summary>
821         /// The CursorBlinkInterval property.
822         /// </summary>
823         /// <since_tizen> 3 </since_tizen>
824         public float CursorBlinkInterval
825         {
826             get
827             {
828                 float temp = 0.0f;
829                 GetProperty(TextField.Property.CURSOR_BLINK_INTERVAL).Get(out temp);
830                 return temp;
831             }
832             set
833             {
834                 SetProperty(TextField.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue(value));
835             }
836         }
837
838         /// <summary>
839         /// The CursorBlinkDuration property.
840         /// </summary>
841         /// <since_tizen> 3 </since_tizen>
842         public float CursorBlinkDuration
843         {
844             get
845             {
846                 float temp = 0.0f;
847                 GetProperty(TextField.Property.CURSOR_BLINK_DURATION).Get(out 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         /// The CursorWidth property.
858         /// </summary>
859         /// <since_tizen> 3 </since_tizen>
860         public int CursorWidth
861         {
862             get
863             {
864                 int temp = 0;
865                 GetProperty(TextField.Property.CURSOR_WIDTH).Get(out temp);
866                 return temp;
867             }
868             set
869             {
870                 SetProperty(TextField.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue(value));
871             }
872         }
873
874         /// <summary>
875         /// The GrabHandleImage property.
876         /// </summary>
877         /// <since_tizen> 3 </since_tizen>
878         public string GrabHandleImage
879         {
880             get
881             {
882                 string temp;
883                 GetProperty(TextField.Property.GRAB_HANDLE_IMAGE).Get(out temp);
884                 return temp;
885             }
886             set
887             {
888                 SetProperty(TextField.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue(value));
889             }
890         }
891
892         /// <summary>
893         /// The GrabHandlePressedImage property.
894         /// </summary>
895         /// <since_tizen> 3 </since_tizen>
896         public string GrabHandlePressedImage
897         {
898             get
899             {
900                 string temp;
901                 GetProperty(TextField.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);
902                 return temp;
903             }
904             set
905             {
906                 SetProperty(TextField.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue(value));
907             }
908         }
909
910         /// <summary>
911         /// The ScrollThreshold property.
912         /// </summary>
913         /// <since_tizen> 3 </since_tizen>
914         public float ScrollThreshold
915         {
916             get
917             {
918                 float temp = 0.0f;
919                 GetProperty(TextField.Property.SCROLL_THRESHOLD).Get(out temp);
920                 return temp;
921             }
922             set
923             {
924                 SetProperty(TextField.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue(value));
925             }
926         }
927
928         /// <summary>
929         /// The ScrollSpeed property.
930         /// </summary>
931         /// <since_tizen> 3 </since_tizen>
932         public float ScrollSpeed
933         {
934             get
935             {
936                 float temp = 0.0f;
937                 GetProperty(TextField.Property.SCROLL_SPEED).Get(out temp);
938                 return temp;
939             }
940             set
941             {
942                 SetProperty(TextField.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue(value));
943             }
944         }
945
946         /// <summary>
947         /// The SelectionHandleImageLeft property.
948         /// </summary>
949         /// <since_tizen> 3 </since_tizen>
950         public PropertyMap SelectionHandleImageLeft
951         {
952             get
953             {
954                 PropertyMap temp = new PropertyMap();
955                 GetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_LEFT).Get(temp);
956                 return temp;
957             }
958             set
959             {
960                 SetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
961             }
962         }
963
964         /// <summary>
965         /// The SelectionHandleImageRight property.
966         /// </summary>
967         /// <since_tizen> 3 </since_tizen>
968         public PropertyMap SelectionHandleImageRight
969         {
970             get
971             {
972                 PropertyMap temp = new PropertyMap();
973                 GetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT).Get(temp);
974                 return temp;
975             }
976             set
977             {
978                 SetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
979             }
980         }
981
982         /// <summary>
983         /// The SelectionHandlePressedImageLeft property.
984         /// </summary>
985         /// <since_tizen> 3 </since_tizen>
986         public PropertyMap SelectionHandlePressedImageLeft
987         {
988             get
989             {
990                 PropertyMap temp = new PropertyMap();
991                 GetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT).Get(temp);
992                 return temp;
993             }
994             set
995             {
996                 SetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
997             }
998         }
999
1000         /// <summary>
1001         /// The SelectionHandlePressedImageRight property.
1002         /// </summary>
1003         /// <since_tizen> 3 </since_tizen>
1004         public PropertyMap SelectionHandlePressedImageRight
1005         {
1006             get
1007             {
1008                 PropertyMap temp = new PropertyMap();
1009                 GetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT).Get(temp);
1010                 return temp;
1011             }
1012             set
1013             {
1014                 SetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
1015             }
1016         }
1017
1018         /// <summary>
1019         /// The SelectionHandleMarkerImageLeft property.
1020         /// </summary>
1021         /// <since_tizen> 3 </since_tizen>
1022         public PropertyMap SelectionHandleMarkerImageLeft
1023         {
1024             get
1025             {
1026                 PropertyMap temp = new PropertyMap();
1027                 GetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT).Get(temp);
1028                 return temp;
1029             }
1030             set
1031             {
1032                 SetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
1033             }
1034         }
1035
1036         /// <summary>
1037         /// The SelectionHandleMarkerImageRight property.
1038         /// </summary>
1039         /// <since_tizen> 3 </since_tizen>
1040         public PropertyMap SelectionHandleMarkerImageRight
1041         {
1042             get
1043             {
1044                 PropertyMap temp = new PropertyMap();
1045                 GetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT).Get(temp);
1046                 return temp;
1047             }
1048             set
1049             {
1050                 SetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
1051             }
1052         }
1053
1054         /// <summary>
1055         /// The SelectionHighlightColor property.
1056         /// </summary>
1057         /// <since_tizen> 3 </since_tizen>
1058         public Vector4 SelectionHighlightColor
1059         {
1060             get
1061             {
1062                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1063                 GetProperty(TextField.Property.SELECTION_HIGHLIGHT_COLOR).Get(temp);
1064                 return temp;
1065             }
1066             set
1067             {
1068                 SetProperty(TextField.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue(value));
1069             }
1070         }
1071
1072         /// <summary>
1073         /// The DecorationBoundingBox property.
1074         /// </summary>
1075         /// <since_tizen> 3 </since_tizen>
1076         public Rectangle DecorationBoundingBox
1077         {
1078             get
1079             {
1080                 Rectangle temp = new Rectangle(0, 0, 0, 0);
1081                 GetProperty(TextField.Property.DECORATION_BOUNDING_BOX).Get(temp);
1082                 return temp;
1083             }
1084             set
1085             {
1086                 SetProperty(TextField.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue(value));
1087             }
1088         }
1089
1090         /// <summary>
1091         /// The InputMethodSettings property.
1092         /// </summary>
1093         /// <since_tizen> 3 </since_tizen>
1094         public PropertyMap InputMethodSettings
1095         {
1096             get
1097             {
1098                 PropertyMap temp = new PropertyMap();
1099                 GetProperty(TextField.Property.INPUT_METHOD_SETTINGS).Get(temp);
1100                 return temp;
1101             }
1102             set
1103             {
1104                 SetProperty(TextField.Property.INPUT_METHOD_SETTINGS, new Tizen.NUI.PropertyValue(value));
1105             }
1106         }
1107
1108         /// <summary>
1109         /// The InputColor property.
1110         /// </summary>
1111         /// <since_tizen> 3 </since_tizen>
1112         public Vector4 InputColor
1113         {
1114             get
1115             {
1116                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1117                 GetProperty(TextField.Property.INPUT_COLOR).Get(temp);
1118                 return temp;
1119             }
1120             set
1121             {
1122                 SetProperty(TextField.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue(value));
1123             }
1124         }
1125
1126         /// <summary>
1127         /// The EnableMarkup property.
1128         /// </summary>
1129         /// <since_tizen> 3 </since_tizen>
1130         public bool EnableMarkup
1131         {
1132             get
1133             {
1134                 bool temp = false;
1135                 GetProperty(TextField.Property.ENABLE_MARKUP).Get(out temp);
1136                 return temp;
1137             }
1138             set
1139             {
1140                 SetProperty(TextField.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue(value));
1141             }
1142         }
1143
1144         /// <summary>
1145         /// The InputFontFamily property.
1146         /// </summary>
1147         /// <since_tizen> 3 </since_tizen>
1148         public string InputFontFamily
1149         {
1150             get
1151             {
1152                 string temp;
1153                 GetProperty(TextField.Property.INPUT_FONT_FAMILY).Get(out temp);
1154                 return temp;
1155             }
1156             set
1157             {
1158                 SetProperty(TextField.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
1159             }
1160         }
1161
1162         /// <summary>
1163         /// The InputFontStyle property.
1164         /// </summary>
1165         /// <since_tizen> 3 </since_tizen>
1166         public PropertyMap InputFontStyle
1167         {
1168             get
1169             {
1170                 PropertyMap temp = new PropertyMap();
1171                 GetProperty(TextField.Property.INPUT_FONT_STYLE).Get(temp);
1172                 return temp;
1173             }
1174             set
1175             {
1176                 SetProperty(TextField.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue(value));
1177             }
1178         }
1179
1180         /// <summary>
1181         /// The InputPointSize property.
1182         /// </summary>
1183         /// <since_tizen> 3 </since_tizen>
1184         public float InputPointSize
1185         {
1186             get
1187             {
1188                 float temp = 0.0f;
1189                 GetProperty(TextField.Property.INPUT_POINT_SIZE).Get(out temp);
1190                 return temp;
1191             }
1192             set
1193             {
1194                 SetProperty(TextField.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue(value));
1195             }
1196         }
1197
1198         /// <summary>
1199         /// The Underline property.
1200         /// </summary>
1201         /// <since_tizen> 3 </since_tizen>
1202         public PropertyMap Underline
1203         {
1204             get
1205             {
1206                 PropertyMap temp = new PropertyMap();
1207                 GetProperty(TextField.Property.UNDERLINE).Get(temp);
1208                 return temp;
1209             }
1210             set
1211             {
1212                 SetProperty(TextField.Property.UNDERLINE, new Tizen.NUI.PropertyValue(value));
1213             }
1214         }
1215
1216         /// <summary>
1217         /// The InputUnderline property.
1218         /// </summary>
1219         /// <since_tizen> 3 </since_tizen>
1220         public string InputUnderline
1221         {
1222             get
1223             {
1224                 string temp;
1225                 GetProperty(TextField.Property.INPUT_UNDERLINE).Get(out temp);
1226                 return temp;
1227             }
1228             set
1229             {
1230                 SetProperty(TextField.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue(value));
1231             }
1232         }
1233
1234         /// <summary>
1235         /// The Shadow property.
1236         /// </summary>
1237         /// <since_tizen> 3 </since_tizen>
1238         public PropertyMap Shadow
1239         {
1240             get
1241             {
1242                 PropertyMap temp = new PropertyMap();
1243                 GetProperty(TextField.Property.SHADOW).Get(temp);
1244                 return temp;
1245             }
1246             set
1247             {
1248                 SetProperty(TextField.Property.SHADOW, new Tizen.NUI.PropertyValue(value));
1249             }
1250         }
1251
1252         /// <summary>
1253         /// The InputShadow property.
1254         /// </summary>
1255         /// <since_tizen> 3 </since_tizen>
1256         public string InputShadow
1257         {
1258             get
1259             {
1260                 string temp;
1261                 GetProperty(TextField.Property.INPUT_SHADOW).Get(out temp);
1262                 return temp;
1263             }
1264             set
1265             {
1266                 SetProperty(TextField.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue(value));
1267             }
1268         }
1269
1270         /// <summary>
1271         /// The Emboss property.
1272         /// </summary>
1273         /// <since_tizen> 3 </since_tizen>
1274         public string Emboss
1275         {
1276             get
1277             {
1278                 string temp;
1279                 GetProperty(TextField.Property.EMBOSS).Get(out temp);
1280                 return temp;
1281             }
1282             set
1283             {
1284                 SetProperty(TextField.Property.EMBOSS, new Tizen.NUI.PropertyValue(value));
1285             }
1286         }
1287
1288         /// <summary>
1289         /// The InputEmboss property.
1290         /// </summary>
1291         /// <since_tizen> 3 </since_tizen>
1292         public string InputEmboss
1293         {
1294             get
1295             {
1296                 string temp;
1297                 GetProperty(TextField.Property.INPUT_EMBOSS).Get(out temp);
1298                 return temp;
1299             }
1300             set
1301             {
1302                 SetProperty(TextField.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue(value));
1303             }
1304         }
1305
1306         /// <summary>
1307         /// The Outline property.
1308         /// </summary>
1309         /// <since_tizen> 3 </since_tizen>
1310         public PropertyMap Outline
1311         {
1312             get
1313             {
1314                 PropertyMap temp = new PropertyMap();
1315                 GetProperty(TextField.Property.OUTLINE).Get(temp);
1316                 return temp;
1317             }
1318             set
1319             {
1320                 SetProperty(TextField.Property.OUTLINE, new Tizen.NUI.PropertyValue(value));
1321             }
1322         }
1323
1324         /// <summary>
1325         /// The InputOutline property.
1326         /// </summary>
1327         /// <since_tizen> 3 </since_tizen>
1328         public string InputOutline
1329         {
1330             get
1331             {
1332                 string temp;
1333                 GetProperty(TextField.Property.INPUT_OUTLINE).Get(out temp);
1334                 return temp;
1335             }
1336             set
1337             {
1338                 SetProperty(TextField.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue(value));
1339             }
1340         }
1341
1342         /// <summary>
1343         /// The HiddenInputSettings property.
1344         /// </summary>
1345         /// <since_tizen> 3 </since_tizen>
1346         public Tizen.NUI.PropertyMap HiddenInputSettings
1347         {
1348             get
1349             {
1350                 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1351                 GetProperty(TextField.Property.HIDDEN_INPUT_SETTINGS).Get(temp);
1352                 return temp;
1353             }
1354             set
1355             {
1356                 SetProperty(TextField.Property.HIDDEN_INPUT_SETTINGS, new Tizen.NUI.PropertyValue(value));
1357             }
1358         }
1359
1360         /// <summary>
1361         /// The PixelSize property.
1362         /// </summary>
1363         /// <since_tizen> 3 </since_tizen>
1364         public float PixelSize
1365         {
1366             get
1367             {
1368                 float temp = 0.0f;
1369                 GetProperty(TextField.Property.PIXEL_SIZE).Get(out temp);
1370                 return temp;
1371             }
1372             set
1373             {
1374                 SetProperty(TextField.Property.PIXEL_SIZE, new Tizen.NUI.PropertyValue(value));
1375             }
1376         }
1377
1378         /// <summary>
1379         /// The Enable selection property.
1380         /// </summary>
1381         /// <since_tizen> 4 </since_tizen>
1382         public bool EnableSelection
1383         {
1384             get
1385             {
1386                 bool temp = false;
1387                 GetProperty(TextField.Property.ENABLE_SELECTION).Get(out temp);
1388                 return temp;
1389             }
1390             set
1391             {
1392                 SetProperty(TextField.Property.ENABLE_SELECTION, new Tizen.NUI.PropertyValue(value));
1393             }
1394         }
1395
1396         /// <summary>
1397         /// The Placeholder property.
1398         /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
1399         /// </summary>
1400         /// <example>
1401         /// The following example demonstrates how to set the Placeholder property.
1402         /// <code>
1403         /// PropertyMap propertyMap = new PropertyMap();
1404         /// propertyMap.Add("text", new PropertyValue("Setting Placeholder Text"));
1405         /// propertyMap.Add("textFocused", new PropertyValue("Setting Placeholder Text Focused"));
1406         /// propertyMap.Add("color", new PropertyValue(Color.Red));
1407         /// propertyMap.Add("fontFamily", new PropertyValue("Arial"));
1408         /// propertyMap.Add("pointSize", new PropertyValue(12.0f));
1409         ///
1410         /// PropertyMap fontStyleMap = new PropertyMap();
1411         /// fontStyleMap.Add("weight", new PropertyValue("bold"));
1412         /// fontStyleMap.Add("width", new PropertyValue("condensed"));
1413         /// fontStyleMap.Add("slant", new PropertyValue("italic"));
1414         /// propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap));
1415         ///
1416         /// TextField field = new TextField();
1417         /// field.Placeholder = propertyMap;
1418         /// </code>
1419         /// </example>
1420         /// <since_tizen> 4 </since_tizen>
1421         public Tizen.NUI.PropertyMap Placeholder
1422         {
1423             get
1424             {
1425                 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1426                 GetProperty(TextField.Property.PLACEHOLDER).Get(temp);
1427                 return temp;
1428             }
1429             set
1430             {
1431                 SetProperty(TextField.Property.PLACEHOLDER, new Tizen.NUI.PropertyValue(value));
1432             }
1433         }
1434
1435         /// <summary>
1436         /// The Ellipsis property.<br />
1437         /// Enable or disable the ellipsis.<br />
1438         /// Placeholder PropertyMap is used to add ellipsis to placeholder text.
1439         /// </summary>
1440         /// <since_tizen> 4 </since_tizen>
1441         public bool Ellipsis
1442         {
1443             get
1444             {
1445                 bool temp = false;
1446                 GetProperty(TextField.Property.ELLIPSIS).Get(out temp);
1447                 return temp;
1448             }
1449             set
1450             {
1451                 SetProperty(TextField.Property.ELLIPSIS, new Tizen.NUI.PropertyValue(value));
1452             }
1453         }
1454
1455
1456     }
1457
1458 }