2 * Copyright(c) 2018 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 extern alias TizenSystemSettings;
19 using TizenSystemSettings.Tizen.System;
22 using System.Runtime.InteropServices;
23 using System.Globalization;
24 using System.ComponentModel;
25 using Tizen.NUI.Binding;
27 namespace Tizen.NUI.BaseComponents
30 /// A control which provides a multi-line editable text editor.
32 /// <since_tizen> 3 </since_tizen>
33 [ContentProperty("Text")]
34 public class TextEditor : View
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) =>
40 var textEditor = (TextEditor)bindable;
43 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.TEXT, new Tizen.NUI.PropertyValue((string)newValue));
46 defaultValueCreator:(bindable) =>
48 var textEditor = (TextEditor)bindable;
50 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.TEXT).Get(out temp);
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) =>
57 var textEditor = (TextEditor)bindable;
60 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.TEXT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
63 defaultValueCreator:(bindable) =>
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);
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) =>
74 var textEditor = (TextEditor)bindable;
77 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.FONT_FAMILY, new Tizen.NUI.PropertyValue((string)newValue));
80 defaultValueCreator:(bindable) =>
82 var textEditor = (TextEditor)bindable;
84 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.FONT_FAMILY).Get(out temp);
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) =>
91 var textEditor = (TextEditor)bindable;
94 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.FONT_STYLE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
97 defaultValueCreator:(bindable) =>
99 var textEditor = (TextEditor)bindable;
100 PropertyMap temp = new PropertyMap();
101 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.FONT_STYLE).Get(temp);
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) =>
108 var textEditor = (TextEditor)bindable;
109 if (newValue != null)
111 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.POINT_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
114 defaultValueCreator:(bindable) =>
116 var textEditor = (TextEditor)bindable;
118 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.POINT_SIZE).Get(out temp);
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) =>
125 var textEditor = (TextEditor)bindable;
126 if (newValue != null)
128 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue((int)newValue));
131 defaultValueCreator:(bindable) =>
133 var textEditor = (TextEditor)bindable;
135 if (Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.HORIZONTAL_ALIGNMENT).Get(out temp) == false)
137 NUILog.Error("HorizontalAlignment get error!");
143 return HorizontalAlignment.Begin;
145 return HorizontalAlignment.Center;
147 return HorizontalAlignment.End;
149 return HorizontalAlignment.Begin;
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) =>
156 var textEditor = (TextEditor)bindable;
157 if (newValue != null)
159 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue((float)newValue));
162 defaultValueCreator:(bindable) =>
164 var textEditor = (TextEditor)bindable;
166 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_THRESHOLD).Get(out temp);
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) =>
173 var textEditor = (TextEditor)bindable;
174 if (newValue != null)
176 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue((float)newValue));
179 defaultValueCreator:(bindable) =>
181 var textEditor = (TextEditor)bindable;
183 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_SPEED).Get(out temp);
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) =>
190 var textEditor = (TextEditor)bindable;
191 if (newValue != null)
193 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
196 defaultValueCreator:(bindable) =>
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);
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) =>
207 var textEditor = (TextEditor)bindable;
208 if (newValue != null)
210 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
213 defaultValueCreator:(bindable) =>
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);
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) =>
224 var textEditor = (TextEditor)bindable;
225 if (newValue != null)
227 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue((bool)newValue));
230 defaultValueCreator:(bindable) =>
232 var textEditor = (TextEditor)bindable;
234 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_CURSOR_BLINK).Get(out temp);
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) =>
241 var textEditor = (TextEditor)bindable;
242 if (newValue != null)
244 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue((float)newValue));
247 defaultValueCreator:(bindable) =>
249 var textEditor = (TextEditor)bindable;
251 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.CURSOR_BLINK_INTERVAL).Get(out temp);
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) =>
258 var textEditor = (TextEditor)bindable;
259 if (newValue != null)
261 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.CURSOR_BLINK_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
264 defaultValueCreator:(bindable) =>
266 var textEditor = (TextEditor)bindable;
268 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.CURSOR_BLINK_DURATION).Get(out temp);
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) =>
275 var textEditor = (TextEditor)bindable;
276 if (newValue != null)
278 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue((int)newValue));
281 defaultValueCreator:(bindable) =>
283 var textEditor = (TextEditor)bindable;
285 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.CURSOR_WIDTH).Get(out temp);
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) =>
292 var textEditor = (TextEditor)bindable;
293 if (newValue != null)
295 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
298 defaultValueCreator:(bindable) =>
300 var textEditor = (TextEditor)bindable;
302 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.GRAB_HANDLE_IMAGE).Get(out temp);
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) =>
309 var textEditor = (TextEditor)bindable;
310 if (newValue != null)
312 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
315 defaultValueCreator:(bindable) =>
317 var textEditor = (TextEditor)bindable;
319 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);
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) =>
326 var textEditor = (TextEditor)bindable;
327 if (newValue != null)
329 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
332 defaultValueCreator:(bindable) =>
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);
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) =>
343 var textEditor = (TextEditor)bindable;
344 if (newValue != null)
346 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
349 defaultValueCreator:(bindable) =>
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);
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) =>
360 var textEditor = (TextEditor)bindable;
361 if (newValue != null)
363 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
366 defaultValueCreator:(bindable) =>
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);
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) =>
377 var textEditor = (TextEditor)bindable;
378 if (newValue != null)
380 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
383 defaultValueCreator:(bindable) =>
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);
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) =>
394 var textEditor = (TextEditor)bindable;
395 if (newValue != null)
397 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
400 defaultValueCreator:(bindable) =>
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);
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) =>
411 var textEditor = (TextEditor)bindable;
412 if (newValue != null)
414 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
417 defaultValueCreator:(bindable) =>
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);
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) =>
428 var textEditor = (TextEditor)bindable;
429 if (newValue != null)
431 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
434 defaultValueCreator:(bindable) =>
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);
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) =>
445 var textEditor = (TextEditor)bindable;
446 if (newValue != null)
448 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue((Rectangle)newValue));
451 defaultValueCreator:(bindable) =>
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);
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) =>
462 var textEditor = (TextEditor)bindable;
463 if (newValue != null)
465 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue((bool)newValue));
468 defaultValueCreator:(bindable) =>
470 var textEditor = (TextEditor)bindable;
472 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_MARKUP).Get(out temp);
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) =>
479 var textEditor = (TextEditor)bindable;
480 if (newValue != null)
482 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
485 defaultValueCreator:(bindable) =>
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);
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) =>
496 var textEditor = (TextEditor)bindable;
497 if (newValue != null)
499 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue((string)newValue));
502 defaultValueCreator:(bindable) =>
504 var textEditor = (TextEditor)bindable;
506 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_FONT_FAMILY).Get(out temp);
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) =>
513 var textEditor = (TextEditor)bindable;
514 if (newValue != null)
516 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
519 defaultValueCreator:(bindable) =>
521 var textEditor = (TextEditor)bindable;
522 PropertyMap temp = new PropertyMap();
523 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_FONT_STYLE).Get(temp);
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) =>
530 var textEditor = (TextEditor)bindable;
531 if (newValue != null)
533 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
536 defaultValueCreator:(bindable) =>
538 var textEditor = (TextEditor)bindable;
540 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_POINT_SIZE).Get(out temp);
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) =>
547 var textEditor = (TextEditor)bindable;
548 if (newValue != null)
550 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.LINE_SPACING, new Tizen.NUI.PropertyValue((float)newValue));
553 defaultValueCreator:(bindable) =>
555 var textEditor = (TextEditor)bindable;
557 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.LINE_SPACING).Get(out temp);
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) =>
564 var textEditor = (TextEditor)bindable;
565 if (newValue != null)
567 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_LINE_SPACING, new Tizen.NUI.PropertyValue((float)newValue));
570 defaultValueCreator:(bindable) =>
572 var textEditor = (TextEditor)bindable;
574 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_LINE_SPACING).Get(out temp);
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) =>
581 var textEditor = (TextEditor)bindable;
582 if (newValue != null)
584 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.UNDERLINE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
587 defaultValueCreator:(bindable) =>
589 var textEditor = (TextEditor)bindable;
590 PropertyMap temp = new PropertyMap();
591 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.UNDERLINE).Get(temp);
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) =>
598 var textEditor = (TextEditor)bindable;
599 if (newValue != null)
601 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue((string)newValue));
604 defaultValueCreator:(bindable) =>
606 var textEditor = (TextEditor)bindable;
608 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_UNDERLINE).Get(out temp);
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) =>
615 var textEditor = (TextEditor)bindable;
616 if (newValue != null)
618 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SHADOW, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
621 defaultValueCreator:(bindable) =>
623 var textEditor = (TextEditor)bindable;
624 PropertyMap temp = new PropertyMap();
625 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SHADOW).Get(temp);
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) =>
632 var textEditor = (TextEditor)bindable;
633 if (newValue != null)
635 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue((string)newValue));
638 defaultValueCreator:(bindable) =>
640 var textEditor = (TextEditor)bindable;
642 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_SHADOW).Get(out temp);
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) =>
649 var textEditor = (TextEditor)bindable;
650 if (newValue != null)
652 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.EMBOSS, new Tizen.NUI.PropertyValue((string)newValue));
655 defaultValueCreator:(bindable) =>
657 var textEditor = (TextEditor)bindable;
659 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.EMBOSS).Get(out temp);
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) =>
666 var textEditor = (TextEditor)bindable;
667 if (newValue != null)
669 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue((string)newValue));
672 defaultValueCreator:(bindable) =>
674 var textEditor = (TextEditor)bindable;
676 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_EMBOSS).Get(out temp);
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) =>
683 var textEditor = (TextEditor)bindable;
684 if (newValue != null)
686 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.OUTLINE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
689 defaultValueCreator:(bindable) =>
691 var textEditor = (TextEditor)bindable;
692 PropertyMap temp = new PropertyMap();
693 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.OUTLINE).Get(temp);
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) =>
700 var textEditor = (TextEditor)bindable;
701 if (newValue != null)
703 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue((string)newValue));
706 defaultValueCreator:(bindable) =>
708 var textEditor = (TextEditor)bindable;
710 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_OUTLINE).Get(out temp);
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) =>
717 var textEditor = (TextEditor)bindable;
718 if (newValue != null)
720 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SMOOTH_SCROLL, new Tizen.NUI.PropertyValue((bool)newValue));
723 defaultValueCreator:(bindable) =>
725 var textEditor = (TextEditor)bindable;
727 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SMOOTH_SCROLL).Get(out temp);
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) =>
734 var textEditor = (TextEditor)bindable;
735 if (newValue != null)
737 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SMOOTH_SCROLL_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
740 defaultValueCreator:(bindable) =>
742 var textEditor = (TextEditor)bindable;
744 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SMOOTH_SCROLL_DURATION).Get(out temp);
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) =>
751 var textEditor = (TextEditor)bindable;
752 if (newValue != null)
754 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_SCROLL_BAR, new Tizen.NUI.PropertyValue((bool)newValue));
757 defaultValueCreator:(bindable) =>
759 var textEditor = (TextEditor)bindable;
761 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_SCROLL_BAR).Get(out temp);
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) =>
768 var textEditor = (TextEditor)bindable;
769 if (newValue != null)
771 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_BAR_SHOW_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
774 defaultValueCreator:(bindable) =>
776 var textEditor = (TextEditor)bindable;
778 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_BAR_SHOW_DURATION).Get(out temp);
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) =>
785 var textEditor = (TextEditor)bindable;
786 if (newValue != null)
788 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_BAR_FADE_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
791 defaultValueCreator:(bindable) =>
793 var textEditor = (TextEditor)bindable;
795 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_BAR_FADE_DURATION).Get(out temp);
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) =>
802 var textEditor = (TextEditor)bindable;
803 if (newValue != null)
805 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.PIXEL_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
808 defaultValueCreator:(bindable) =>
810 var textEditor = (TextEditor)bindable;
812 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.PIXEL_SIZE).Get(out temp);
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) =>
819 var textEditor = (TextEditor)bindable;
820 if (newValue != null)
822 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.PLACEHOLDER_TEXT, new Tizen.NUI.PropertyValue((string)newValue));
825 defaultValueCreator:(bindable) =>
827 var textEditor = (TextEditor)bindable;
829 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.PLACEHOLDER_TEXT).Get(out temp);
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) =>
836 var textEditor = (TextEditor)bindable;
837 if (newValue != null)
839 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.PLACEHOLDER_TEXT_COLOR, new Tizen.NUI.PropertyValue((Color)newValue));
842 defaultValueCreator:(bindable) =>
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);
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) =>
853 var textEditor = (TextEditor)bindable;
854 if (newValue != null)
856 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_SELECTION, new Tizen.NUI.PropertyValue((bool)newValue));
859 defaultValueCreator:(bindable) =>
861 var textEditor = (TextEditor)bindable;
863 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_SELECTION).Get(out temp);
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) =>
870 var textEditor = (TextEditor)bindable;
871 if (newValue != null)
873 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.PLACEHOLDER, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
876 defaultValueCreator:(bindable) =>
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);
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) =>
887 var textEditor = (TextEditor)bindable;
888 if (newValue != null)
890 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.LINE_WRAP_MODE, new Tizen.NUI.PropertyValue((int)newValue));
893 defaultValueCreator:(bindable) =>
895 var textEditor = (TextEditor)bindable;
897 if(Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.LINE_WRAP_MODE).Get(out temp) == false)
899 NUILog.Error("LineWrapMode get error!");
901 return (LineWrapMode)temp;
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) =>
907 var textEditor = (TextEditor)bindable;
908 if (newValue != null)
910 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_SHIFT_SELECTION, new Tizen.NUI.PropertyValue((bool)newValue));
913 defaultValueCreator:(bindable) =>
915 var textEditor = (TextEditor)bindable;
916 //textEditor.mShiftSelectionFlag(true);
918 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_SHIFT_SELECTION).Get(out temp);
922 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
923 private string textEditorTextSid = null;
924 private string textEditorPlaceHolderTextSid = null;
925 private bool systemlangTextFlag = false;
927 internal TextEditor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextEditor_SWIGUpcast(cPtr), cMemoryOwn)
929 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
932 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextEditor obj)
934 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
940 /// <since_tizen> 3 </since_tizen>
941 protected override void Dispose(DisposeTypes type)
948 if(type == DisposeTypes.Explicit)
951 //Release your own managed resources here.
952 //You should release all of your own disposable objects here.
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.
959 if (this != null && _textEditorTextChangedCallbackDelegate != null)
961 TextChangedSignal().Disconnect(_textEditorTextChangedCallbackDelegate);
964 if (swigCPtr.Handle != global::System.IntPtr.Zero)
969 NDalicPINVOKE.delete_TextEditor(swigCPtr);
971 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
978 /// Event arguments that passed via the TextChanged signal.
980 /// <since_tizen> 3 </since_tizen>
981 public class TextChangedEventArgs : EventArgs
983 private TextEditor _textEditor;
986 /// TextEditor - is the texteditor control which has the text contents changed.
988 /// <since_tizen> 3 </since_tizen>
989 public TextEditor TextEditor
1002 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1003 private delegate void TextChangedCallbackDelegate(IntPtr textEditor);
1004 private EventHandler<TextChangedEventArgs> _textEditorTextChangedEventHandler;
1005 private TextChangedCallbackDelegate _textEditorTextChangedCallbackDelegate;
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 />
1011 /// <since_tizen> 3 </since_tizen>
1012 public event EventHandler<TextChangedEventArgs> TextChanged
1016 if (_textEditorTextChangedEventHandler == null)
1018 _textEditorTextChangedCallbackDelegate = (OnTextChanged);
1019 TextChangedSignal().Connect(_textEditorTextChangedCallbackDelegate);
1021 _textEditorTextChangedEventHandler += value;
1025 _textEditorTextChangedEventHandler -= value;
1026 if (_textEditorTextChangedEventHandler == null && TextChangedSignal().Empty() == false)
1028 TextChangedSignal().Disconnect(_textEditorTextChangedCallbackDelegate);
1033 private void OnTextChanged(IntPtr textEditor)
1035 TextChangedEventArgs e = new TextChangedEventArgs();
1037 // Populate all members of "e" (TextChangedEventArgs) with real data
1038 e.TextEditor = Registry.GetManagedBaseHandleFromNativePtr(textEditor) as TextEditor;
1040 if (_textEditorTextChangedEventHandler != null)
1042 //here we send all data to user event handlers
1043 _textEditorTextChangedEventHandler(this, e);
1049 /// Event arguments that passed via the ScrollStateChanged signal.
1051 /// <since_tizen> 3 </since_tizen>
1052 public class ScrollStateChangedEventArgs : EventArgs
1054 private TextEditor _textEditor;
1055 private ScrollState _scrollState;
1058 /// TextEditor - is the texteditor control which has the scroll state changed.
1060 /// <since_tizen> 3 </since_tizen>
1061 public TextEditor TextEditor
1069 _textEditor = value;
1074 /// ScrollState - is the texteditor control scroll state.
1076 /// <since_tizen> 3 </since_tizen>
1077 public ScrollState ScrollState
1081 return _scrollState;
1085 _scrollState = value;
1090 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1091 private delegate void ScrollStateChangedCallbackDelegate(IntPtr textEditor, ScrollState state);
1092 private EventHandler<ScrollStateChangedEventArgs> _textEditorScrollStateChangedEventHandler;
1093 private ScrollStateChangedCallbackDelegate _textEditorScrollStateChangedCallbackDelegate;
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 />
1099 /// <since_tizen> 3 </since_tizen>
1100 public event EventHandler<ScrollStateChangedEventArgs> ScrollStateChanged
1104 if (_textEditorScrollStateChangedEventHandler == null)
1106 _textEditorScrollStateChangedCallbackDelegate = OnScrollStateChanged;
1107 ScrollStateChangedSignal(this).Connect(_textEditorScrollStateChangedCallbackDelegate);
1109 _textEditorScrollStateChangedEventHandler += value;
1113 _textEditorScrollStateChangedEventHandler -= value;
1114 if (_textEditorScrollStateChangedEventHandler == null && ScrollStateChangedSignal(this).Empty() == false)
1116 ScrollStateChangedSignal(this).Disconnect(_textEditorScrollStateChangedCallbackDelegate);
1121 private void OnScrollStateChanged(IntPtr textEditor, ScrollState state)
1123 ScrollStateChangedEventArgs e = new ScrollStateChangedEventArgs();
1125 if (textEditor != null)
1127 // Populate all members of "e" (ScrollStateChangedEventArgs) with real data
1128 e.TextEditor = Registry.GetManagedBaseHandleFromNativePtr(textEditor) as TextEditor;
1129 e.ScrollState = state;
1132 if (_textEditorScrollStateChangedEventHandler != null)
1134 //here we send all data to user event handlers
1135 _textEditorScrollStateChangedEventHandler(this, e);
1139 internal new class Property
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();
1196 internal class InputStyle
1202 FontFamily = 0x0002,
1205 LineSpacing = 0x0010,
1214 /// Creates the TextEditor control.
1216 /// <since_tizen> 3 </since_tizen>
1217 public TextEditor() : this(NDalicPINVOKE.TextEditor_New(), true)
1219 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1220 this.TextChanged += (obj, e) =>
1222 this.Text = this.Text;
1226 internal TextEditor(TextEditor handle) : this(NDalicPINVOKE.new_TextEditor__SWIG_1(TextEditor.getCPtr(handle)), true)
1228 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1232 /// Get the InputMethodContext instance.
1234 /// <returns>The InputMethodContext instance.</returns>
1235 public InputMethodContext GetInputMethodContext() {
1236 InputMethodContext ret = new InputMethodContext(NDalicPINVOKE.TextEditor_GetInputMethodContext(swigCPtr), true);
1237 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1241 internal TextEditorSignal TextChangedSignal()
1243 TextEditorSignal ret = new TextEditorSignal(NDalicPINVOKE.TextEditor_TextChangedSignal(swigCPtr), false);
1244 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1248 internal ScrollStateChangedSignal ScrollStateChangedSignal(TextEditor textEditor)
1250 ScrollStateChangedSignal ret = new ScrollStateChangedSignal(NDalicManualPINVOKE.TextEditor_ScrollStateChangedSignal(TextEditor.getCPtr(textEditor)), false);
1251 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1255 internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t InputStyleChangedSignal()
1257 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);
1258 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1263 /// The TranslatableText property.<br />
1264 /// The text can set the SID value.<br />
1266 /// <exception cref='ArgumentNullException'>
1267 /// ResourceManager about multilingual is null.
1269 /// <since_tizen> 4 </since_tizen>
1270 public string TranslatableText
1274 return textEditorTextSid;
1278 if (NUIApplication.MultilingualResourceManager == null)
1280 throw new ArgumentNullException("ResourceManager about multilingual is null");
1282 textEditorTextSid = value;
1283 Text = SetTranslatable(textEditorTextSid);
1284 NotifyPropertyChanged();
1288 /// The TranslatablePlaceholderText property.<br />
1289 /// The text can set the SID value.<br />
1291 /// <exception cref='ArgumentNullException'>
1292 /// ResourceManager about multilingual is null.
1294 /// <since_tizen> 4 </since_tizen>
1295 public string TranslatablePlaceholderText
1299 return textEditorPlaceHolderTextSid;
1303 if (NUIApplication.MultilingualResourceManager == null)
1305 throw new ArgumentNullException("ResourceManager about multilingual is null");
1307 textEditorPlaceHolderTextSid = value;
1308 PlaceholderText = SetTranslatable(textEditorPlaceHolderTextSid);
1309 NotifyPropertyChanged();
1312 private string SetTranslatable(string textEditorSid)
1314 string translatableText = null;
1315 translatableText = NUIApplication.MultilingualResourceManager?.GetString(textEditorSid, new CultureInfo(SystemSettings.LocaleLanguage.Replace("_", "-")));
1316 if (translatableText != null)
1318 if (systemlangTextFlag == false)
1320 SystemSettings.LocaleLanguageChanged += new WeakEventHandler<LocaleLanguageChangedEventArgs>(SystemSettings_LocaleLanguageChanged).Handler;
1321 systemlangTextFlag = true;
1323 return translatableText;
1327 translatableText = "";
1328 return translatableText;
1331 private void SystemSettings_LocaleLanguageChanged(object sender, LocaleLanguageChangedEventArgs e)
1333 if (textEditorTextSid != null)
1335 Text = NUIApplication.MultilingualResourceManager?.GetString(textEditorTextSid, new CultureInfo(e.Value.Replace("_", "-")));
1337 if (textEditorPlaceHolderTextSid != null)
1339 PlaceholderText = NUIApplication.MultilingualResourceManager?.GetString(textEditorPlaceHolderTextSid, new CultureInfo(e.Value.Replace("_", "-")));
1343 /// The Text property.
1345 /// <since_tizen> 3 </since_tizen>
1350 return (string)GetValue(TextProperty);
1354 SetValueAndForceSendChangeSignal(TextProperty, value);
1355 NotifyPropertyChanged();
1360 /// The TextColor property.
1362 /// <since_tizen> 3 </since_tizen>
1363 public Vector4 TextColor
1367 return (Vector4)GetValue(TextColorProperty);
1371 SetValue(TextColorProperty, value);
1372 NotifyPropertyChanged();
1377 /// The FontFamily property.
1379 /// <since_tizen> 3 </since_tizen>
1380 public string FontFamily
1384 return (string)GetValue(FontFamilyProperty);
1388 SetValue(FontFamilyProperty, value);
1389 NotifyPropertyChanged();
1394 /// The FontStyle property.
1396 /// <since_tizen> 3 </since_tizen>
1397 public PropertyMap FontStyle
1401 return (PropertyMap)GetValue(FontStyleProperty);
1405 SetValue(FontStyleProperty, value);
1406 NotifyPropertyChanged();
1411 /// The PointSize property.
1413 /// <since_tizen> 3 </since_tizen>
1414 public float PointSize
1418 return (float)GetValue(PointSizeProperty);
1422 SetValue(PointSizeProperty, value);
1423 NotifyPropertyChanged();
1428 /// The HorizontalAlignment property.
1430 /// <since_tizen> 3 </since_tizen>
1431 public HorizontalAlignment HorizontalAlignment
1435 return (HorizontalAlignment)GetValue(HorizontalAlignmentProperty);
1439 SetValue(HorizontalAlignmentProperty, value);
1440 NotifyPropertyChanged();
1445 /// The ScrollThreshold property.
1447 /// <since_tizen> 3 </since_tizen>
1448 public float ScrollThreshold
1452 return (float)GetValue(ScrollThresholdProperty);
1456 SetValue(ScrollThresholdProperty, value);
1457 NotifyPropertyChanged();
1462 /// The ScrollSpeed property.
1464 /// <since_tizen> 3 </since_tizen>
1465 public float ScrollSpeed
1469 return (float)GetValue(ScrollSpeedProperty);
1473 SetValue(ScrollSpeedProperty, value);
1474 NotifyPropertyChanged();
1479 /// The PrimaryCursorColor property.
1481 /// <since_tizen> 3 </since_tizen>
1482 public Vector4 PrimaryCursorColor
1486 return (Vector4)GetValue(PrimaryCursorColorProperty);
1490 SetValue(PrimaryCursorColorProperty, value);
1491 NotifyPropertyChanged();
1496 /// The SecondaryCursorColor property.
1498 /// <since_tizen> 3 </since_tizen>
1499 public Vector4 SecondaryCursorColor
1503 return (Vector4)GetValue(SecondaryCursorColorProperty);
1507 SetValue(SecondaryCursorColorProperty, value);
1508 NotifyPropertyChanged();
1513 /// The EnableCursorBlink property.
1515 /// <since_tizen> 3 </since_tizen>
1516 public bool EnableCursorBlink
1520 return (bool)GetValue(EnableCursorBlinkProperty);
1524 SetValue(EnableCursorBlinkProperty, value);
1525 NotifyPropertyChanged();
1530 /// The CursorBlinkInterval property.
1532 /// <since_tizen> 3 </since_tizen>
1533 public float CursorBlinkInterval
1537 return (float)GetValue(CursorBlinkIntervalProperty);
1541 SetValue(CursorBlinkIntervalProperty, value);
1542 NotifyPropertyChanged();
1547 /// The CursorBlinkDuration property.
1549 /// <since_tizen> 3 </since_tizen>
1550 public float CursorBlinkDuration
1554 return (float)GetValue(CursorBlinkDurationProperty);
1558 SetValue(CursorBlinkDurationProperty, value);
1559 NotifyPropertyChanged();
1564 /// The CursorWidth property.
1566 /// <since_tizen> 3 </since_tizen>
1567 public int CursorWidth
1571 return (int)GetValue(CursorWidthProperty);
1575 SetValue(CursorWidthProperty, value);
1576 NotifyPropertyChanged();
1581 /// The GrabHandleImage property.
1583 /// <since_tizen> 3 </since_tizen>
1584 public string GrabHandleImage
1588 return (string)GetValue(GrabHandleImageProperty);
1592 SetValue(GrabHandleImageProperty, value);
1593 NotifyPropertyChanged();
1598 /// The GrabHandlePressedImage property.
1600 /// <since_tizen> 3 </since_tizen>
1601 public string GrabHandlePressedImage
1605 return (string)GetValue(GrabHandlePressedImageProperty);
1609 SetValue(GrabHandlePressedImageProperty, value);
1610 NotifyPropertyChanged();
1615 /// The SelectionHandleImageLeft property.
1617 /// <since_tizen> 3 </since_tizen>
1618 public PropertyMap SelectionHandleImageLeft
1622 return (PropertyMap)GetValue(SelectionHandleImageLeftProperty);
1626 SetValue(SelectionHandleImageLeftProperty, value);
1627 NotifyPropertyChanged();
1632 /// The SelectionHandleImageRight property.
1634 /// <since_tizen> 3 </since_tizen>
1635 public PropertyMap SelectionHandleImageRight
1639 return (PropertyMap)GetValue(SelectionHandleImageRightProperty);
1643 SetValue(SelectionHandleImageRightProperty, value);
1644 NotifyPropertyChanged();
1649 /// The SelectionHandlePressedImageLeft property.
1651 /// <since_tizen> 3 </since_tizen>
1652 public PropertyMap SelectionHandlePressedImageLeft
1656 return (PropertyMap)GetValue(SelectionHandlePressedImageLeftProperty);
1660 SetValue(SelectionHandlePressedImageLeftProperty, value);
1661 NotifyPropertyChanged();
1666 /// The SelectionHandlePressedImageRight property.
1668 /// <since_tizen> 3 </since_tizen>
1669 public PropertyMap SelectionHandlePressedImageRight
1673 return (PropertyMap)GetValue(SelectionHandlePressedImageRightProperty);
1677 SetValue(SelectionHandlePressedImageRightProperty, value);
1678 NotifyPropertyChanged();
1683 /// The SelectionHandleMarkerImageLeft property.
1685 /// <since_tizen> 3 </since_tizen>
1686 public PropertyMap SelectionHandleMarkerImageLeft
1690 return (PropertyMap)GetValue(SelectionHandleMarkerImageLeftProperty);
1694 SetValue(SelectionHandleMarkerImageLeftProperty, value);
1695 NotifyPropertyChanged();
1700 /// The SelectionHandleMarkerImageRight property.
1702 /// <since_tizen> 3 </since_tizen>
1703 public PropertyMap SelectionHandleMarkerImageRight
1707 return (PropertyMap)GetValue(SelectionHandleMarkerImageRightProperty);
1711 SetValue(SelectionHandleMarkerImageRightProperty, value);
1712 NotifyPropertyChanged();
1717 /// The SelectionHighlightColor property.
1719 /// <since_tizen> 3 </since_tizen>
1720 public Vector4 SelectionHighlightColor
1724 return (Vector4)GetValue(SelectionHighlightColorProperty);
1728 SetValue(SelectionHighlightColorProperty, value);
1729 NotifyPropertyChanged();
1734 /// The DecorationBoundingBox property.
1736 /// <since_tizen> 3 </since_tizen>
1737 public Rectangle DecorationBoundingBox
1741 return (Rectangle)GetValue(DecorationBoundingBoxProperty);
1745 SetValue(DecorationBoundingBoxProperty, value);
1746 NotifyPropertyChanged();
1751 /// The EnableMarkup property.
1753 /// <since_tizen> 3 </since_tizen>
1754 public bool EnableMarkup
1758 return (bool)GetValue(EnableMarkupProperty);
1762 SetValue(EnableMarkupProperty, value);
1763 NotifyPropertyChanged();
1768 /// The InputColor property.
1770 /// <since_tizen> 3 </since_tizen>
1771 public Vector4 InputColor
1775 return (Vector4)GetValue(InputColorProperty);
1779 SetValue(InputColorProperty, value);
1780 NotifyPropertyChanged();
1785 /// The InputFontFamily property.
1787 /// <since_tizen> 3 </since_tizen>
1788 public string InputFontFamily
1792 return (string)GetValue(InputFontFamilyProperty);
1796 SetValue(InputFontFamilyProperty, value);
1797 NotifyPropertyChanged();
1802 /// The InputFontStyle property.
1804 /// <since_tizen> 3 </since_tizen>
1805 public PropertyMap InputFontStyle
1809 return (PropertyMap)GetValue(InputFontStyleProperty);
1813 SetValue(InputFontStyleProperty, value);
1814 NotifyPropertyChanged();
1819 /// The InputPointSize property.
1821 /// <since_tizen> 3 </since_tizen>
1822 public float InputPointSize
1826 return (float)GetValue(InputPointSizeProperty);
1830 SetValue(InputPointSizeProperty, value);
1831 NotifyPropertyChanged();
1836 /// The LineSpacing property.
1838 /// <since_tizen> 3 </since_tizen>
1839 public float LineSpacing
1843 return (float)GetValue(LineSpacingProperty);
1847 SetValue(LineSpacingProperty, value);
1848 NotifyPropertyChanged();
1853 /// The InputLineSpacing property.
1855 /// <since_tizen> 3 </since_tizen>
1856 public float InputLineSpacing
1860 return (float)GetValue(InputLineSpacingProperty);
1864 SetValue(InputLineSpacingProperty, value);
1865 NotifyPropertyChanged();
1870 /// The Underline property.
1872 /// <since_tizen> 3 </since_tizen>
1873 public PropertyMap Underline
1877 return (PropertyMap)GetValue(UnderlineProperty);
1881 SetValue(UnderlineProperty, value);
1882 NotifyPropertyChanged();
1887 /// The InputUnderline property.
1889 /// <since_tizen> 3 </since_tizen>
1890 public string InputUnderline
1894 return (string)GetValue(InputUnderlineProperty);
1898 SetValue(InputUnderlineProperty, value);
1899 NotifyPropertyChanged();
1904 /// The Shadow property.
1906 /// <since_tizen> 3 </since_tizen>
1907 public PropertyMap Shadow
1911 return (PropertyMap)GetValue(ShadowProperty);
1915 SetValue(ShadowProperty, value);
1916 NotifyPropertyChanged();
1921 /// The InputShadow property.
1923 /// <since_tizen> 3 </since_tizen>
1924 public string InputShadow
1928 return (string)GetValue(InputShadowProperty);
1932 SetValue(InputShadowProperty, value);
1933 NotifyPropertyChanged();
1938 /// The Emboss property.
1940 /// <since_tizen> 3 </since_tizen>
1941 public string Emboss
1945 return (string)GetValue(EmbossProperty);
1949 SetValue(EmbossProperty, value);
1950 NotifyPropertyChanged();
1955 /// The InputEmboss property.
1957 /// <since_tizen> 3 </since_tizen>
1958 public string InputEmboss
1962 return (string)GetValue(InputEmbossProperty);
1966 SetValue(InputEmbossProperty, value);
1967 NotifyPropertyChanged();
1972 /// The Outline property.
1974 /// <since_tizen> 3 </since_tizen>
1975 public PropertyMap Outline
1979 return (PropertyMap)GetValue(OutlineProperty);
1983 SetValue(OutlineProperty, value);
1984 NotifyPropertyChanged();
1989 /// The InputOutline property.
1991 /// <since_tizen> 3 </since_tizen>
1992 public string InputOutline
1996 return (string)GetValue(InputOutlineProperty);
2000 SetValue(InputOutlineProperty, value);
2001 NotifyPropertyChanged();
2006 /// The SmoothScroll property.
2008 /// <since_tizen> 3 </since_tizen>
2009 public bool SmoothScroll
2013 return (bool)GetValue(SmoothScrollProperty);
2017 SetValue(SmoothScrollProperty, value);
2018 NotifyPropertyChanged();
2023 /// The SmoothScrollDuration property.
2025 /// <since_tizen> 3 </since_tizen>
2026 public float SmoothScrollDuration
2030 return (float)GetValue(SmoothScrollDurationProperty);
2034 SetValue(SmoothScrollDurationProperty, value);
2035 NotifyPropertyChanged();
2040 /// The EnableScrollBar property.
2042 /// <since_tizen> 3 </since_tizen>
2043 public bool EnableScrollBar
2047 return (bool)GetValue(EnableScrollBarProperty);
2051 SetValue(EnableScrollBarProperty, value);
2052 NotifyPropertyChanged();
2057 /// The ScrollBarShowDuration property.
2059 /// <since_tizen> 3 </since_tizen>
2060 public float ScrollBarShowDuration
2064 return (float)GetValue(ScrollBarShowDurationProperty);
2068 SetValue(ScrollBarShowDurationProperty, value);
2069 NotifyPropertyChanged();
2074 /// The ScrollBarFadeDuration property.
2076 /// <since_tizen> 3 </since_tizen>
2077 public float ScrollBarFadeDuration
2081 return (float)GetValue(ScrollBarFadeDurationProperty);
2085 SetValue(ScrollBarFadeDurationProperty, value);
2086 NotifyPropertyChanged();
2091 /// The PixelSize property.
2093 /// <since_tizen> 3 </since_tizen>
2094 public float PixelSize
2098 return (float)GetValue(PixelSizeProperty);
2102 SetValue(PixelSizeProperty, value);
2103 NotifyPropertyChanged();
2108 /// The line count of the text.
2110 /// <since_tizen> 3 </since_tizen>
2111 public int LineCount
2116 GetProperty(TextEditor.Property.LINE_COUNT).Get(out temp);
2122 /// The text to display when the TextEditor is empty and inactive.
2124 /// <since_tizen> 3 </since_tizen>
2125 public string PlaceholderText
2129 return (string)GetValue(PlaceholderTextProperty);
2133 SetValue(PlaceholderTextProperty, value);
2134 NotifyPropertyChanged();
2139 /// The Placeholder text color.
2141 /// <since_tizen> 3 </since_tizen>
2142 public Color PlaceholderTextColor
2146 return (Color)GetValue(PlaceholderTextColorProperty);
2150 SetValue(PlaceholderTextColorProperty, value);
2151 NotifyPropertyChanged();
2156 /// The EnableSelection property.
2158 /// <since_tizen> 3 </since_tizen>
2159 public bool EnableSelection
2163 return (bool)GetValue(EnableSelectionProperty);
2167 SetValue(EnableSelectionProperty, value);
2168 NotifyPropertyChanged();
2173 /// The Placeholder property.
2174 /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
2177 /// The following example demonstrates how to set the placeholder property.
2179 /// PropertyMap propertyMap = new PropertyMap();
2180 /// propertyMap.Add("text", new PropertyValue("Setting Placeholder Text"));
2181 /// propertyMap.Add("textFocused", new PropertyValue("Setting Placeholder Text Focused"));
2182 /// propertyMap.Add("color", new PropertyValue(Color.Red));
2183 /// propertyMap.Add("fontFamily", new PropertyValue("Arial"));
2184 /// propertyMap.Add("pointSize", new PropertyValue(12.0f));
2186 /// PropertyMap fontStyleMap = new PropertyMap();
2187 /// fontStyleMap.Add("weight", new PropertyValue("bold"));
2188 /// fontStyleMap.Add("width", new PropertyValue("condensed"));
2189 /// fontStyleMap.Add("slant", new PropertyValue("italic"));
2190 /// propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap));
2192 /// TextEditor editor = new TextEditor();
2193 /// editor.Placeholder = propertyMap;
2196 /// <since_tizen> 3 </since_tizen>
2197 public Tizen.NUI.PropertyMap Placeholder
2201 return (PropertyMap)GetValue(PlaceholderProperty);
2205 SetValue(PlaceholderProperty, value);
2206 NotifyPropertyChanged();
2211 /// The LineWrapMode property.<br />
2212 /// The line wrap mode when the text lines over the layout width.<br />
2214 /// <since_tizen> 4 </since_tizen>
2215 public LineWrapMode LineWrapMode
2219 return (LineWrapMode)GetValue(LineWrapModeProperty);
2223 SetValue(LineWrapModeProperty, value);
2224 NotifyPropertyChanged();
2229 /// Enables Text selection using Shift key.
2231 /// <since_tizen> 5 </since_tizen>
2232 /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
2233 [EditorBrowsable(EditorBrowsableState.Never)]
2234 public bool EnableShiftSelection
2238 return (bool)GetValue(EnableShiftSelectionProperty);
2242 SetValue(EnableShiftSelectionProperty, value);
2243 NotifyPropertyChanged();