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