[NUI]Remove some unused 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         internal TextFieldSignal TextChangedSignal()
323         {
324             TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_TextChangedSignal(swigCPtr), false);
325             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
326             return ret;
327         }
328
329         internal TextFieldSignal MaxLengthReachedSignal()
330         {
331             TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_MaxLengthReachedSignal(swigCPtr), false);
332             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
333             return ret;
334         }
335
336         internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t InputStyleChangedSignal()
337         {
338             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);
339             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
340             return ret;
341         }
342
343         internal enum ExceedPolicyType
344         {
345             ExceedPolicyOriginal,
346             ExceedPolicyClip
347         }
348
349         /// <summary>
350         /// The TranslatableText property.<br />
351         /// The text can set the SID value.<br />
352         /// </summary>
353         /// <exception cref='ArgumentNullException'>
354         /// ResourceManager about multilingual is null.
355         /// </exception>
356         /// <since_tizen> 4 </since_tizen>
357         public string TranslatableText
358         {
359             get
360             {
361                 return textFieldTextSid;
362             }
363             set
364             {
365                 if (NUIApplication.MultilingualResourceManager == null)
366                 {
367                     throw new ArgumentNullException("ResourceManager about multilingual is null");
368                 }
369                 textFieldTextSid = value;
370                 Text = SetTranslatable(textFieldTextSid);
371             }
372         }
373         /// <summary>
374         /// The TranslatablePlaceholderText property.<br />
375         /// The text can set the SID value.<br />
376         /// </summary>
377         /// <exception cref='ArgumentNullException'>
378         /// ResourceManager about multilingual is null.
379         /// </exception>
380         /// <since_tizen> 4 </since_tizen>
381         public string TranslatablePlaceholderText
382         {
383             get
384             {
385                 return textFieldPlaceHolderTextSid;
386             }
387             set
388             {
389                 if (NUIApplication.MultilingualResourceManager == null)
390                 {
391                     throw new ArgumentNullException("ResourceManager about multilingual is null");
392                 }
393                 textFieldPlaceHolderTextSid = value;
394                 PlaceholderText = SetTranslatable(textFieldPlaceHolderTextSid);
395             }
396         }
397         private string SetTranslatable(string textFieldSid)
398         {
399             string translatableText = null;
400             translatableText = NUIApplication.MultilingualResourceManager?.GetString(textFieldSid, new CultureInfo(SystemSettings.LocaleLanguage.Replace("_", "-")));
401             if (translatableText != null)
402             {
403                 if (systemlangTextFlag == false)
404                 {
405                     SystemSettings.LocaleLanguageChanged += new WeakEventHandler<LocaleLanguageChangedEventArgs>(SystemSettings_LocaleLanguageChanged).Handler;
406                     systemlangTextFlag = true;
407                 }
408                 return translatableText;
409             }
410             else
411             {
412                 translatableText = "";
413                 return translatableText;
414             }
415         }
416         private void SystemSettings_LocaleLanguageChanged(object sender, LocaleLanguageChangedEventArgs e)
417         {
418             if (textFieldTextSid != null)
419             {
420                 Text = NUIApplication.MultilingualResourceManager?.GetString(textFieldTextSid, new CultureInfo(e.Value.Replace("_", "-")));
421             }
422             if (textFieldPlaceHolderTextSid != null)
423             {
424                 PlaceholderText = NUIApplication.MultilingualResourceManager?.GetString(textFieldPlaceHolderTextSid, new CultureInfo(e.Value.Replace("_", "-")));
425             }
426         }
427         /// <summary>
428         /// The Text property.
429         /// </summary>
430         /// <since_tizen> 3 </since_tizen>
431         public string Text
432         {
433             get
434             {
435                 string temp;
436                 GetProperty(TextField.Property.TEXT).Get(out temp);
437                 return temp;
438             }
439             set
440             {
441                 SetProperty(TextField.Property.TEXT, new Tizen.NUI.PropertyValue(value));
442             }
443         }
444
445         /// <summary>
446         /// The PlaceholderText property.
447         /// </summary>
448         /// <since_tizen> 3 </since_tizen>
449         public string PlaceholderText
450         {
451             get
452             {
453                 string temp;
454                 GetProperty(TextField.Property.PLACEHOLDER_TEXT).Get(out temp);
455                 return temp;
456             }
457             set
458             {
459                 SetProperty(TextField.Property.PLACEHOLDER_TEXT, new Tizen.NUI.PropertyValue(value));
460             }
461         }
462
463         /// <summary>
464         /// The PlaceholderTextFocused property.
465         /// </summary>
466         /// <since_tizen> 3 </since_tizen>
467         public string PlaceholderTextFocused
468         {
469             get
470             {
471                 string temp;
472                 GetProperty(TextField.Property.PLACEHOLDER_TEXT_FOCUSED).Get(out temp);
473                 return temp;
474             }
475             set
476             {
477                 SetProperty(TextField.Property.PLACEHOLDER_TEXT_FOCUSED, new Tizen.NUI.PropertyValue(value));
478             }
479         }
480
481         /// <summary>
482         /// The FontFamily property.
483         /// </summary>
484         /// <since_tizen> 3 </since_tizen>
485         public string FontFamily
486         {
487             get
488             {
489                 string temp;
490                 GetProperty(TextField.Property.FONT_FAMILY).Get(out temp);
491                 return temp;
492             }
493             set
494             {
495                 SetProperty(TextField.Property.FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
496             }
497         }
498
499         /// <summary>
500         /// The FontStyle property.
501         /// </summary>
502         /// <since_tizen> 3 </since_tizen>
503         public PropertyMap FontStyle
504         {
505             get
506             {
507                 PropertyMap temp = new PropertyMap();
508                 GetProperty(TextField.Property.FONT_STYLE).Get(temp);
509                 return temp;
510             }
511             set
512             {
513                 SetProperty(TextField.Property.FONT_STYLE, new Tizen.NUI.PropertyValue(value));
514             }
515         }
516
517         /// <summary>
518         /// The PointSize property.
519         /// </summary>
520         /// <since_tizen> 3 </since_tizen>
521         public float PointSize
522         {
523             get
524             {
525                 float temp = 0.0f;
526                 GetProperty(TextField.Property.POINT_SIZE).Get(out temp);
527                 return temp;
528             }
529             set
530             {
531                 SetProperty(TextField.Property.POINT_SIZE, new Tizen.NUI.PropertyValue(value));
532             }
533         }
534
535         /// <summary>
536         /// The MaxLength property.
537         /// </summary>
538         /// <since_tizen> 3 </since_tizen>
539         public int MaxLength
540         {
541             get
542             {
543                 int temp = 0;
544                 GetProperty(TextField.Property.MAX_LENGTH).Get(out temp);
545                 return temp;
546             }
547             set
548             {
549                 SetProperty(TextField.Property.MAX_LENGTH, new Tizen.NUI.PropertyValue(value));
550             }
551         }
552
553         /// <summary>
554         /// The ExceedPolicy property.
555         /// </summary>
556         /// <since_tizen> 3 </since_tizen>
557         public int ExceedPolicy
558         {
559             get
560             {
561                 int temp = 0;
562                 GetProperty(TextField.Property.EXCEED_POLICY).Get(out temp);
563                 return temp;
564             }
565             set
566             {
567                 SetProperty(TextField.Property.EXCEED_POLICY, new Tizen.NUI.PropertyValue(value));
568             }
569         }
570
571         /// <summary>
572         /// The HorizontalAlignment property.
573         /// </summary>
574         /// <since_tizen> 3 </since_tizen>
575         public HorizontalAlignment HorizontalAlignment
576         {
577             get
578             {
579                 string temp;
580                 if (GetProperty(TextField.Property.HORIZONTAL_ALIGNMENT).Get(out temp) == false)
581                 {
582                     NUILog.Error("HorizontalAlignment get error!");
583                 }
584
585                 switch (temp)
586                 {
587                     case "BEGIN":
588                         return HorizontalAlignment.Begin;
589                     case "CENTER":
590                         return HorizontalAlignment.Center;
591                     case "END":
592                         return HorizontalAlignment.End;
593                     default:
594                         return HorizontalAlignment.Begin;
595                 }
596             }
597             set
598             {
599                 string valueToString = "";
600                 switch (value)
601                 {
602                     case HorizontalAlignment.Begin:
603                     {
604                         valueToString = "BEGIN";
605                         break;
606                     }
607                     case HorizontalAlignment.Center:
608                     {
609                         valueToString = "CENTER";
610                         break;
611                     }
612                     case HorizontalAlignment.End:
613                     {
614                         valueToString = "END";
615                         break;
616                     }
617                     default:
618                     {
619                         valueToString = "BEGIN";
620                         break;
621                     }
622                 }
623                 SetProperty(TextField.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
624             }
625         }
626
627         /// <summary>
628         /// The VerticalAlignment property.
629         /// </summary>
630         /// <since_tizen> 3 </since_tizen>
631         public VerticalAlignment VerticalAlignment
632         {
633             get
634             {
635                 string temp;
636                 if (GetProperty(TextField.Property.VERTICAL_ALIGNMENT).Get(out temp) == false)
637                 {
638                     NUILog.Error("VerticalAlignment get error!");
639                 }
640
641                 switch (temp)
642                 {
643                     case "TOP":
644                         return VerticalAlignment.Top;
645                     case "CENTER":
646                         return VerticalAlignment.Center;
647                     case "BOTTOM":
648                         return VerticalAlignment.Bottom;
649                     default:
650                         return VerticalAlignment.Bottom;
651                 }
652             }
653             set
654             {
655                 string valueToString = "";
656                 switch (value)
657                 {
658                     case VerticalAlignment.Top:
659                     {
660                         valueToString = "TOP";
661                         break;
662                     }
663                     case VerticalAlignment.Center:
664                     {
665                         valueToString = "CENTER";
666                         break;
667                     }
668                     case VerticalAlignment.Bottom:
669                     {
670                         valueToString = "BOTTOM";
671                         break;
672                     }
673                     default:
674                     {
675                         valueToString = "BOTTOM";
676                         break;
677                     }
678                 }
679                 SetProperty(TextField.Property.VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
680             }
681         }
682
683         /// <summary>
684         /// The TextColor property.
685         /// </summary>
686         /// <since_tizen> 3 </since_tizen>
687         public Color TextColor
688         {
689             get
690             {
691                 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
692                 GetProperty(TextField.Property.TEXT_COLOR).Get(temp);
693                 return temp;
694             }
695             set
696             {
697                 SetProperty(TextField.Property.TEXT_COLOR, new Tizen.NUI.PropertyValue(value));
698             }
699         }
700
701         /// <summary>
702         /// The PlaceholderTextColor property.
703         /// </summary>
704         /// <since_tizen> 3 </since_tizen>
705         public Vector4 PlaceholderTextColor
706         {
707             get
708             {
709                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
710                 GetProperty(TextField.Property.PLACEHOLDER_TEXT_COLOR).Get(temp);
711                 return temp;
712             }
713             set
714             {
715                 SetProperty(TextField.Property.PLACEHOLDER_TEXT_COLOR, new Tizen.NUI.PropertyValue(value));
716             }
717         }
718
719         /// <summary>
720         /// The ShadowOffset property.
721         /// </summary>
722         /// <since_tizen> 3 </since_tizen>
723         public Vector2 ShadowOffset
724         {
725             get
726             {
727                 Vector2 temp = new Vector2(0.0f, 0.0f);
728                 GetProperty(TextField.Property.SHADOW_OFFSET).Get(temp);
729                 return temp;
730             }
731             set
732             {
733                 SetProperty(TextField.Property.SHADOW_OFFSET, new Tizen.NUI.PropertyValue(value));
734             }
735         }
736
737         /// <summary>
738         /// The ShadowColor property.
739         /// </summary>
740         /// <since_tizen> 3 </since_tizen>
741         public Vector4 ShadowColor
742         {
743             get
744             {
745                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
746                 GetProperty(TextField.Property.SHADOW_COLOR).Get(temp);
747                 return temp;
748             }
749             set
750             {
751                 SetProperty(TextField.Property.SHADOW_COLOR, new Tizen.NUI.PropertyValue(value));
752             }
753         }
754
755         /// <summary>
756         /// The PrimaryCursorColor property.
757         /// </summary>
758         /// <since_tizen> 3 </since_tizen>
759         public Vector4 PrimaryCursorColor
760         {
761             get
762             {
763                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
764                 GetProperty(TextField.Property.PRIMARY_CURSOR_COLOR).Get(temp);
765                 return temp;
766             }
767             set
768             {
769                 SetProperty(TextField.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
770             }
771         }
772
773         /// <summary>
774         /// The SecondaryCursorColor property.
775         /// </summary>
776         /// <since_tizen> 3 </since_tizen>
777         public Vector4 SecondaryCursorColor
778         {
779             get
780             {
781                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
782                 GetProperty(TextField.Property.SECONDARY_CURSOR_COLOR).Get(temp);
783                 return temp;
784             }
785             set
786             {
787                 SetProperty(TextField.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue(value));
788             }
789         }
790
791         /// <summary>
792         /// The EnableCursorBlink property.
793         /// </summary>
794         /// <since_tizen> 3 </since_tizen>
795         public bool EnableCursorBlink
796         {
797             get
798             {
799                 bool temp = false;
800                 GetProperty(TextField.Property.ENABLE_CURSOR_BLINK).Get(out temp);
801                 return temp;
802             }
803             set
804             {
805                 SetProperty(TextField.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue(value));
806             }
807         }
808
809         /// <summary>
810         /// The CursorBlinkInterval property.
811         /// </summary>
812         /// <since_tizen> 3 </since_tizen>
813         public float CursorBlinkInterval
814         {
815             get
816             {
817                 float temp = 0.0f;
818                 GetProperty(TextField.Property.CURSOR_BLINK_INTERVAL).Get(out temp);
819                 return temp;
820             }
821             set
822             {
823                 SetProperty(TextField.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue(value));
824             }
825         }
826
827         /// <summary>
828         /// The CursorBlinkDuration property.
829         /// </summary>
830         /// <since_tizen> 3 </since_tizen>
831         public float CursorBlinkDuration
832         {
833             get
834             {
835                 float temp = 0.0f;
836                 GetProperty(TextField.Property.CURSOR_BLINK_DURATION).Get(out temp);
837                 return temp;
838             }
839             set
840             {
841                 SetProperty(TextField.Property.CURSOR_BLINK_DURATION, new Tizen.NUI.PropertyValue(value));
842             }
843         }
844
845         /// <summary>
846         /// The CursorWidth property.
847         /// </summary>
848         /// <since_tizen> 3 </since_tizen>
849         public int CursorWidth
850         {
851             get
852             {
853                 int temp = 0;
854                 GetProperty(TextField.Property.CURSOR_WIDTH).Get(out temp);
855                 return temp;
856             }
857             set
858             {
859                 SetProperty(TextField.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue(value));
860             }
861         }
862
863         /// <summary>
864         /// The GrabHandleImage property.
865         /// </summary>
866         /// <since_tizen> 3 </since_tizen>
867         public string GrabHandleImage
868         {
869             get
870             {
871                 string temp;
872                 GetProperty(TextField.Property.GRAB_HANDLE_IMAGE).Get(out temp);
873                 return temp;
874             }
875             set
876             {
877                 SetProperty(TextField.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue(value));
878             }
879         }
880
881         /// <summary>
882         /// The GrabHandlePressedImage property.
883         /// </summary>
884         /// <since_tizen> 3 </since_tizen>
885         public string GrabHandlePressedImage
886         {
887             get
888             {
889                 string temp;
890                 GetProperty(TextField.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);
891                 return temp;
892             }
893             set
894             {
895                 SetProperty(TextField.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue(value));
896             }
897         }
898
899         /// <summary>
900         /// The ScrollThreshold property.
901         /// </summary>
902         /// <since_tizen> 3 </since_tizen>
903         public float ScrollThreshold
904         {
905             get
906             {
907                 float temp = 0.0f;
908                 GetProperty(TextField.Property.SCROLL_THRESHOLD).Get(out temp);
909                 return temp;
910             }
911             set
912             {
913                 SetProperty(TextField.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue(value));
914             }
915         }
916
917         /// <summary>
918         /// The ScrollSpeed property.
919         /// </summary>
920         /// <since_tizen> 3 </since_tizen>
921         public float ScrollSpeed
922         {
923             get
924             {
925                 float temp = 0.0f;
926                 GetProperty(TextField.Property.SCROLL_SPEED).Get(out temp);
927                 return temp;
928             }
929             set
930             {
931                 SetProperty(TextField.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue(value));
932             }
933         }
934
935         /// <summary>
936         /// The SelectionHandleImageLeft property.
937         /// </summary>
938         /// <since_tizen> 3 </since_tizen>
939         public PropertyMap SelectionHandleImageLeft
940         {
941             get
942             {
943                 PropertyMap temp = new PropertyMap();
944                 GetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_LEFT).Get(temp);
945                 return temp;
946             }
947             set
948             {
949                 SetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
950             }
951         }
952
953         /// <summary>
954         /// The SelectionHandleImageRight property.
955         /// </summary>
956         /// <since_tizen> 3 </since_tizen>
957         public PropertyMap SelectionHandleImageRight
958         {
959             get
960             {
961                 PropertyMap temp = new PropertyMap();
962                 GetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT).Get(temp);
963                 return temp;
964             }
965             set
966             {
967                 SetProperty(TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
968             }
969         }
970
971         /// <summary>
972         /// The SelectionHandlePressedImageLeft property.
973         /// </summary>
974         /// <since_tizen> 3 </since_tizen>
975         public PropertyMap SelectionHandlePressedImageLeft
976         {
977             get
978             {
979                 PropertyMap temp = new PropertyMap();
980                 GetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT).Get(temp);
981                 return temp;
982             }
983             set
984             {
985                 SetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
986             }
987         }
988
989         /// <summary>
990         /// The SelectionHandlePressedImageRight property.
991         /// </summary>
992         /// <since_tizen> 3 </since_tizen>
993         public PropertyMap SelectionHandlePressedImageRight
994         {
995             get
996             {
997                 PropertyMap temp = new PropertyMap();
998                 GetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT).Get(temp);
999                 return temp;
1000             }
1001             set
1002             {
1003                 SetProperty(TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
1004             }
1005         }
1006
1007         /// <summary>
1008         /// The SelectionHandleMarkerImageLeft property.
1009         /// </summary>
1010         /// <since_tizen> 3 </since_tizen>
1011         public PropertyMap SelectionHandleMarkerImageLeft
1012         {
1013             get
1014             {
1015                 PropertyMap temp = new PropertyMap();
1016                 GetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT).Get(temp);
1017                 return temp;
1018             }
1019             set
1020             {
1021                 SetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue(value));
1022             }
1023         }
1024
1025         /// <summary>
1026         /// The SelectionHandleMarkerImageRight property.
1027         /// </summary>
1028         /// <since_tizen> 3 </since_tizen>
1029         public PropertyMap SelectionHandleMarkerImageRight
1030         {
1031             get
1032             {
1033                 PropertyMap temp = new PropertyMap();
1034                 GetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT).Get(temp);
1035                 return temp;
1036             }
1037             set
1038             {
1039                 SetProperty(TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue(value));
1040             }
1041         }
1042
1043         /// <summary>
1044         /// The SelectionHighlightColor property.
1045         /// </summary>
1046         /// <since_tizen> 3 </since_tizen>
1047         public Vector4 SelectionHighlightColor
1048         {
1049             get
1050             {
1051                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1052                 GetProperty(TextField.Property.SELECTION_HIGHLIGHT_COLOR).Get(temp);
1053                 return temp;
1054             }
1055             set
1056             {
1057                 SetProperty(TextField.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue(value));
1058             }
1059         }
1060
1061         /// <summary>
1062         /// The DecorationBoundingBox property.
1063         /// </summary>
1064         /// <since_tizen> 3 </since_tizen>
1065         public Rectangle DecorationBoundingBox
1066         {
1067             get
1068             {
1069                 Rectangle temp = new Rectangle(0, 0, 0, 0);
1070                 GetProperty(TextField.Property.DECORATION_BOUNDING_BOX).Get(temp);
1071                 return temp;
1072             }
1073             set
1074             {
1075                 SetProperty(TextField.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue(value));
1076             }
1077         }
1078
1079         /// <summary>
1080         /// The InputMethodSettings property.
1081         /// </summary>
1082         /// <since_tizen> 3 </since_tizen>
1083         public PropertyMap InputMethodSettings
1084         {
1085             get
1086             {
1087                 PropertyMap temp = new PropertyMap();
1088                 GetProperty(TextField.Property.INPUT_METHOD_SETTINGS).Get(temp);
1089                 return temp;
1090             }
1091             set
1092             {
1093                 SetProperty(TextField.Property.INPUT_METHOD_SETTINGS, new Tizen.NUI.PropertyValue(value));
1094             }
1095         }
1096
1097         /// <summary>
1098         /// The InputColor property.
1099         /// </summary>
1100         /// <since_tizen> 3 </since_tizen>
1101         public Vector4 InputColor
1102         {
1103             get
1104             {
1105                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1106                 GetProperty(TextField.Property.INPUT_COLOR).Get(temp);
1107                 return temp;
1108             }
1109             set
1110             {
1111                 SetProperty(TextField.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue(value));
1112             }
1113         }
1114
1115         /// <summary>
1116         /// The EnableMarkup property.
1117         /// </summary>
1118         /// <since_tizen> 3 </since_tizen>
1119         public bool EnableMarkup
1120         {
1121             get
1122             {
1123                 bool temp = false;
1124                 GetProperty(TextField.Property.ENABLE_MARKUP).Get(out temp);
1125                 return temp;
1126             }
1127             set
1128             {
1129                 SetProperty(TextField.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue(value));
1130             }
1131         }
1132
1133         /// <summary>
1134         /// The InputFontFamily property.
1135         /// </summary>
1136         /// <since_tizen> 3 </since_tizen>
1137         public string InputFontFamily
1138         {
1139             get
1140             {
1141                 string temp;
1142                 GetProperty(TextField.Property.INPUT_FONT_FAMILY).Get(out temp);
1143                 return temp;
1144             }
1145             set
1146             {
1147                 SetProperty(TextField.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue(value));
1148             }
1149         }
1150
1151         /// <summary>
1152         /// The InputFontStyle property.
1153         /// </summary>
1154         /// <since_tizen> 3 </since_tizen>
1155         public PropertyMap InputFontStyle
1156         {
1157             get
1158             {
1159                 PropertyMap temp = new PropertyMap();
1160                 GetProperty(TextField.Property.INPUT_FONT_STYLE).Get(temp);
1161                 return temp;
1162             }
1163             set
1164             {
1165                 SetProperty(TextField.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue(value));
1166             }
1167         }
1168
1169         /// <summary>
1170         /// The InputPointSize property.
1171         /// </summary>
1172         /// <since_tizen> 3 </since_tizen>
1173         public float InputPointSize
1174         {
1175             get
1176             {
1177                 float temp = 0.0f;
1178                 GetProperty(TextField.Property.INPUT_POINT_SIZE).Get(out temp);
1179                 return temp;
1180             }
1181             set
1182             {
1183                 SetProperty(TextField.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue(value));
1184             }
1185         }
1186
1187         /// <summary>
1188         /// The Underline property.
1189         /// </summary>
1190         /// <since_tizen> 3 </since_tizen>
1191         public PropertyMap Underline
1192         {
1193             get
1194             {
1195                 PropertyMap temp = new PropertyMap();
1196                 GetProperty(TextField.Property.UNDERLINE).Get(temp);
1197                 return temp;
1198             }
1199             set
1200             {
1201                 SetProperty(TextField.Property.UNDERLINE, new Tizen.NUI.PropertyValue(value));
1202             }
1203         }
1204
1205         /// <summary>
1206         /// The InputUnderline property.
1207         /// </summary>
1208         /// <since_tizen> 3 </since_tizen>
1209         public string InputUnderline
1210         {
1211             get
1212             {
1213                 string temp;
1214                 GetProperty(TextField.Property.INPUT_UNDERLINE).Get(out temp);
1215                 return temp;
1216             }
1217             set
1218             {
1219                 SetProperty(TextField.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue(value));
1220             }
1221         }
1222
1223         /// <summary>
1224         /// The Shadow property.
1225         /// </summary>
1226         /// <since_tizen> 3 </since_tizen>
1227         public PropertyMap Shadow
1228         {
1229             get
1230             {
1231                 PropertyMap temp = new PropertyMap();
1232                 GetProperty(TextField.Property.SHADOW).Get(temp);
1233                 return temp;
1234             }
1235             set
1236             {
1237                 SetProperty(TextField.Property.SHADOW, new Tizen.NUI.PropertyValue(value));
1238             }
1239         }
1240
1241         /// <summary>
1242         /// The InputShadow property.
1243         /// </summary>
1244         /// <since_tizen> 3 </since_tizen>
1245         public string InputShadow
1246         {
1247             get
1248             {
1249                 string temp;
1250                 GetProperty(TextField.Property.INPUT_SHADOW).Get(out temp);
1251                 return temp;
1252             }
1253             set
1254             {
1255                 SetProperty(TextField.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue(value));
1256             }
1257         }
1258
1259         /// <summary>
1260         /// The Emboss property.
1261         /// </summary>
1262         /// <since_tizen> 3 </since_tizen>
1263         public string Emboss
1264         {
1265             get
1266             {
1267                 string temp;
1268                 GetProperty(TextField.Property.EMBOSS).Get(out temp);
1269                 return temp;
1270             }
1271             set
1272             {
1273                 SetProperty(TextField.Property.EMBOSS, new Tizen.NUI.PropertyValue(value));
1274             }
1275         }
1276
1277         /// <summary>
1278         /// The InputEmboss property.
1279         /// </summary>
1280         /// <since_tizen> 3 </since_tizen>
1281         public string InputEmboss
1282         {
1283             get
1284             {
1285                 string temp;
1286                 GetProperty(TextField.Property.INPUT_EMBOSS).Get(out temp);
1287                 return temp;
1288             }
1289             set
1290             {
1291                 SetProperty(TextField.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue(value));
1292             }
1293         }
1294
1295         /// <summary>
1296         /// The Outline property.
1297         /// </summary>
1298         /// <since_tizen> 3 </since_tizen>
1299         public PropertyMap Outline
1300         {
1301             get
1302             {
1303                 PropertyMap temp = new PropertyMap();
1304                 GetProperty(TextField.Property.OUTLINE).Get(temp);
1305                 return temp;
1306             }
1307             set
1308             {
1309                 SetProperty(TextField.Property.OUTLINE, new Tizen.NUI.PropertyValue(value));
1310             }
1311         }
1312
1313         /// <summary>
1314         /// The InputOutline property.
1315         /// </summary>
1316         /// <since_tizen> 3 </since_tizen>
1317         public string InputOutline
1318         {
1319             get
1320             {
1321                 string temp;
1322                 GetProperty(TextField.Property.INPUT_OUTLINE).Get(out temp);
1323                 return temp;
1324             }
1325             set
1326             {
1327                 SetProperty(TextField.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue(value));
1328             }
1329         }
1330
1331         /// <summary>
1332         /// The HiddenInputSettings property.
1333         /// </summary>
1334         /// <since_tizen> 3 </since_tizen>
1335         public Tizen.NUI.PropertyMap HiddenInputSettings
1336         {
1337             get
1338             {
1339                 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1340                 GetProperty(TextField.Property.HIDDEN_INPUT_SETTINGS).Get(temp);
1341                 return temp;
1342             }
1343             set
1344             {
1345                 SetProperty(TextField.Property.HIDDEN_INPUT_SETTINGS, new Tizen.NUI.PropertyValue(value));
1346             }
1347         }
1348
1349         /// <summary>
1350         /// The PixelSize property.
1351         /// </summary>
1352         /// <since_tizen> 3 </since_tizen>
1353         public float PixelSize
1354         {
1355             get
1356             {
1357                 float temp = 0.0f;
1358                 GetProperty(TextField.Property.PIXEL_SIZE).Get(out temp);
1359                 return temp;
1360             }
1361             set
1362             {
1363                 SetProperty(TextField.Property.PIXEL_SIZE, new Tizen.NUI.PropertyValue(value));
1364             }
1365         }
1366
1367         /// <summary>
1368         /// The Enable selection property.
1369         /// </summary>
1370         /// <since_tizen> 3 </since_tizen>
1371         public bool EnableSelection
1372         {
1373             get
1374             {
1375                 bool temp = false;
1376                 GetProperty(TextField.Property.ENABLE_SELECTION).Get(out temp);
1377                 return temp;
1378             }
1379             set
1380             {
1381                 SetProperty(TextField.Property.ENABLE_SELECTION, new Tizen.NUI.PropertyValue(value));
1382             }
1383         }
1384
1385         /// <summary>
1386         /// The Placeholder property.
1387         /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
1388         /// </summary>
1389         /// <example>
1390         /// The following example demonstrates how to set the Placeholder property.
1391         /// <code>
1392         /// PropertyMap propertyMap = new PropertyMap();
1393         /// propertyMap.Add("text", new PropertyValue("Setting Placeholder Text"));
1394         /// propertyMap.Add("textFocused", new PropertyValue("Setting Placeholder Text Focused"));
1395         /// propertyMap.Add("color", new PropertyValue(Color.Red));
1396         /// propertyMap.Add("fontFamily", new PropertyValue("Arial"));
1397         /// propertyMap.Add("pointSize", new PropertyValue(12.0f));
1398         ///
1399         /// PropertyMap fontStyleMap = new PropertyMap();
1400         /// fontStyleMap.Add("weight", new PropertyValue("bold"));
1401         /// fontStyleMap.Add("width", new PropertyValue("condensed"));
1402         /// fontStyleMap.Add("slant", new PropertyValue("italic"));
1403         /// propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap));
1404         ///
1405         /// TextField field = new TextField();
1406         /// field.Placeholder = propertyMap;
1407         /// </code>
1408         /// </example>
1409         /// <since_tizen> 3 </since_tizen>
1410         public Tizen.NUI.PropertyMap Placeholder
1411         {
1412             get
1413             {
1414                 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1415                 GetProperty(TextField.Property.PLACEHOLDER).Get(temp);
1416                 return temp;
1417             }
1418             set
1419             {
1420                 SetProperty(TextField.Property.PLACEHOLDER, new Tizen.NUI.PropertyValue(value));
1421             }
1422         }
1423
1424         /// <summary>
1425         /// The Ellipsis property.<br />
1426         /// Enable or disable the ellipsis.<br />
1427         /// Placeholder PropertyMap is used to add ellipsis to placeholder text.
1428         /// </summary>
1429         /// <since_tizen> 4 </since_tizen>
1430         public bool Ellipsis
1431         {
1432             get
1433             {
1434                 bool temp = false;
1435                 GetProperty(TextField.Property.ELLIPSIS).Get(out temp);
1436                 return temp;
1437             }
1438             set
1439             {
1440                 SetProperty(TextField.Property.ELLIPSIS, new Tizen.NUI.PropertyValue(value));
1441             }
1442         }
1443
1444
1445     }
1446
1447 }