Fix controls created by xaml issues (#341)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / TextEditor.cs
1 /*
2  * Copyright(c) 2018 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
18 extern alias TizenSystemSettings;
19 using TizenSystemSettings.Tizen.System;
20
21 using System;
22 using System.Runtime.InteropServices;
23 using System.Globalization;
24 using System.ComponentModel;
25 using Tizen.NUI.Binding;
26
27 namespace Tizen.NUI.BaseComponents
28 {
29     /// <summary>
30     /// A control which provides a multi-line editable text editor.
31     /// </summary>
32     /// <since_tizen> 3 </since_tizen>
33     [ContentProperty("Text")]
34     public class TextEditor : View
35     {
36         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
37         [EditorBrowsable(EditorBrowsableState.Never)]
38         public static readonly BindableProperty TextProperty = BindableProperty.Create("Text", typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
39         {
40             var textEditor = (TextEditor)bindable;
41             if (newValue != null)
42             {
43                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.TEXT, new Tizen.NUI.PropertyValue((string)newValue));
44             }
45         },
46         defaultValueCreator:(bindable) =>
47         {
48             var textEditor = (TextEditor)bindable;
49             string temp;
50             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.TEXT).Get(out temp);
51             return temp;
52         });
53         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
54         [EditorBrowsable(EditorBrowsableState.Never)]
55         public static readonly BindableProperty TextColorProperty = BindableProperty.Create("TextColor", typeof(Vector4), typeof(TextEditor), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
56         {
57             var textEditor = (TextEditor)bindable;
58             if (newValue != null)
59             {
60                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.TEXT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
61             }
62         },
63         defaultValueCreator:(bindable) =>
64         {
65             var textEditor = (TextEditor)bindable;
66             Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
67             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.TEXT_COLOR).Get(temp);
68             return temp;
69         });
70         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
71         [EditorBrowsable(EditorBrowsableState.Never)]
72         public static readonly BindableProperty FontFamilyProperty = BindableProperty.Create("FontFamily", typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
73         {
74             var textEditor = (TextEditor)bindable;
75             if (newValue != null)
76             {
77                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.FONT_FAMILY, new Tizen.NUI.PropertyValue((string)newValue));
78             }
79         },
80         defaultValueCreator:(bindable) =>
81         {
82             var textEditor = (TextEditor)bindable;
83             string temp;
84             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.FONT_FAMILY).Get(out temp);
85             return temp;
86         });
87         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
88         [EditorBrowsable(EditorBrowsableState.Never)]
89         public static readonly BindableProperty FontStyleProperty = BindableProperty.Create("FontStyle", typeof(PropertyMap), typeof(TextEditor), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
90         {
91             var textEditor = (TextEditor)bindable;
92             if (newValue != null)
93             {
94                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.FONT_STYLE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
95             }
96         },
97         defaultValueCreator:(bindable) =>
98         {
99             var textEditor = (TextEditor)bindable;
100             PropertyMap temp = new PropertyMap();
101             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.FONT_STYLE).Get(temp);
102             return temp;
103         });
104         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
105         [EditorBrowsable(EditorBrowsableState.Never)]
106         public static readonly BindableProperty PointSizeProperty = BindableProperty.Create("PointSize", typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
107         {
108             var textEditor = (TextEditor)bindable;
109             if (newValue != null)
110             {
111                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.POINT_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
112             }
113         },
114         defaultValueCreator:(bindable) =>
115         {
116             var textEditor = (TextEditor)bindable;
117             float temp = 0.0f;
118             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.POINT_SIZE).Get(out temp);
119             return temp;
120         });
121         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
122         [EditorBrowsable(EditorBrowsableState.Never)]
123         public static readonly BindableProperty HorizontalAlignmentProperty = BindableProperty.Create("HorizontalAlignment", typeof(HorizontalAlignment), typeof(TextEditor), HorizontalAlignment.Begin, propertyChanged: (bindable, oldValue, newValue) =>
124         {
125             var textEditor = (TextEditor)bindable;
126             if (newValue != null)
127             {
128                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue((int)newValue));
129             }
130         },
131         defaultValueCreator:(bindable) =>
132         {
133             var textEditor = (TextEditor)bindable;
134             string temp;
135             if (Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.HORIZONTAL_ALIGNMENT).Get(out temp) == false)
136             {
137                 NUILog.Error("HorizontalAlignment get error!");
138             }
139
140             switch (temp)
141             {
142                 case "BEGIN":
143                     return HorizontalAlignment.Begin;
144                 case "CENTER":
145                     return HorizontalAlignment.Center;
146                 case "END":
147                     return HorizontalAlignment.End;
148                 default:
149                     return HorizontalAlignment.Begin;
150             }
151         });
152         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
153         [EditorBrowsable(EditorBrowsableState.Never)]
154         public static readonly BindableProperty ScrollThresholdProperty = BindableProperty.Create("ScrollThreshold", typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
155         {
156             var textEditor = (TextEditor)bindable;
157             if (newValue != null)
158             {
159                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue((float)newValue));
160             }
161         },
162         defaultValueCreator:(bindable) =>
163         {
164             var textEditor = (TextEditor)bindable;
165             float temp = 0.0f;
166             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_THRESHOLD).Get(out temp);
167             return temp;
168         });
169         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
170         [EditorBrowsable(EditorBrowsableState.Never)]
171         public static readonly BindableProperty ScrollSpeedProperty = BindableProperty.Create("ScrollSpeed", typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
172         {
173             var textEditor = (TextEditor)bindable;
174             if (newValue != null)
175             {
176                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue((float)newValue));
177             }
178         },
179         defaultValueCreator:(bindable) =>
180         {
181             var textEditor = (TextEditor)bindable;
182             float temp = 0.0f;
183             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_SPEED).Get(out temp);
184             return temp;
185         });
186         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
187         [EditorBrowsable(EditorBrowsableState.Never)]
188         public static readonly BindableProperty PrimaryCursorColorProperty = BindableProperty.Create("PrimaryCursorColor", typeof(Vector4), typeof(TextEditor), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
189         {
190             var textEditor = (TextEditor)bindable;
191             if (newValue != null)
192             {
193                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
194             }
195         },
196         defaultValueCreator:(bindable) =>
197         {
198             var textEditor = (TextEditor)bindable;
199             Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
200             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.PRIMARY_CURSOR_COLOR).Get(temp);
201             return temp;
202         });
203         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
204         [EditorBrowsable(EditorBrowsableState.Never)]
205         public static readonly BindableProperty SecondaryCursorColorProperty = BindableProperty.Create("SecondaryCursorColor", typeof(Vector4), typeof(TextEditor), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
206         {
207             var textEditor = (TextEditor)bindable;
208             if (newValue != null)
209             {
210                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
211             }
212         },
213         defaultValueCreator:(bindable) =>
214         {
215             var textEditor = (TextEditor)bindable;
216             Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
217             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SECONDARY_CURSOR_COLOR).Get(temp);
218             return temp;
219         });
220         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
221         [EditorBrowsable(EditorBrowsableState.Never)]
222         public static readonly BindableProperty EnableCursorBlinkProperty = BindableProperty.Create("EnableCursorBlink", typeof(bool), typeof(TextEditor), false, propertyChanged: (bindable, oldValue, newValue) =>
223         {
224             var textEditor = (TextEditor)bindable;
225             if (newValue != null)
226             {
227                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue((bool)newValue));
228             }
229         },
230         defaultValueCreator:(bindable) =>
231         {
232             var textEditor = (TextEditor)bindable;
233             bool temp = false;
234             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_CURSOR_BLINK).Get(out temp);
235             return temp;
236         });
237         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
238         [EditorBrowsable(EditorBrowsableState.Never)]
239         public static readonly BindableProperty CursorBlinkIntervalProperty = BindableProperty.Create("CursorBlinkInterval", typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
240         {
241             var textEditor = (TextEditor)bindable;
242             if (newValue != null)
243             {
244                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue((float)newValue));
245             }
246         },
247         defaultValueCreator:(bindable) =>
248         {
249             var textEditor = (TextEditor)bindable;
250             float temp = 0.0f;
251             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.CURSOR_BLINK_INTERVAL).Get(out temp);
252             return temp;
253         });
254         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
255         [EditorBrowsable(EditorBrowsableState.Never)]
256         public static readonly BindableProperty CursorBlinkDurationProperty = BindableProperty.Create("CursorBlinkDuration", typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
257         {
258             var textEditor = (TextEditor)bindable;
259             if (newValue != null)
260             {
261                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.CURSOR_BLINK_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
262             }
263         },
264         defaultValueCreator:(bindable) =>
265         {
266             var textEditor = (TextEditor)bindable;
267             float temp = 0.0f;
268             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.CURSOR_BLINK_DURATION).Get(out temp);
269             return temp;
270         });
271         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
272         [EditorBrowsable(EditorBrowsableState.Never)]
273         public static readonly BindableProperty CursorWidthProperty = BindableProperty.Create("CursorWidth", typeof(int), typeof(TextEditor), default(int), propertyChanged: (bindable, oldValue, newValue) =>
274         {
275             var textEditor = (TextEditor)bindable;
276             if (newValue != null)
277             {
278                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue((int)newValue));
279             }
280         },
281         defaultValueCreator:(bindable) =>
282         {
283             var textEditor = (TextEditor)bindable;
284             int temp = 0;
285             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.CURSOR_WIDTH).Get(out temp);
286             return temp;
287         });
288         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
289         [EditorBrowsable(EditorBrowsableState.Never)]
290         public static readonly BindableProperty GrabHandleImageProperty = BindableProperty.Create("GrabHandleImage", typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
291         {
292             var textEditor = (TextEditor)bindable;
293             if (newValue != null)
294             {
295                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
296             }
297         },
298         defaultValueCreator:(bindable) =>
299         {
300             var textEditor = (TextEditor)bindable;
301             string temp;
302             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.GRAB_HANDLE_IMAGE).Get(out temp);
303             return temp;
304         });
305         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
306         [EditorBrowsable(EditorBrowsableState.Never)]
307         public static readonly BindableProperty GrabHandlePressedImageProperty = BindableProperty.Create("GrabHandlePressedImage", typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
308         {
309             var textEditor = (TextEditor)bindable;
310             if (newValue != null)
311             {
312                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
313             }
314         },
315         defaultValueCreator:(bindable) =>
316         {
317             var textEditor = (TextEditor)bindable;
318             string temp;
319             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);
320             return temp;
321         });
322         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
323         [EditorBrowsable(EditorBrowsableState.Never)]
324         public static readonly BindableProperty SelectionHandleImageLeftProperty = BindableProperty.Create("SelectionHandleImageLeft", typeof(PropertyMap), typeof(TextEditor), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
325         {
326             var textEditor = (TextEditor)bindable;
327             if (newValue != null)
328             {
329                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
330             }
331         },
332         defaultValueCreator:(bindable) =>
333         {
334             var textEditor = (TextEditor)bindable;
335             PropertyMap temp = new PropertyMap();
336             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT).Get(temp);
337             return temp;
338         });
339         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
340         [EditorBrowsable(EditorBrowsableState.Never)]
341         public static readonly BindableProperty SelectionHandleImageRightProperty = BindableProperty.Create("SelectionHandleImageRight", typeof(PropertyMap), typeof(TextEditor), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
342         {
343             var textEditor = (TextEditor)bindable;
344             if (newValue != null)
345             {
346                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
347             }
348         },
349         defaultValueCreator:(bindable) =>
350         {
351             var textEditor = (TextEditor)bindable;
352             PropertyMap temp = new PropertyMap();
353             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT).Get(temp);
354             return temp;
355         });
356         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
357         [EditorBrowsable(EditorBrowsableState.Never)]
358         public static readonly BindableProperty SelectionHandlePressedImageLeftProperty = BindableProperty.Create("SelectionHandlePressedImageLeft", typeof(PropertyMap), typeof(TextEditor), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
359         {
360             var textEditor = (TextEditor)bindable;
361             if (newValue != null)
362             {
363                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
364             }
365         },
366         defaultValueCreator:(bindable) =>
367         {
368             var textEditor = (TextEditor)bindable;
369             PropertyMap temp = new PropertyMap();
370             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT).Get(temp);
371             return temp;
372         });
373         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
374         [EditorBrowsable(EditorBrowsableState.Never)]
375         public static readonly BindableProperty SelectionHandlePressedImageRightProperty = BindableProperty.Create("SelectionHandlePressedImageRight", typeof(PropertyMap), typeof(TextEditor), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
376         {
377             var textEditor = (TextEditor)bindable;
378             if (newValue != null)
379             {
380                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
381             }
382         },
383         defaultValueCreator:(bindable) =>
384         {
385             var textEditor = (TextEditor)bindable;
386             PropertyMap temp = new PropertyMap();
387             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT).Get(temp);
388             return temp;
389         });
390         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
391         [EditorBrowsable(EditorBrowsableState.Never)]
392         public static readonly BindableProperty SelectionHandleMarkerImageLeftProperty = BindableProperty.Create("SelectionHandleMarkerImageLeft", typeof(PropertyMap), typeof(TextEditor), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
393         {
394             var textEditor = (TextEditor)bindable;
395             if (newValue != null)
396             {
397                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
398             }
399         },
400         defaultValueCreator:(bindable) =>
401         {
402             var textEditor = (TextEditor)bindable;
403             PropertyMap temp = new PropertyMap();
404             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT).Get(temp);
405             return temp;
406         });
407         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
408         [EditorBrowsable(EditorBrowsableState.Never)]
409         public static readonly BindableProperty SelectionHandleMarkerImageRightProperty = BindableProperty.Create("SelectionHandleMarkerImageRight", typeof(PropertyMap), typeof(TextEditor), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
410         {
411             var textEditor = (TextEditor)bindable;
412             if (newValue != null)
413             {
414                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
415             }
416         },
417         defaultValueCreator:(bindable) =>
418         {
419             var textEditor = (TextEditor)bindable;
420             PropertyMap temp = new PropertyMap();
421             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT).Get(temp);
422             return temp;
423         });
424         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
425         [EditorBrowsable(EditorBrowsableState.Never)]
426         public static readonly BindableProperty SelectionHighlightColorProperty = BindableProperty.Create("SelectionHighlightColor", typeof(Vector4), typeof(TextEditor), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
427         {
428             var textEditor = (TextEditor)bindable;
429             if (newValue != null)
430             {
431                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
432             }
433         },
434         defaultValueCreator:(bindable) =>
435         {
436             var textEditor = (TextEditor)bindable;
437             Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
438             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HIGHLIGHT_COLOR).Get(temp);
439             return temp;
440         });
441         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
442         [EditorBrowsable(EditorBrowsableState.Never)]
443         public static readonly BindableProperty DecorationBoundingBoxProperty = BindableProperty.Create("DecorationBoundingBox", typeof(Rectangle), typeof(TextEditor), new Rectangle(0,0,0,0), propertyChanged: (bindable, oldValue, newValue) =>
444         {
445             var textEditor = (TextEditor)bindable;
446             if (newValue != null)
447             {
448                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue((Rectangle)newValue));
449             }
450         },
451         defaultValueCreator:(bindable) =>
452         {
453             var textEditor = (TextEditor)bindable;
454             Rectangle temp = new Rectangle(0, 0, 0, 0);
455             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.DECORATION_BOUNDING_BOX).Get(temp);
456             return temp;
457         });
458         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
459         [EditorBrowsable(EditorBrowsableState.Never)]
460         public static readonly BindableProperty EnableMarkupProperty = BindableProperty.Create("EnableMarkup", typeof(bool), typeof(TextEditor), false, propertyChanged: (bindable, oldValue, newValue) =>
461         {
462             var textEditor = (TextEditor)bindable;
463             if (newValue != null)
464             {
465                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue((bool)newValue));
466             }
467         },
468         defaultValueCreator:(bindable) =>
469         {
470             var textEditor = (TextEditor)bindable;
471             bool temp = false;
472             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_MARKUP).Get(out temp);
473             return temp;
474         });
475         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
476         [EditorBrowsable(EditorBrowsableState.Never)]
477         public static readonly BindableProperty InputColorProperty = BindableProperty.Create("InputColor", typeof(Vector4), typeof(TextEditor), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
478         {
479             var textEditor = (TextEditor)bindable;
480             if (newValue != null)
481             {
482                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
483             }
484         },
485         defaultValueCreator:(bindable) =>
486         {
487             var textEditor = (TextEditor)bindable;
488             Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
489             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_COLOR).Get(temp);
490             return temp;
491         });
492         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
493         [EditorBrowsable(EditorBrowsableState.Never)]
494         public static readonly BindableProperty InputFontFamilyProperty = BindableProperty.Create("InputFontFamily", typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
495         {
496             var textEditor = (TextEditor)bindable;
497             if (newValue != null)
498             {
499                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue((string)newValue));
500             }
501         },
502         defaultValueCreator:(bindable) =>
503         {
504             var textEditor = (TextEditor)bindable;
505             string temp;
506             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_FONT_FAMILY).Get(out temp);
507             return temp;
508         });
509         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
510         [EditorBrowsable(EditorBrowsableState.Never)]
511         public static readonly BindableProperty InputFontStyleProperty = BindableProperty.Create("InputFontStyle", typeof(PropertyMap), typeof(TextEditor), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
512         {
513             var textEditor = (TextEditor)bindable;
514             if (newValue != null)
515             {
516                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
517             }
518         },
519         defaultValueCreator:(bindable) =>
520         {
521             var textEditor = (TextEditor)bindable;
522             PropertyMap temp = new PropertyMap();
523             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_FONT_STYLE).Get(temp);
524             return temp;
525         });
526         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
527         [EditorBrowsable(EditorBrowsableState.Never)]
528         public static readonly BindableProperty InputPointSizeProperty = BindableProperty.Create("InputPointSize", typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
529         {
530             var textEditor = (TextEditor)bindable;
531             if (newValue != null)
532             {
533                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
534             }
535         },
536         defaultValueCreator:(bindable) =>
537         {
538             var textEditor = (TextEditor)bindable;
539             float temp = 0.0f;
540             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_POINT_SIZE).Get(out temp);
541             return temp;
542         });
543         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
544         [EditorBrowsable(EditorBrowsableState.Never)]
545         public static readonly BindableProperty LineSpacingProperty = BindableProperty.Create("LineSpacing", typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
546         {
547             var textEditor = (TextEditor)bindable;
548             if (newValue != null)
549             {
550                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.LINE_SPACING, new Tizen.NUI.PropertyValue((float)newValue));
551             }
552         },
553         defaultValueCreator:(bindable) =>
554         {
555             var textEditor = (TextEditor)bindable;
556             float temp = 0.0f;
557             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.LINE_SPACING).Get(out temp);
558             return temp;
559         });
560         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
561         [EditorBrowsable(EditorBrowsableState.Never)]
562         public static readonly BindableProperty InputLineSpacingProperty = BindableProperty.Create("InputLineSpacing", typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
563         {
564             var textEditor = (TextEditor)bindable;
565             if (newValue != null)
566             {
567                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_LINE_SPACING, new Tizen.NUI.PropertyValue((float)newValue));
568             }
569         },
570         defaultValueCreator:(bindable) =>
571         {
572             var textEditor = (TextEditor)bindable;
573             float temp = 0.0f;
574             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_LINE_SPACING).Get(out temp);
575             return temp;
576         });
577         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
578         [EditorBrowsable(EditorBrowsableState.Never)]
579         public static readonly BindableProperty UnderlineProperty = BindableProperty.Create("Underline", typeof(PropertyMap), typeof(TextEditor), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
580         {
581             var textEditor = (TextEditor)bindable;
582             if (newValue != null)
583             {
584                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.UNDERLINE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
585             }
586         },
587         defaultValueCreator:(bindable) =>
588         {
589             var textEditor = (TextEditor)bindable;
590             PropertyMap temp = new PropertyMap();
591             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.UNDERLINE).Get(temp);
592             return temp;
593         });
594         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
595         [EditorBrowsable(EditorBrowsableState.Never)]
596         public static readonly BindableProperty InputUnderlineProperty = BindableProperty.Create("InputUnderline", typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
597         {
598             var textEditor = (TextEditor)bindable;
599             if (newValue != null)
600             {
601                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue((string)newValue));
602             }
603         },
604         defaultValueCreator:(bindable) =>
605         {
606             var textEditor = (TextEditor)bindable;
607             string temp;
608             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_UNDERLINE).Get(out temp);
609             return temp;
610         });
611         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
612         [EditorBrowsable(EditorBrowsableState.Never)]
613         public static readonly BindableProperty ShadowProperty = BindableProperty.Create("Shadow", typeof(PropertyMap), typeof(TextEditor), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
614         {
615             var textEditor = (TextEditor)bindable;
616             if (newValue != null)
617             {
618                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SHADOW, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
619             }
620         },
621         defaultValueCreator:(bindable) =>
622         {
623             var textEditor = (TextEditor)bindable;
624             PropertyMap temp = new PropertyMap();
625             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SHADOW).Get(temp);
626             return temp;
627         });
628         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
629         [EditorBrowsable(EditorBrowsableState.Never)]
630         public static readonly BindableProperty InputShadowProperty = BindableProperty.Create("InputShadow", typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
631         {
632             var textEditor = (TextEditor)bindable;
633             if (newValue != null)
634             {
635                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue((string)newValue));
636             }
637         },
638         defaultValueCreator:(bindable) =>
639         {
640             var textEditor = (TextEditor)bindable;
641             string temp;
642             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_SHADOW).Get(out temp);
643             return temp;
644         });
645         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
646         [EditorBrowsable(EditorBrowsableState.Never)]
647         public static readonly BindableProperty EmbossProperty = BindableProperty.Create("Emboss", typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
648         {
649             var textEditor = (TextEditor)bindable;
650             if (newValue != null)
651             {
652                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.EMBOSS, new Tizen.NUI.PropertyValue((string)newValue));
653             }
654         },
655         defaultValueCreator:(bindable) =>
656         {
657             var textEditor = (TextEditor)bindable;
658             string temp;
659             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.EMBOSS).Get(out temp);
660             return temp;
661         });
662         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
663         [EditorBrowsable(EditorBrowsableState.Never)]
664         public static readonly BindableProperty InputEmbossProperty = BindableProperty.Create("InputEmboss", typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
665         {
666             var textEditor = (TextEditor)bindable;
667             if (newValue != null)
668             {
669                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue((string)newValue));
670             }
671         },
672         defaultValueCreator:(bindable) =>
673         {
674             var textEditor = (TextEditor)bindable;
675             string temp;
676             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_EMBOSS).Get(out temp);
677             return temp;
678         });
679         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
680         [EditorBrowsable(EditorBrowsableState.Never)]
681         public static readonly BindableProperty OutlineProperty = BindableProperty.Create("Outline", typeof(PropertyMap), typeof(TextEditor), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
682         {
683             var textEditor = (TextEditor)bindable;
684             if (newValue != null)
685             {
686                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.OUTLINE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
687             }
688         },
689         defaultValueCreator:(bindable) =>
690         {
691             var textEditor = (TextEditor)bindable;
692             PropertyMap temp = new PropertyMap();
693             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.OUTLINE).Get(temp);
694             return temp;
695         });
696         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
697         [EditorBrowsable(EditorBrowsableState.Never)]
698         public static readonly BindableProperty InputOutlineProperty = BindableProperty.Create("InputOutline", typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
699         {
700             var textEditor = (TextEditor)bindable;
701             if (newValue != null)
702             {
703                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue((string)newValue));
704             }
705         },
706         defaultValueCreator:(bindable) =>
707         {
708             var textEditor = (TextEditor)bindable;
709             string temp;
710             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_OUTLINE).Get(out temp);
711             return temp;
712         });
713         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
714         [EditorBrowsable(EditorBrowsableState.Never)]
715         public static readonly BindableProperty SmoothScrollProperty = BindableProperty.Create("SmoothScroll", typeof(bool), typeof(TextEditor), false, propertyChanged: (bindable, oldValue, newValue) =>
716         {
717             var textEditor = (TextEditor)bindable;
718             if (newValue != null)
719             {
720                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SMOOTH_SCROLL, new Tizen.NUI.PropertyValue((bool)newValue));
721             }
722         },
723         defaultValueCreator:(bindable) =>
724         {
725             var textEditor = (TextEditor)bindable;
726             bool temp = false;
727             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SMOOTH_SCROLL).Get(out temp);
728             return temp;
729         });
730         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
731         [EditorBrowsable(EditorBrowsableState.Never)]
732         public static readonly BindableProperty SmoothScrollDurationProperty = BindableProperty.Create("SmoothScrollDuration", typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
733         {
734             var textEditor = (TextEditor)bindable;
735             if (newValue != null)
736             {
737                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SMOOTH_SCROLL_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
738             }
739         },
740         defaultValueCreator:(bindable) =>
741         {
742             var textEditor = (TextEditor)bindable;
743             float temp = 0.0f;
744             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SMOOTH_SCROLL_DURATION).Get(out temp);
745             return temp;
746         });
747         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
748         [EditorBrowsable(EditorBrowsableState.Never)]
749         public static readonly BindableProperty EnableScrollBarProperty = BindableProperty.Create("EnableScrollBar", typeof(bool), typeof(TextEditor), false, propertyChanged: (bindable, oldValue, newValue) =>
750         {
751             var textEditor = (TextEditor)bindable;
752             if (newValue != null)
753             {
754                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_SCROLL_BAR, new Tizen.NUI.PropertyValue((bool)newValue));
755             }
756         },
757         defaultValueCreator:(bindable) =>
758         {
759             var textEditor = (TextEditor)bindable;
760             bool temp = false;
761             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_SCROLL_BAR).Get(out temp);
762             return temp;
763         });
764         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
765         [EditorBrowsable(EditorBrowsableState.Never)]
766         public static readonly BindableProperty ScrollBarShowDurationProperty = BindableProperty.Create("ScrollBarShowDuration", typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
767         {
768             var textEditor = (TextEditor)bindable;
769             if (newValue != null)
770             {
771                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_BAR_SHOW_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
772             }
773         },
774         defaultValueCreator:(bindable) =>
775         {
776             var textEditor = (TextEditor)bindable;
777             float temp = 0.0f;
778             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_BAR_SHOW_DURATION).Get(out temp);
779             return temp;
780         });
781         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
782         [EditorBrowsable(EditorBrowsableState.Never)]
783         public static readonly BindableProperty ScrollBarFadeDurationProperty = BindableProperty.Create("ScrollBarFadeDuration", typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
784         {
785             var textEditor = (TextEditor)bindable;
786             if (newValue != null)
787             {
788                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_BAR_FADE_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
789             }
790         },
791         defaultValueCreator:(bindable) =>
792         {
793             var textEditor = (TextEditor)bindable;
794             float temp = 0.0f;
795             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_BAR_FADE_DURATION).Get(out temp);
796             return temp;
797         });
798         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
799         [EditorBrowsable(EditorBrowsableState.Never)]
800         public static readonly BindableProperty PixelSizeProperty = BindableProperty.Create("PixelSize", typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
801         {
802             var textEditor = (TextEditor)bindable;
803             if (newValue != null)
804             {
805                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.PIXEL_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
806             }
807         },
808         defaultValueCreator:(bindable) =>
809         {
810             var textEditor = (TextEditor)bindable;
811             float temp = 0.0f;
812             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.PIXEL_SIZE).Get(out temp);
813             return temp;
814         });
815         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
816         [EditorBrowsable(EditorBrowsableState.Never)]
817         public static readonly BindableProperty PlaceholderTextProperty = BindableProperty.Create("PlaceholderText", typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
818         {
819             var textEditor = (TextEditor)bindable;
820             if (newValue != null)
821             {
822                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.PLACEHOLDER_TEXT, new Tizen.NUI.PropertyValue((string)newValue));
823             }
824         },
825         defaultValueCreator:(bindable) =>
826         {
827             var textEditor = (TextEditor)bindable;
828             string temp;
829             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.PLACEHOLDER_TEXT).Get(out temp);
830             return temp;
831         });
832         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
833         [EditorBrowsable(EditorBrowsableState.Never)]
834         public static readonly BindableProperty PlaceholderTextColorProperty = BindableProperty.Create("PlaceholderTextColor", typeof(Color), typeof(TextEditor), Color.Transparent, propertyChanged: (bindable, oldValue, newValue) =>
835         {
836             var textEditor = (TextEditor)bindable;
837             if (newValue != null)
838             {
839                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.PLACEHOLDER_TEXT_COLOR, new Tizen.NUI.PropertyValue((Color)newValue));
840             }
841         },
842         defaultValueCreator:(bindable) =>
843         {
844             var textEditor = (TextEditor)bindable;
845             Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
846             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.PLACEHOLDER_TEXT_COLOR).Get(temp);
847             return temp;
848         });
849         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
850         [EditorBrowsable(EditorBrowsableState.Never)]
851         public static readonly BindableProperty EnableSelectionProperty = BindableProperty.Create("EnableSelection", typeof(bool), typeof(TextEditor), false, propertyChanged: (bindable, oldValue, newValue) =>
852         {
853             var textEditor = (TextEditor)bindable;
854             if (newValue != null)
855             {
856                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_SELECTION, new Tizen.NUI.PropertyValue((bool)newValue));
857             }
858         },
859         defaultValueCreator:(bindable) =>
860         {
861             var textEditor = (TextEditor)bindable;
862             bool temp = false;
863             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_SELECTION).Get(out temp);
864             return temp;
865         });
866         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
867         [EditorBrowsable(EditorBrowsableState.Never)]
868         public static readonly BindableProperty PlaceholderProperty = BindableProperty.Create("Placeholder", typeof(PropertyMap), typeof(TextEditor), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
869         {
870             var textEditor = (TextEditor)bindable;
871             if (newValue != null)
872             {
873                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.PLACEHOLDER, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
874             }
875         },
876         defaultValueCreator:(bindable) =>
877         {
878             var textEditor = (TextEditor)bindable;
879             Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
880             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.PLACEHOLDER).Get(temp);
881             return temp;
882         });
883         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
884         [EditorBrowsable(EditorBrowsableState.Never)]
885         public static readonly BindableProperty LineWrapModeProperty = BindableProperty.Create("LineWrapMode", typeof(LineWrapMode), typeof(TextEditor), LineWrapMode.Word, propertyChanged: (bindable, oldValue, newValue) =>
886         {
887             var textEditor = (TextEditor)bindable;
888             if (newValue != null)
889             {
890                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.LINE_WRAP_MODE, new Tizen.NUI.PropertyValue((int)newValue));
891             }
892         },
893         defaultValueCreator:(bindable) =>
894         {
895             var textEditor = (TextEditor)bindable;
896             int temp;
897             if(Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.LINE_WRAP_MODE).Get(out temp) == false)
898             {
899                 NUILog.Error("LineWrapMode get error!");
900             }
901             return (LineWrapMode)temp;
902         });
903         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
904         [EditorBrowsable(EditorBrowsableState.Never)]
905         public static readonly BindableProperty EnableShiftSelectionProperty = BindableProperty.Create("EnableShiftSelection", typeof(bool), typeof(TextEditor), true, propertyChanged: (bindable, oldValue, newValue) =>
906         {
907             var textEditor = (TextEditor)bindable;
908             if (newValue != null)
909             {
910                 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_SHIFT_SELECTION, new Tizen.NUI.PropertyValue((bool)newValue));
911             }
912         },
913         defaultValueCreator:(bindable) =>
914         {
915             var textEditor = (TextEditor)bindable;
916             //textEditor.mShiftSelectionFlag(true);
917             bool temp = false;
918             Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_SHIFT_SELECTION).Get(out temp);
919             return temp;
920         });
921
922         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
923         private string textEditorTextSid = null;
924         private string textEditorPlaceHolderTextSid = null;
925         private bool systemlangTextFlag = false;
926
927         internal TextEditor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextEditor_SWIGUpcast(cPtr), cMemoryOwn)
928         {
929             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
930         }
931
932         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextEditor obj)
933         {
934             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
935         }
936
937         /// <summary>
938         /// Dispose.
939         /// </summary>
940         /// <since_tizen> 3 </since_tizen>
941         protected override void Dispose(DisposeTypes type)
942         {
943             if (disposed)
944             {
945                 return;
946             }
947
948             if(type == DisposeTypes.Explicit)
949             {
950                 //Called by User
951                 //Release your own managed resources here.
952                 //You should release all of your own disposable objects here.
953             }
954
955             //Release your own unmanaged resources here.
956             //You should not access any managed member here except static instance.
957             //because the execution order of Finalizes is non-deterministic.
958
959             if (this != null && _textEditorTextChangedCallbackDelegate != null)
960             {
961                 TextChangedSignal().Disconnect(_textEditorTextChangedCallbackDelegate);
962             }
963
964             if (swigCPtr.Handle != global::System.IntPtr.Zero)
965             {
966                 if (swigCMemOwn)
967                 {
968                     swigCMemOwn = false;
969                     NDalicPINVOKE.delete_TextEditor(swigCPtr);
970                 }
971                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
972             }
973
974             base.Dispose(type);
975         }
976
977         /// <summary>
978         /// Event arguments that passed via the TextChanged signal.
979         /// </summary>
980         /// <since_tizen> 3 </since_tizen>
981         public class TextChangedEventArgs : EventArgs
982         {
983             private TextEditor _textEditor;
984
985             /// <summary>
986             /// TextEditor - is the texteditor control which has the text contents changed.
987             /// </summary>
988             /// <since_tizen> 3 </since_tizen>
989             public TextEditor TextEditor
990             {
991                 get
992                 {
993                     return _textEditor;
994                 }
995                 set
996                 {
997                     _textEditor = value;
998                 }
999             }
1000         }
1001
1002         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1003         private delegate void TextChangedCallbackDelegate(IntPtr textEditor);
1004         private EventHandler<TextChangedEventArgs> _textEditorTextChangedEventHandler;
1005         private TextChangedCallbackDelegate _textEditorTextChangedCallbackDelegate;
1006
1007         /// <summary>
1008         /// An event for the TextChanged signal which can be used to subscribe or unsubscribe the event handler
1009         /// provided by the user. The TextChanged signal is emitted when the text changes.<br />
1010         /// </summary>
1011         /// <since_tizen> 3 </since_tizen>
1012         public event EventHandler<TextChangedEventArgs> TextChanged
1013         {
1014             add
1015             {
1016                 if (_textEditorTextChangedEventHandler == null)
1017                 {
1018                     _textEditorTextChangedCallbackDelegate = (OnTextChanged);
1019                     TextChangedSignal().Connect(_textEditorTextChangedCallbackDelegate);
1020                 }
1021                 _textEditorTextChangedEventHandler += value;
1022             }
1023             remove
1024             {
1025                 _textEditorTextChangedEventHandler -= value;
1026                 if (_textEditorTextChangedEventHandler == null && TextChangedSignal().Empty() == false)
1027                 {
1028                     TextChangedSignal().Disconnect(_textEditorTextChangedCallbackDelegate);
1029                 }
1030             }
1031         }
1032
1033         private void OnTextChanged(IntPtr textEditor)
1034         {
1035             TextChangedEventArgs e = new TextChangedEventArgs();
1036
1037             // Populate all members of "e" (TextChangedEventArgs) with real data
1038             e.TextEditor = Registry.GetManagedBaseHandleFromNativePtr(textEditor) as TextEditor;
1039
1040             if (_textEditorTextChangedEventHandler != null)
1041             {
1042                 //here we send all data to user event handlers
1043                 _textEditorTextChangedEventHandler(this, e);
1044             }
1045
1046         }
1047
1048         /// <summary>
1049         /// Event arguments that passed via the ScrollStateChanged signal.
1050         /// </summary>
1051         /// <since_tizen> 3 </since_tizen>
1052         public class ScrollStateChangedEventArgs : EventArgs
1053         {
1054             private TextEditor _textEditor;
1055             private ScrollState _scrollState;
1056
1057             /// <summary>
1058             /// TextEditor - is the texteditor control which has the scroll state changed.
1059             /// </summary>
1060             /// <since_tizen> 3 </since_tizen>
1061             public TextEditor TextEditor
1062             {
1063                 get
1064                 {
1065                     return _textEditor;
1066                 }
1067                 set
1068                 {
1069                     _textEditor = value;
1070                 }
1071             }
1072
1073             /// <summary>
1074             /// ScrollState - is the texteditor control scroll state.
1075             /// </summary>
1076             /// <since_tizen> 3 </since_tizen>
1077             public ScrollState ScrollState
1078             {
1079                 get
1080                 {
1081                     return _scrollState;
1082                 }
1083                 set
1084                 {
1085                     _scrollState = value;
1086                 }
1087             }
1088         }
1089
1090         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1091         private delegate void ScrollStateChangedCallbackDelegate(IntPtr textEditor, ScrollState state);
1092         private EventHandler<ScrollStateChangedEventArgs> _textEditorScrollStateChangedEventHandler;
1093         private ScrollStateChangedCallbackDelegate _textEditorScrollStateChangedCallbackDelegate;
1094
1095         /// <summary>
1096         /// Event for the ScrollStateChanged signal which can be used to subscribe or unsubscribe the event handler
1097         /// provided by the user. The ScrollStateChanged signal is emitted when the scroll state changes.<br />
1098         /// </summary>
1099         /// <since_tizen> 3 </since_tizen>
1100         public event EventHandler<ScrollStateChangedEventArgs> ScrollStateChanged
1101         {
1102             add
1103             {
1104                 if (_textEditorScrollStateChangedEventHandler == null)
1105                 {
1106                     _textEditorScrollStateChangedCallbackDelegate = OnScrollStateChanged;
1107                     ScrollStateChangedSignal(this).Connect(_textEditorScrollStateChangedCallbackDelegate);
1108                 }
1109                 _textEditorScrollStateChangedEventHandler += value;
1110             }
1111             remove
1112             {
1113                 _textEditorScrollStateChangedEventHandler -= value;
1114                 if (_textEditorScrollStateChangedEventHandler == null && ScrollStateChangedSignal(this).Empty() == false)
1115                 {
1116                     ScrollStateChangedSignal(this).Disconnect(_textEditorScrollStateChangedCallbackDelegate);
1117                 }
1118             }
1119         }
1120
1121         private void OnScrollStateChanged(IntPtr textEditor, ScrollState state)
1122         {
1123             ScrollStateChangedEventArgs e = new ScrollStateChangedEventArgs();
1124
1125             if (textEditor != null)
1126             {
1127                 // Populate all members of "e" (ScrollStateChangedEventArgs) with real data
1128                 e.TextEditor = Registry.GetManagedBaseHandleFromNativePtr(textEditor) as TextEditor;
1129                 e.ScrollState = state;
1130             }
1131
1132             if (_textEditorScrollStateChangedEventHandler != null)
1133             {
1134                 //here we send all data to user event handlers
1135                 _textEditorScrollStateChangedEventHandler(this, e);
1136             }
1137         }
1138
1139         internal new class Property
1140         {
1141             internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextEditor_Property_RENDERING_BACKEND_get();
1142             internal static readonly int TEXT = NDalicPINVOKE.TextEditor_Property_TEXT_get();
1143             internal static readonly int TEXT_COLOR = NDalicPINVOKE.TextEditor_Property_TEXT_COLOR_get();
1144             internal static readonly int FONT_FAMILY = NDalicPINVOKE.TextEditor_Property_FONT_FAMILY_get();
1145             internal static readonly int FONT_STYLE = NDalicPINVOKE.TextEditor_Property_FONT_STYLE_get();
1146             internal static readonly int POINT_SIZE = NDalicPINVOKE.TextEditor_Property_POINT_SIZE_get();
1147             internal static readonly int HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TextEditor_Property_HORIZONTAL_ALIGNMENT_get();
1148             internal static readonly int SCROLL_THRESHOLD = NDalicPINVOKE.TextEditor_Property_SCROLL_THRESHOLD_get();
1149             internal static readonly int SCROLL_SPEED = NDalicPINVOKE.TextEditor_Property_SCROLL_SPEED_get();
1150             internal static readonly int PRIMARY_CURSOR_COLOR = NDalicPINVOKE.TextEditor_Property_PRIMARY_CURSOR_COLOR_get();
1151             internal static readonly int SECONDARY_CURSOR_COLOR = NDalicPINVOKE.TextEditor_Property_SECONDARY_CURSOR_COLOR_get();
1152             internal static readonly int ENABLE_CURSOR_BLINK = NDalicPINVOKE.TextEditor_Property_ENABLE_CURSOR_BLINK_get();
1153             internal static readonly int CURSOR_BLINK_INTERVAL = NDalicPINVOKE.TextEditor_Property_CURSOR_BLINK_INTERVAL_get();
1154             internal static readonly int CURSOR_BLINK_DURATION = NDalicPINVOKE.TextEditor_Property_CURSOR_BLINK_DURATION_get();
1155             internal static readonly int CURSOR_WIDTH = NDalicPINVOKE.TextEditor_Property_CURSOR_WIDTH_get();
1156             internal static readonly int GRAB_HANDLE_IMAGE = NDalicPINVOKE.TextEditor_Property_GRAB_HANDLE_IMAGE_get();
1157             internal static readonly int GRAB_HANDLE_PRESSED_IMAGE = NDalicPINVOKE.TextEditor_Property_GRAB_HANDLE_PRESSED_IMAGE_get();
1158             internal static readonly int SELECTION_HANDLE_IMAGE_LEFT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_IMAGE_LEFT_get();
1159             internal static readonly int SELECTION_HANDLE_IMAGE_RIGHT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_IMAGE_RIGHT_get();
1160             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_LEFT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_PRESSED_IMAGE_LEFT_get();
1161             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT_get();
1162             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_LEFT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_MARKER_IMAGE_LEFT_get();
1163             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_RIGHT = NDalicPINVOKE.TextEditor_Property_SELECTION_HANDLE_MARKER_IMAGE_RIGHT_get();
1164             internal static readonly int SELECTION_HIGHLIGHT_COLOR = NDalicPINVOKE.TextEditor_Property_SELECTION_HIGHLIGHT_COLOR_get();
1165             internal static readonly int DECORATION_BOUNDING_BOX = NDalicPINVOKE.TextEditor_Property_DECORATION_BOUNDING_BOX_get();
1166             internal static readonly int ENABLE_MARKUP = NDalicPINVOKE.TextEditor_Property_ENABLE_MARKUP_get();
1167             internal static readonly int INPUT_COLOR = NDalicPINVOKE.TextEditor_Property_INPUT_COLOR_get();
1168             internal static readonly int INPUT_FONT_FAMILY = NDalicPINVOKE.TextEditor_Property_INPUT_FONT_FAMILY_get();
1169             internal static readonly int INPUT_FONT_STYLE = NDalicPINVOKE.TextEditor_Property_INPUT_FONT_STYLE_get();
1170             internal static readonly int INPUT_POINT_SIZE = NDalicPINVOKE.TextEditor_Property_INPUT_POINT_SIZE_get();
1171             internal static readonly int LINE_SPACING = NDalicPINVOKE.TextEditor_Property_LINE_SPACING_get();
1172             internal static readonly int INPUT_LINE_SPACING = NDalicPINVOKE.TextEditor_Property_INPUT_LINE_SPACING_get();
1173             internal static readonly int UNDERLINE = NDalicPINVOKE.TextEditor_Property_UNDERLINE_get();
1174             internal static readonly int INPUT_UNDERLINE = NDalicPINVOKE.TextEditor_Property_INPUT_UNDERLINE_get();
1175             internal static readonly int SHADOW = NDalicPINVOKE.TextEditor_Property_SHADOW_get();
1176             internal static readonly int INPUT_SHADOW = NDalicPINVOKE.TextEditor_Property_INPUT_SHADOW_get();
1177             internal static readonly int EMBOSS = NDalicPINVOKE.TextEditor_Property_EMBOSS_get();
1178             internal static readonly int INPUT_EMBOSS = NDalicPINVOKE.TextEditor_Property_INPUT_EMBOSS_get();
1179             internal static readonly int OUTLINE = NDalicPINVOKE.TextEditor_Property_OUTLINE_get();
1180             internal static readonly int INPUT_OUTLINE = NDalicPINVOKE.TextEditor_Property_INPUT_OUTLINE_get();
1181             internal static readonly int SMOOTH_SCROLL = NDalicManualPINVOKE.TextEditor_Property_SMOOTH_SCROLL_get();
1182             internal static readonly int SMOOTH_SCROLL_DURATION = NDalicManualPINVOKE.TextEditor_Property_SMOOTH_SCROLL_DURATION_get();
1183             internal static readonly int ENABLE_SCROLL_BAR = NDalicManualPINVOKE.TextEditor_Property_ENABLE_SCROLL_BAR_get();
1184             internal static readonly int SCROLL_BAR_SHOW_DURATION = NDalicManualPINVOKE.TextEditor_Property_SCROLL_BAR_SHOW_DURATION_get();
1185             internal static readonly int SCROLL_BAR_FADE_DURATION = NDalicManualPINVOKE.TextEditor_Property_SCROLL_BAR_FADE_DURATION_get();
1186             internal static readonly int PIXEL_SIZE = NDalicManualPINVOKE.TextEditor_Property_PIXEL_SIZE_get();
1187             internal static readonly int LINE_COUNT = NDalicManualPINVOKE.TextEditor_Property_LINE_COUNT_get();
1188             internal static readonly int ENABLE_SELECTION = NDalicManualPINVOKE.TextEditor_Property_ENABLE_SELECTION_get();
1189             internal static readonly int PLACEHOLDER = NDalicManualPINVOKE.TextEditor_Property_PLACEHOLDER_get();
1190             internal static readonly int LINE_WRAP_MODE = NDalicManualPINVOKE.TextEditor_Property_LINE_WRAP_MODE_get();
1191             internal static readonly int PLACEHOLDER_TEXT = NDalicManualPINVOKE.TextEditor_Property_PLACEHOLDER_TEXT_get();
1192             internal static readonly int PLACEHOLDER_TEXT_COLOR = NDalicManualPINVOKE.TextEditor_Property_PLACEHOLDER_TEXT_COLOR_get();
1193             internal static readonly int ENABLE_SHIFT_SELECTION = NDalicManualPINVOKE.TextEditor_Property_ENABLE_SHIFT_SELECTION_get();
1194         }
1195
1196         internal class InputStyle
1197         {
1198             internal enum Mask
1199             {
1200                 None = 0x0000,
1201                 Color = 0x0001,
1202                 FontFamily = 0x0002,
1203                 PointSize = 0x0004,
1204                 FontStyle = 0x0008,
1205                 LineSpacing = 0x0010,
1206                 Underline = 0x0020,
1207                 Shadow = 0x0040,
1208                 Emboss = 0x0080,
1209                 Outline = 0x0100
1210             }
1211         }
1212
1213         /// <summary>
1214         /// Creates the TextEditor control.
1215         /// </summary>
1216         /// <since_tizen> 3 </since_tizen>
1217         public TextEditor() : this(NDalicPINVOKE.TextEditor_New(), true)
1218         {
1219             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1220         }
1221
1222         internal override bool IsCreateByXaml
1223         {
1224             get
1225             {
1226                 return base.IsCreateByXaml;
1227             }
1228             set
1229             {
1230                 base.IsCreateByXaml = value;
1231
1232                 if (value == true)
1233                 {
1234                     this.TextChanged += (obj, e) =>
1235                     {
1236                         this.Text = this.Text;
1237                     };
1238                 }
1239             }
1240         }
1241
1242         internal TextEditor(TextEditor handle) : this(NDalicPINVOKE.new_TextEditor__SWIG_1(TextEditor.getCPtr(handle)), true)
1243         {
1244             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1245         }
1246
1247         /// <summary>
1248         /// Get the InputMethodContext instance.
1249         /// </summary>
1250         /// <returns>The InputMethodContext instance.</returns>
1251         public InputMethodContext GetInputMethodContext() {
1252             InputMethodContext ret = new InputMethodContext(NDalicPINVOKE.TextEditor_GetInputMethodContext(swigCPtr), true);
1253             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1254             return ret;
1255         }
1256
1257         internal TextEditorSignal TextChangedSignal()
1258         {
1259             TextEditorSignal ret = new TextEditorSignal(NDalicPINVOKE.TextEditor_TextChangedSignal(swigCPtr), false);
1260             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1261             return ret;
1262         }
1263
1264         internal ScrollStateChangedSignal ScrollStateChangedSignal(TextEditor textEditor)
1265         {
1266             ScrollStateChangedSignal ret = new ScrollStateChangedSignal(NDalicManualPINVOKE.TextEditor_ScrollStateChangedSignal(TextEditor.getCPtr(textEditor)), false);
1267             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1268             return ret;
1269         }
1270
1271         internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t InputStyleChangedSignal()
1272         {
1273             SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t ret = new SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t(NDalicPINVOKE.TextEditor_InputStyleChangedSignal(swigCPtr), false);
1274             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1275             return ret;
1276         }
1277
1278         /// <summary>
1279         /// The TranslatableText property.<br />
1280         /// The text can set the SID value.<br />
1281         /// </summary>
1282         /// <exception cref='ArgumentNullException'>
1283         /// ResourceManager about multilingual is null.
1284         /// </exception>
1285         /// <since_tizen> 4 </since_tizen>
1286         public string TranslatableText
1287         {
1288             get
1289             {
1290                 return textEditorTextSid;
1291             }
1292             set
1293             {
1294                 if (NUIApplication.MultilingualResourceManager == null)
1295                 {
1296                     throw new ArgumentNullException("ResourceManager about multilingual is null");
1297                 }
1298                 textEditorTextSid = value;
1299                 Text = SetTranslatable(textEditorTextSid);
1300                 NotifyPropertyChanged();
1301             }
1302         }
1303         /// <summary>
1304         /// The TranslatablePlaceholderText property.<br />
1305         /// The text can set the SID value.<br />
1306         /// </summary>
1307         /// <exception cref='ArgumentNullException'>
1308         /// ResourceManager about multilingual is null.
1309         /// </exception>
1310         /// <since_tizen> 4 </since_tizen>
1311         public string TranslatablePlaceholderText
1312         {
1313             get
1314             {
1315                 return textEditorPlaceHolderTextSid;
1316             }
1317             set
1318             {
1319                 if (NUIApplication.MultilingualResourceManager == null)
1320                 {
1321                     throw new ArgumentNullException("ResourceManager about multilingual is null");
1322                 }
1323                 textEditorPlaceHolderTextSid = value;
1324                 PlaceholderText = SetTranslatable(textEditorPlaceHolderTextSid);
1325                 NotifyPropertyChanged();
1326             }
1327         }
1328         private string SetTranslatable(string textEditorSid)
1329         {
1330             string translatableText = null;
1331             translatableText = NUIApplication.MultilingualResourceManager?.GetString(textEditorSid, new CultureInfo(SystemSettings.LocaleLanguage.Replace("_", "-")));
1332             if (translatableText != null)
1333             {
1334                 if (systemlangTextFlag == false)
1335                 {
1336                     SystemSettings.LocaleLanguageChanged += new WeakEventHandler<LocaleLanguageChangedEventArgs>(SystemSettings_LocaleLanguageChanged).Handler;
1337                     systemlangTextFlag = true;
1338                 }
1339                 return translatableText;
1340             }
1341             else
1342             {
1343                 translatableText = "";
1344                 return translatableText;
1345             }
1346         }
1347         private void SystemSettings_LocaleLanguageChanged(object sender, LocaleLanguageChangedEventArgs e)
1348         {
1349             if (textEditorTextSid != null)
1350             {
1351                 Text = NUIApplication.MultilingualResourceManager?.GetString(textEditorTextSid, new CultureInfo(e.Value.Replace("_", "-")));
1352             }
1353             if (textEditorPlaceHolderTextSid != null)
1354             {
1355                 PlaceholderText = NUIApplication.MultilingualResourceManager?.GetString(textEditorPlaceHolderTextSid, new CultureInfo(e.Value.Replace("_", "-")));
1356             }
1357         }
1358         /// <summary>
1359         /// The Text property.
1360         /// </summary>
1361         /// <since_tizen> 3 </since_tizen>
1362         public string Text
1363         {
1364             get
1365             {
1366                 return (string)GetValue(TextProperty);
1367             }
1368             set
1369             {
1370                 SetValueAndForceSendChangeSignal(TextProperty, value);
1371                 NotifyPropertyChanged();
1372             }
1373         }
1374
1375         /// <summary>
1376         /// The TextColor property.
1377         /// </summary>
1378         /// <since_tizen> 3 </since_tizen>
1379         public Vector4 TextColor
1380         {
1381             get
1382             {
1383                 return (Vector4)GetValue(TextColorProperty);
1384             }
1385             set
1386             {
1387                 SetValue(TextColorProperty, value);
1388                 NotifyPropertyChanged();
1389             }
1390         }
1391
1392         /// <summary>
1393         /// The FontFamily property.
1394         /// </summary>
1395         /// <since_tizen> 3 </since_tizen>
1396         public string FontFamily
1397         {
1398             get
1399             {
1400                 return (string)GetValue(FontFamilyProperty);
1401             }
1402             set
1403             {
1404                 SetValue(FontFamilyProperty, value);
1405                 NotifyPropertyChanged();
1406             }
1407         }
1408
1409         /// <summary>
1410         /// The FontStyle property.
1411         /// </summary>
1412         /// <since_tizen> 3 </since_tizen>
1413         public PropertyMap FontStyle
1414         {
1415             get
1416             {
1417                 return (PropertyMap)GetValue(FontStyleProperty);
1418             }
1419             set
1420             {
1421                 SetValue(FontStyleProperty, value);
1422                 NotifyPropertyChanged();
1423             }
1424         }
1425
1426         /// <summary>
1427         /// The PointSize property.
1428         /// </summary>
1429         /// <since_tizen> 3 </since_tizen>
1430         public float PointSize
1431         {
1432             get
1433             {
1434                 return (float)GetValue(PointSizeProperty);
1435             }
1436             set
1437             {
1438                 SetValue(PointSizeProperty, value);
1439                 NotifyPropertyChanged();
1440             }
1441         }
1442
1443         /// <summary>
1444         /// The HorizontalAlignment property.
1445         /// </summary>
1446         /// <since_tizen> 3 </since_tizen>
1447         public HorizontalAlignment HorizontalAlignment
1448         {
1449             get
1450             {
1451                 return (HorizontalAlignment)GetValue(HorizontalAlignmentProperty);
1452             }
1453             set
1454             {
1455                 SetValue(HorizontalAlignmentProperty, value);
1456                 NotifyPropertyChanged();
1457             }
1458         }
1459
1460         /// <summary>
1461         /// The ScrollThreshold property.
1462         /// </summary>
1463         /// <since_tizen> 3 </since_tizen>
1464         public float ScrollThreshold
1465         {
1466             get
1467             {
1468                 return (float)GetValue(ScrollThresholdProperty);
1469             }
1470             set
1471             {
1472                 SetValue(ScrollThresholdProperty, value);
1473                 NotifyPropertyChanged();
1474             }
1475         }
1476
1477         /// <summary>
1478         /// The ScrollSpeed property.
1479         /// </summary>
1480         /// <since_tizen> 3 </since_tizen>
1481         public float ScrollSpeed
1482         {
1483             get
1484             {
1485                 return (float)GetValue(ScrollSpeedProperty);
1486             }
1487             set
1488             {
1489                 SetValue(ScrollSpeedProperty, value);
1490                 NotifyPropertyChanged();
1491             }
1492         }
1493
1494         /// <summary>
1495         /// The PrimaryCursorColor property.
1496         /// </summary>
1497         /// <since_tizen> 3 </since_tizen>
1498         public Vector4 PrimaryCursorColor
1499         {
1500             get
1501             {
1502                 return (Vector4)GetValue(PrimaryCursorColorProperty);
1503             }
1504             set
1505             {
1506                 SetValue(PrimaryCursorColorProperty, value);
1507                 NotifyPropertyChanged();
1508             }
1509         }
1510
1511         /// <summary>
1512         /// The SecondaryCursorColor property.
1513         /// </summary>
1514         /// <since_tizen> 3 </since_tizen>
1515         public Vector4 SecondaryCursorColor
1516         {
1517             get
1518             {
1519                 return (Vector4)GetValue(SecondaryCursorColorProperty);
1520             }
1521             set
1522             {
1523                 SetValue(SecondaryCursorColorProperty, value);
1524                 NotifyPropertyChanged();
1525             }
1526         }
1527
1528         /// <summary>
1529         /// The EnableCursorBlink property.
1530         /// </summary>
1531         /// <since_tizen> 3 </since_tizen>
1532         public bool EnableCursorBlink
1533         {
1534             get
1535             {
1536                 return (bool)GetValue(EnableCursorBlinkProperty);
1537             }
1538             set
1539             {
1540                 SetValue(EnableCursorBlinkProperty, value);
1541                 NotifyPropertyChanged();
1542             }
1543         }
1544
1545         /// <summary>
1546         /// The CursorBlinkInterval property.
1547         /// </summary>
1548         /// <since_tizen> 3 </since_tizen>
1549         public float CursorBlinkInterval
1550         {
1551             get
1552             {
1553                 return (float)GetValue(CursorBlinkIntervalProperty);
1554             }
1555             set
1556             {
1557                 SetValue(CursorBlinkIntervalProperty, value);
1558                 NotifyPropertyChanged();
1559             }
1560         }
1561
1562         /// <summary>
1563         /// The CursorBlinkDuration property.
1564         /// </summary>
1565         /// <since_tizen> 3 </since_tizen>
1566         public float CursorBlinkDuration
1567         {
1568             get
1569             {
1570                 return (float)GetValue(CursorBlinkDurationProperty);
1571             }
1572             set
1573             {
1574                 SetValue(CursorBlinkDurationProperty, value);
1575                 NotifyPropertyChanged();
1576             }
1577         }
1578
1579         /// <summary>
1580         /// The CursorWidth property.
1581         /// </summary>
1582         /// <since_tizen> 3 </since_tizen>
1583         public int CursorWidth
1584         {
1585             get
1586             {
1587                 return (int)GetValue(CursorWidthProperty);
1588             }
1589             set
1590             {
1591                 SetValue(CursorWidthProperty, value);
1592                 NotifyPropertyChanged();
1593             }
1594         }
1595
1596         /// <summary>
1597         /// The GrabHandleImage property.
1598         /// </summary>
1599         /// <since_tizen> 3 </since_tizen>
1600         public string GrabHandleImage
1601         {
1602             get
1603             {
1604                 return (string)GetValue(GrabHandleImageProperty);
1605             }
1606             set
1607             {
1608                 SetValue(GrabHandleImageProperty, value);
1609                 NotifyPropertyChanged();
1610             }
1611         }
1612
1613         /// <summary>
1614         /// The GrabHandlePressedImage property.
1615         /// </summary>
1616         /// <since_tizen> 3 </since_tizen>
1617         public string GrabHandlePressedImage
1618         {
1619             get
1620             {
1621                 return (string)GetValue(GrabHandlePressedImageProperty);
1622             }
1623             set
1624             {
1625                 SetValue(GrabHandlePressedImageProperty, value);
1626                 NotifyPropertyChanged();
1627             }
1628         }
1629
1630         /// <summary>
1631         /// The SelectionHandleImageLeft property.
1632         /// </summary>
1633         /// <since_tizen> 3 </since_tizen>
1634         public PropertyMap SelectionHandleImageLeft
1635         {
1636             get
1637             {
1638                 return (PropertyMap)GetValue(SelectionHandleImageLeftProperty);
1639             }
1640             set
1641             {
1642                 SetValue(SelectionHandleImageLeftProperty, value);
1643                 NotifyPropertyChanged();
1644             }
1645         }
1646
1647         /// <summary>
1648         /// The SelectionHandleImageRight property.
1649         /// </summary>
1650         /// <since_tizen> 3 </since_tizen>
1651         public PropertyMap SelectionHandleImageRight
1652         {
1653             get
1654             {
1655                 return (PropertyMap)GetValue(SelectionHandleImageRightProperty);
1656             }
1657             set
1658             {
1659                 SetValue(SelectionHandleImageRightProperty, value);
1660                 NotifyPropertyChanged();
1661             }
1662         }
1663
1664         /// <summary>
1665         /// The SelectionHandlePressedImageLeft property.
1666         /// </summary>
1667         /// <since_tizen> 3 </since_tizen>
1668         public PropertyMap SelectionHandlePressedImageLeft
1669         {
1670             get
1671             {
1672                 return (PropertyMap)GetValue(SelectionHandlePressedImageLeftProperty);
1673             }
1674             set
1675             {
1676                 SetValue(SelectionHandlePressedImageLeftProperty, value);
1677                 NotifyPropertyChanged();
1678             }
1679         }
1680
1681         /// <summary>
1682         /// The SelectionHandlePressedImageRight property.
1683         /// </summary>
1684         /// <since_tizen> 3 </since_tizen>
1685         public PropertyMap SelectionHandlePressedImageRight
1686         {
1687             get
1688             {
1689                 return (PropertyMap)GetValue(SelectionHandlePressedImageRightProperty);
1690             }
1691             set
1692             {
1693                 SetValue(SelectionHandlePressedImageRightProperty, value);
1694                 NotifyPropertyChanged();
1695             }
1696         }
1697
1698         /// <summary>
1699         /// The SelectionHandleMarkerImageLeft property.
1700         /// </summary>
1701         /// <since_tizen> 3 </since_tizen>
1702         public PropertyMap SelectionHandleMarkerImageLeft
1703         {
1704             get
1705             {
1706                 return (PropertyMap)GetValue(SelectionHandleMarkerImageLeftProperty);
1707             }
1708             set
1709             {
1710                 SetValue(SelectionHandleMarkerImageLeftProperty, value);
1711                 NotifyPropertyChanged();
1712             }
1713         }
1714
1715         /// <summary>
1716         /// The SelectionHandleMarkerImageRight property.
1717         /// </summary>
1718         /// <since_tizen> 3 </since_tizen>
1719         public PropertyMap SelectionHandleMarkerImageRight
1720         {
1721             get
1722             {
1723                 return (PropertyMap)GetValue(SelectionHandleMarkerImageRightProperty);
1724             }
1725             set
1726             {
1727                 SetValue(SelectionHandleMarkerImageRightProperty, value);
1728                 NotifyPropertyChanged();
1729             }
1730         }
1731
1732         /// <summary>
1733         /// The SelectionHighlightColor property.
1734         /// </summary>
1735         /// <since_tizen> 3 </since_tizen>
1736         public Vector4 SelectionHighlightColor
1737         {
1738             get
1739             {
1740                 return (Vector4)GetValue(SelectionHighlightColorProperty);
1741             }
1742             set
1743             {
1744                 SetValue(SelectionHighlightColorProperty, value);
1745                 NotifyPropertyChanged();
1746             }
1747         }
1748
1749         /// <summary>
1750         /// The DecorationBoundingBox property.
1751         /// </summary>
1752         /// <since_tizen> 3 </since_tizen>
1753         public Rectangle DecorationBoundingBox
1754         {
1755             get
1756             {
1757                 return (Rectangle)GetValue(DecorationBoundingBoxProperty);
1758             }
1759             set
1760             {
1761                 SetValue(DecorationBoundingBoxProperty, value);
1762                 NotifyPropertyChanged();
1763             }
1764         }
1765
1766         /// <summary>
1767         /// The EnableMarkup property.
1768         /// </summary>
1769         /// <since_tizen> 3 </since_tizen>
1770         public bool EnableMarkup
1771         {
1772             get
1773             {
1774                 return (bool)GetValue(EnableMarkupProperty);
1775             }
1776             set
1777             {
1778                 SetValue(EnableMarkupProperty, value);
1779                 NotifyPropertyChanged();
1780             }
1781         }
1782
1783         /// <summary>
1784         /// The InputColor property.
1785         /// </summary>
1786         /// <since_tizen> 3 </since_tizen>
1787         public Vector4 InputColor
1788         {
1789             get
1790             {
1791                 return (Vector4)GetValue(InputColorProperty);
1792             }
1793             set
1794             {
1795                 SetValue(InputColorProperty, value);
1796                 NotifyPropertyChanged();
1797             }
1798         }
1799
1800         /// <summary>
1801         /// The InputFontFamily property.
1802         /// </summary>
1803         /// <since_tizen> 3 </since_tizen>
1804         public string InputFontFamily
1805         {
1806             get
1807             {
1808                 return (string)GetValue(InputFontFamilyProperty);
1809             }
1810             set
1811             {
1812                 SetValue(InputFontFamilyProperty, value);
1813                 NotifyPropertyChanged();
1814             }
1815         }
1816
1817         /// <summary>
1818         /// The InputFontStyle property.
1819         /// </summary>
1820         /// <since_tizen> 3 </since_tizen>
1821         public PropertyMap InputFontStyle
1822         {
1823             get
1824             {
1825                 return (PropertyMap)GetValue(InputFontStyleProperty);
1826             }
1827             set
1828             {
1829                 SetValue(InputFontStyleProperty, value);
1830                 NotifyPropertyChanged();
1831             }
1832         }
1833
1834         /// <summary>
1835         /// The InputPointSize property.
1836         /// </summary>
1837         /// <since_tizen> 3 </since_tizen>
1838         public float InputPointSize
1839         {
1840             get
1841             {
1842                 return (float)GetValue(InputPointSizeProperty);
1843             }
1844             set
1845             {
1846                 SetValue(InputPointSizeProperty, value);
1847                 NotifyPropertyChanged();
1848             }
1849         }
1850
1851         /// <summary>
1852         /// The LineSpacing property.
1853         /// </summary>
1854         /// <since_tizen> 3 </since_tizen>
1855         public float LineSpacing
1856         {
1857             get
1858             {
1859                 return (float)GetValue(LineSpacingProperty);
1860             }
1861             set
1862             {
1863                 SetValue(LineSpacingProperty, value);
1864                 NotifyPropertyChanged();
1865             }
1866         }
1867
1868         /// <summary>
1869         /// The InputLineSpacing property.
1870         /// </summary>
1871         /// <since_tizen> 3 </since_tizen>
1872         public float InputLineSpacing
1873         {
1874             get
1875             {
1876                 return (float)GetValue(InputLineSpacingProperty);
1877             }
1878             set
1879             {
1880                 SetValue(InputLineSpacingProperty, value);
1881                 NotifyPropertyChanged();
1882             }
1883         }
1884
1885         /// <summary>
1886         /// The Underline property.
1887         /// </summary>
1888         /// <since_tizen> 3 </since_tizen>
1889         public PropertyMap Underline
1890         {
1891             get
1892             {
1893                 return (PropertyMap)GetValue(UnderlineProperty);
1894             }
1895             set
1896             {
1897                 SetValue(UnderlineProperty, value);
1898                 NotifyPropertyChanged();
1899             }
1900         }
1901
1902         /// <summary>
1903         /// The InputUnderline property.
1904         /// </summary>
1905         /// <since_tizen> 3 </since_tizen>
1906         public string InputUnderline
1907         {
1908             get
1909             {
1910                 return (string)GetValue(InputUnderlineProperty);
1911             }
1912             set
1913             {
1914                 SetValue(InputUnderlineProperty, value);
1915                 NotifyPropertyChanged();
1916             }
1917         }
1918
1919         /// <summary>
1920         /// The Shadow property.
1921         /// </summary>
1922         /// <since_tizen> 3 </since_tizen>
1923         public PropertyMap Shadow
1924         {
1925             get
1926             {
1927                 return (PropertyMap)GetValue(ShadowProperty);
1928             }
1929             set
1930             {
1931                 SetValue(ShadowProperty, value);
1932                 NotifyPropertyChanged();
1933             }
1934         }
1935
1936         /// <summary>
1937         /// The InputShadow property.
1938         /// </summary>
1939         /// <since_tizen> 3 </since_tizen>
1940         public string InputShadow
1941         {
1942             get
1943             {
1944                 return (string)GetValue(InputShadowProperty);
1945             }
1946             set
1947             {
1948                 SetValue(InputShadowProperty, value);
1949                 NotifyPropertyChanged();
1950             }
1951         }
1952
1953         /// <summary>
1954         /// The Emboss property.
1955         /// </summary>
1956         /// <since_tizen> 3 </since_tizen>
1957         public string Emboss
1958         {
1959             get
1960             {
1961                 return (string)GetValue(EmbossProperty);
1962             }
1963             set
1964             {
1965                 SetValue(EmbossProperty, value);
1966                 NotifyPropertyChanged();
1967             }
1968         }
1969
1970         /// <summary>
1971         /// The InputEmboss property.
1972         /// </summary>
1973         /// <since_tizen> 3 </since_tizen>
1974         public string InputEmboss
1975         {
1976             get
1977             {
1978                 return (string)GetValue(InputEmbossProperty);
1979             }
1980             set
1981             {
1982                 SetValue(InputEmbossProperty, value);
1983                 NotifyPropertyChanged();
1984             }
1985         }
1986
1987         /// <summary>
1988         /// The Outline property.
1989         /// </summary>
1990         /// <since_tizen> 3 </since_tizen>
1991         public PropertyMap Outline
1992         {
1993             get
1994             {
1995                 return (PropertyMap)GetValue(OutlineProperty);
1996             }
1997             set
1998             {
1999                 SetValue(OutlineProperty, value);
2000                 NotifyPropertyChanged();
2001             }
2002         }
2003
2004         /// <summary>
2005         /// The InputOutline property.
2006         /// </summary>
2007         /// <since_tizen> 3 </since_tizen>
2008         public string InputOutline
2009         {
2010             get
2011             {
2012                 return (string)GetValue(InputOutlineProperty);
2013             }
2014             set
2015             {
2016                 SetValue(InputOutlineProperty, value);
2017                 NotifyPropertyChanged();
2018             }
2019         }
2020
2021         /// <summary>
2022         /// The SmoothScroll property.
2023         /// </summary>
2024         /// <since_tizen> 3 </since_tizen>
2025         public bool SmoothScroll
2026         {
2027             get
2028             {
2029                 return (bool)GetValue(SmoothScrollProperty);
2030             }
2031             set
2032             {
2033                 SetValue(SmoothScrollProperty, value);
2034                 NotifyPropertyChanged();
2035             }
2036         }
2037
2038         /// <summary>
2039         /// The SmoothScrollDuration property.
2040         /// </summary>
2041         /// <since_tizen> 3 </since_tizen>
2042         public float SmoothScrollDuration
2043         {
2044             get
2045             {
2046                 return (float)GetValue(SmoothScrollDurationProperty);
2047             }
2048             set
2049             {
2050                 SetValue(SmoothScrollDurationProperty, value);
2051                 NotifyPropertyChanged();
2052             }
2053         }
2054
2055         /// <summary>
2056         /// The EnableScrollBar property.
2057         /// </summary>
2058         /// <since_tizen> 3 </since_tizen>
2059         public bool EnableScrollBar
2060         {
2061             get
2062             {
2063                 return (bool)GetValue(EnableScrollBarProperty);
2064             }
2065             set
2066             {
2067                 SetValue(EnableScrollBarProperty, value);
2068                 NotifyPropertyChanged();
2069             }
2070         }
2071
2072         /// <summary>
2073         /// The ScrollBarShowDuration property.
2074         /// </summary>
2075         /// <since_tizen> 3 </since_tizen>
2076         public float ScrollBarShowDuration
2077         {
2078             get
2079             {
2080                 return (float)GetValue(ScrollBarShowDurationProperty);
2081             }
2082             set
2083             {
2084                 SetValue(ScrollBarShowDurationProperty, value);
2085                 NotifyPropertyChanged();
2086             }
2087         }
2088
2089         /// <summary>
2090         /// The ScrollBarFadeDuration property.
2091         /// </summary>
2092         /// <since_tizen> 3 </since_tizen>
2093         public float ScrollBarFadeDuration
2094         {
2095             get
2096             {
2097                 return (float)GetValue(ScrollBarFadeDurationProperty);
2098             }
2099             set
2100             {
2101                 SetValue(ScrollBarFadeDurationProperty, value);
2102                 NotifyPropertyChanged();
2103             }
2104         }
2105
2106         /// <summary>
2107         /// The PixelSize property.
2108         /// </summary>
2109         /// <since_tizen> 3 </since_tizen>
2110         public float PixelSize
2111         {
2112             get
2113             {
2114                 return (float)GetValue(PixelSizeProperty);
2115             }
2116             set
2117             {
2118                 SetValue(PixelSizeProperty, value);
2119                 NotifyPropertyChanged();
2120             }
2121         }
2122
2123         /// <summary>
2124         /// The line count of the text.
2125         /// </summary>
2126         /// <since_tizen> 3 </since_tizen>
2127         public int LineCount
2128         {
2129             get
2130             {
2131                 int temp = 0;
2132                 GetProperty(TextEditor.Property.LINE_COUNT).Get(out temp);
2133                 return temp;
2134             }
2135         }
2136
2137         /// <summary>
2138         /// The text to display when the TextEditor is empty and inactive.
2139         /// </summary>
2140         /// <since_tizen> 3 </since_tizen>
2141         public string PlaceholderText
2142         {
2143             get
2144             {
2145                 return (string)GetValue(PlaceholderTextProperty);
2146             }
2147             set
2148             {
2149                 SetValue(PlaceholderTextProperty, value);
2150                 NotifyPropertyChanged();
2151             }
2152         }
2153
2154         /// <summary>
2155         /// The Placeholder text color.
2156         /// </summary>
2157         /// <since_tizen> 3 </since_tizen>
2158         public Color PlaceholderTextColor
2159         {
2160             get
2161             {
2162                 return (Color)GetValue(PlaceholderTextColorProperty);
2163             }
2164             set
2165             {
2166                 SetValue(PlaceholderTextColorProperty, value);
2167                 NotifyPropertyChanged();
2168             }
2169         }
2170
2171         /// <summary>
2172         /// The EnableSelection property.
2173         /// </summary>
2174         /// <since_tizen> 3 </since_tizen>
2175         public bool EnableSelection
2176         {
2177             get
2178             {
2179                 return (bool)GetValue(EnableSelectionProperty);
2180             }
2181             set
2182             {
2183                 SetValue(EnableSelectionProperty, value);
2184                 NotifyPropertyChanged();
2185             }
2186         }
2187
2188         /// <summary>
2189         /// The Placeholder property.
2190         /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
2191         /// </summary>
2192         /// <example>
2193         /// The following example demonstrates how to set the placeholder property.
2194         /// <code>
2195         /// PropertyMap propertyMap = new PropertyMap();
2196         /// propertyMap.Add("text", new PropertyValue("Setting Placeholder Text"));
2197         /// propertyMap.Add("textFocused", new PropertyValue("Setting Placeholder Text Focused"));
2198         /// propertyMap.Add("color", new PropertyValue(Color.Red));
2199         /// propertyMap.Add("fontFamily", new PropertyValue("Arial"));
2200         /// propertyMap.Add("pointSize", new PropertyValue(12.0f));
2201         ///
2202         /// PropertyMap fontStyleMap = new PropertyMap();
2203         /// fontStyleMap.Add("weight", new PropertyValue("bold"));
2204         /// fontStyleMap.Add("width", new PropertyValue("condensed"));
2205         /// fontStyleMap.Add("slant", new PropertyValue("italic"));
2206         /// propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap));
2207         ///
2208         /// TextEditor editor = new TextEditor();
2209         /// editor.Placeholder = propertyMap;
2210         /// </code>
2211         /// </example>
2212         /// <since_tizen> 3 </since_tizen>
2213         public Tizen.NUI.PropertyMap Placeholder
2214         {
2215             get
2216             {
2217                 return (PropertyMap)GetValue(PlaceholderProperty);
2218             }
2219             set
2220             {
2221                 SetValue(PlaceholderProperty, value);
2222                 NotifyPropertyChanged();
2223             }
2224         }
2225
2226         /// <summary>
2227         /// The LineWrapMode property.<br />
2228         /// The line wrap mode when the text lines over the layout width.<br />
2229         /// </summary>
2230         /// <since_tizen> 4 </since_tizen>
2231         public LineWrapMode LineWrapMode
2232         {
2233             get
2234             {
2235                 return (LineWrapMode)GetValue(LineWrapModeProperty);
2236             }
2237             set
2238             {
2239                 SetValue(LineWrapModeProperty, value);
2240                 NotifyPropertyChanged();
2241             }
2242         }
2243
2244         /// <summary>
2245         /// Enables Text selection using Shift key.
2246         /// </summary>
2247         /// <since_tizen> 5 </since_tizen>
2248         /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
2249         [EditorBrowsable(EditorBrowsableState.Never)]
2250         public bool EnableShiftSelection
2251         {
2252             get
2253             {
2254                 return (bool)GetValue(EnableShiftSelectionProperty);
2255             }
2256             set
2257             {
2258                 SetValue(EnableShiftSelectionProperty, value);
2259                 NotifyPropertyChanged();
2260             }
2261         }
2262
2263
2264     }
2265 }