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