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();
1222 internal override bool IsCreateByXaml
1226 return base.IsCreateByXaml;
1230 base.IsCreateByXaml = value;
1234 this.TextChanged += (obj, e) =>
1236 this.Text = this.Text;
1242 internal TextEditor(TextEditor handle) : this(NDalicPINVOKE.new_TextEditor__SWIG_1(TextEditor.getCPtr(handle)), true)
1244 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1248 /// Get the InputMethodContext instance.
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();
1257 internal TextEditorSignal TextChangedSignal()
1259 TextEditorSignal ret = new TextEditorSignal(NDalicPINVOKE.TextEditor_TextChangedSignal(swigCPtr), false);
1260 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1264 internal ScrollStateChangedSignal ScrollStateChangedSignal(TextEditor textEditor)
1266 ScrollStateChangedSignal ret = new ScrollStateChangedSignal(NDalicManualPINVOKE.TextEditor_ScrollStateChangedSignal(TextEditor.getCPtr(textEditor)), false);
1267 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1271 internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t InputStyleChangedSignal()
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();
1279 /// The TranslatableText property.<br />
1280 /// The text can set the SID value.<br />
1282 /// <exception cref='ArgumentNullException'>
1283 /// ResourceManager about multilingual is null.
1285 /// <since_tizen> 4 </since_tizen>
1286 public string TranslatableText
1290 return textEditorTextSid;
1294 if (NUIApplication.MultilingualResourceManager == null)
1296 throw new ArgumentNullException("ResourceManager about multilingual is null");
1298 textEditorTextSid = value;
1299 Text = SetTranslatable(textEditorTextSid);
1300 NotifyPropertyChanged();
1304 /// The TranslatablePlaceholderText property.<br />
1305 /// The text can set the SID value.<br />
1307 /// <exception cref='ArgumentNullException'>
1308 /// ResourceManager about multilingual is null.
1310 /// <since_tizen> 4 </since_tizen>
1311 public string TranslatablePlaceholderText
1315 return textEditorPlaceHolderTextSid;
1319 if (NUIApplication.MultilingualResourceManager == null)
1321 throw new ArgumentNullException("ResourceManager about multilingual is null");
1323 textEditorPlaceHolderTextSid = value;
1324 PlaceholderText = SetTranslatable(textEditorPlaceHolderTextSid);
1325 NotifyPropertyChanged();
1328 private string SetTranslatable(string textEditorSid)
1330 string translatableText = null;
1331 translatableText = NUIApplication.MultilingualResourceManager?.GetString(textEditorSid, new CultureInfo(SystemSettings.LocaleLanguage.Replace("_", "-")));
1332 if (translatableText != null)
1334 if (systemlangTextFlag == false)
1336 SystemSettings.LocaleLanguageChanged += new WeakEventHandler<LocaleLanguageChangedEventArgs>(SystemSettings_LocaleLanguageChanged).Handler;
1337 systemlangTextFlag = true;
1339 return translatableText;
1343 translatableText = "";
1344 return translatableText;
1347 private void SystemSettings_LocaleLanguageChanged(object sender, LocaleLanguageChangedEventArgs e)
1349 if (textEditorTextSid != null)
1351 Text = NUIApplication.MultilingualResourceManager?.GetString(textEditorTextSid, new CultureInfo(e.Value.Replace("_", "-")));
1353 if (textEditorPlaceHolderTextSid != null)
1355 PlaceholderText = NUIApplication.MultilingualResourceManager?.GetString(textEditorPlaceHolderTextSid, new CultureInfo(e.Value.Replace("_", "-")));
1359 /// The Text property.
1361 /// <since_tizen> 3 </since_tizen>
1366 return (string)GetValue(TextProperty);
1370 SetValueAndForceSendChangeSignal(TextProperty, value);
1371 NotifyPropertyChanged();
1376 /// The TextColor property.
1378 /// <since_tizen> 3 </since_tizen>
1379 public Vector4 TextColor
1383 return (Vector4)GetValue(TextColorProperty);
1387 SetValue(TextColorProperty, value);
1388 NotifyPropertyChanged();
1393 /// The FontFamily property.
1395 /// <since_tizen> 3 </since_tizen>
1396 public string FontFamily
1400 return (string)GetValue(FontFamilyProperty);
1404 SetValue(FontFamilyProperty, value);
1405 NotifyPropertyChanged();
1410 /// The FontStyle property.
1412 /// <since_tizen> 3 </since_tizen>
1413 public PropertyMap FontStyle
1417 return (PropertyMap)GetValue(FontStyleProperty);
1421 SetValue(FontStyleProperty, value);
1422 NotifyPropertyChanged();
1427 /// The PointSize property.
1429 /// <since_tizen> 3 </since_tizen>
1430 public float PointSize
1434 return (float)GetValue(PointSizeProperty);
1438 SetValue(PointSizeProperty, value);
1439 NotifyPropertyChanged();
1444 /// The HorizontalAlignment property.
1446 /// <since_tizen> 3 </since_tizen>
1447 public HorizontalAlignment HorizontalAlignment
1451 return (HorizontalAlignment)GetValue(HorizontalAlignmentProperty);
1455 SetValue(HorizontalAlignmentProperty, value);
1456 NotifyPropertyChanged();
1461 /// The ScrollThreshold property.
1463 /// <since_tizen> 3 </since_tizen>
1464 public float ScrollThreshold
1468 return (float)GetValue(ScrollThresholdProperty);
1472 SetValue(ScrollThresholdProperty, value);
1473 NotifyPropertyChanged();
1478 /// The ScrollSpeed property.
1480 /// <since_tizen> 3 </since_tizen>
1481 public float ScrollSpeed
1485 return (float)GetValue(ScrollSpeedProperty);
1489 SetValue(ScrollSpeedProperty, value);
1490 NotifyPropertyChanged();
1495 /// The PrimaryCursorColor property.
1497 /// <since_tizen> 3 </since_tizen>
1498 public Vector4 PrimaryCursorColor
1502 return (Vector4)GetValue(PrimaryCursorColorProperty);
1506 SetValue(PrimaryCursorColorProperty, value);
1507 NotifyPropertyChanged();
1512 /// The SecondaryCursorColor property.
1514 /// <since_tizen> 3 </since_tizen>
1515 public Vector4 SecondaryCursorColor
1519 return (Vector4)GetValue(SecondaryCursorColorProperty);
1523 SetValue(SecondaryCursorColorProperty, value);
1524 NotifyPropertyChanged();
1529 /// The EnableCursorBlink property.
1531 /// <since_tizen> 3 </since_tizen>
1532 public bool EnableCursorBlink
1536 return (bool)GetValue(EnableCursorBlinkProperty);
1540 SetValue(EnableCursorBlinkProperty, value);
1541 NotifyPropertyChanged();
1546 /// The CursorBlinkInterval property.
1548 /// <since_tizen> 3 </since_tizen>
1549 public float CursorBlinkInterval
1553 return (float)GetValue(CursorBlinkIntervalProperty);
1557 SetValue(CursorBlinkIntervalProperty, value);
1558 NotifyPropertyChanged();
1563 /// The CursorBlinkDuration property.
1565 /// <since_tizen> 3 </since_tizen>
1566 public float CursorBlinkDuration
1570 return (float)GetValue(CursorBlinkDurationProperty);
1574 SetValue(CursorBlinkDurationProperty, value);
1575 NotifyPropertyChanged();
1580 /// The CursorWidth property.
1582 /// <since_tizen> 3 </since_tizen>
1583 public int CursorWidth
1587 return (int)GetValue(CursorWidthProperty);
1591 SetValue(CursorWidthProperty, value);
1592 NotifyPropertyChanged();
1597 /// The GrabHandleImage property.
1599 /// <since_tizen> 3 </since_tizen>
1600 public string GrabHandleImage
1604 return (string)GetValue(GrabHandleImageProperty);
1608 SetValue(GrabHandleImageProperty, value);
1609 NotifyPropertyChanged();
1614 /// The GrabHandlePressedImage property.
1616 /// <since_tizen> 3 </since_tizen>
1617 public string GrabHandlePressedImage
1621 return (string)GetValue(GrabHandlePressedImageProperty);
1625 SetValue(GrabHandlePressedImageProperty, value);
1626 NotifyPropertyChanged();
1631 /// The SelectionHandleImageLeft property.
1633 /// <since_tizen> 3 </since_tizen>
1634 public PropertyMap SelectionHandleImageLeft
1638 return (PropertyMap)GetValue(SelectionHandleImageLeftProperty);
1642 SetValue(SelectionHandleImageLeftProperty, value);
1643 NotifyPropertyChanged();
1648 /// The SelectionHandleImageRight property.
1650 /// <since_tizen> 3 </since_tizen>
1651 public PropertyMap SelectionHandleImageRight
1655 return (PropertyMap)GetValue(SelectionHandleImageRightProperty);
1659 SetValue(SelectionHandleImageRightProperty, value);
1660 NotifyPropertyChanged();
1665 /// The SelectionHandlePressedImageLeft property.
1667 /// <since_tizen> 3 </since_tizen>
1668 public PropertyMap SelectionHandlePressedImageLeft
1672 return (PropertyMap)GetValue(SelectionHandlePressedImageLeftProperty);
1676 SetValue(SelectionHandlePressedImageLeftProperty, value);
1677 NotifyPropertyChanged();
1682 /// The SelectionHandlePressedImageRight property.
1684 /// <since_tizen> 3 </since_tizen>
1685 public PropertyMap SelectionHandlePressedImageRight
1689 return (PropertyMap)GetValue(SelectionHandlePressedImageRightProperty);
1693 SetValue(SelectionHandlePressedImageRightProperty, value);
1694 NotifyPropertyChanged();
1699 /// The SelectionHandleMarkerImageLeft property.
1701 /// <since_tizen> 3 </since_tizen>
1702 public PropertyMap SelectionHandleMarkerImageLeft
1706 return (PropertyMap)GetValue(SelectionHandleMarkerImageLeftProperty);
1710 SetValue(SelectionHandleMarkerImageLeftProperty, value);
1711 NotifyPropertyChanged();
1716 /// The SelectionHandleMarkerImageRight property.
1718 /// <since_tizen> 3 </since_tizen>
1719 public PropertyMap SelectionHandleMarkerImageRight
1723 return (PropertyMap)GetValue(SelectionHandleMarkerImageRightProperty);
1727 SetValue(SelectionHandleMarkerImageRightProperty, value);
1728 NotifyPropertyChanged();
1733 /// The SelectionHighlightColor property.
1735 /// <since_tizen> 3 </since_tizen>
1736 public Vector4 SelectionHighlightColor
1740 return (Vector4)GetValue(SelectionHighlightColorProperty);
1744 SetValue(SelectionHighlightColorProperty, value);
1745 NotifyPropertyChanged();
1750 /// The DecorationBoundingBox property.
1752 /// <since_tizen> 3 </since_tizen>
1753 public Rectangle DecorationBoundingBox
1757 return (Rectangle)GetValue(DecorationBoundingBoxProperty);
1761 SetValue(DecorationBoundingBoxProperty, value);
1762 NotifyPropertyChanged();
1767 /// The EnableMarkup property.
1769 /// <since_tizen> 3 </since_tizen>
1770 public bool EnableMarkup
1774 return (bool)GetValue(EnableMarkupProperty);
1778 SetValue(EnableMarkupProperty, value);
1779 NotifyPropertyChanged();
1784 /// The InputColor property.
1786 /// <since_tizen> 3 </since_tizen>
1787 public Vector4 InputColor
1791 return (Vector4)GetValue(InputColorProperty);
1795 SetValue(InputColorProperty, value);
1796 NotifyPropertyChanged();
1801 /// The InputFontFamily property.
1803 /// <since_tizen> 3 </since_tizen>
1804 public string InputFontFamily
1808 return (string)GetValue(InputFontFamilyProperty);
1812 SetValue(InputFontFamilyProperty, value);
1813 NotifyPropertyChanged();
1818 /// The InputFontStyle property.
1820 /// <since_tizen> 3 </since_tizen>
1821 public PropertyMap InputFontStyle
1825 return (PropertyMap)GetValue(InputFontStyleProperty);
1829 SetValue(InputFontStyleProperty, value);
1830 NotifyPropertyChanged();
1835 /// The InputPointSize property.
1837 /// <since_tizen> 3 </since_tizen>
1838 public float InputPointSize
1842 return (float)GetValue(InputPointSizeProperty);
1846 SetValue(InputPointSizeProperty, value);
1847 NotifyPropertyChanged();
1852 /// The LineSpacing property.
1854 /// <since_tizen> 3 </since_tizen>
1855 public float LineSpacing
1859 return (float)GetValue(LineSpacingProperty);
1863 SetValue(LineSpacingProperty, value);
1864 NotifyPropertyChanged();
1869 /// The InputLineSpacing property.
1871 /// <since_tizen> 3 </since_tizen>
1872 public float InputLineSpacing
1876 return (float)GetValue(InputLineSpacingProperty);
1880 SetValue(InputLineSpacingProperty, value);
1881 NotifyPropertyChanged();
1886 /// The Underline property.
1888 /// <since_tizen> 3 </since_tizen>
1889 public PropertyMap Underline
1893 return (PropertyMap)GetValue(UnderlineProperty);
1897 SetValue(UnderlineProperty, value);
1898 NotifyPropertyChanged();
1903 /// The InputUnderline property.
1905 /// <since_tizen> 3 </since_tizen>
1906 public string InputUnderline
1910 return (string)GetValue(InputUnderlineProperty);
1914 SetValue(InputUnderlineProperty, value);
1915 NotifyPropertyChanged();
1920 /// The Shadow property.
1922 /// <since_tizen> 3 </since_tizen>
1923 public PropertyMap Shadow
1927 return (PropertyMap)GetValue(ShadowProperty);
1931 SetValue(ShadowProperty, value);
1932 NotifyPropertyChanged();
1937 /// The InputShadow property.
1939 /// <since_tizen> 3 </since_tizen>
1940 public string InputShadow
1944 return (string)GetValue(InputShadowProperty);
1948 SetValue(InputShadowProperty, value);
1949 NotifyPropertyChanged();
1954 /// The Emboss property.
1956 /// <since_tizen> 3 </since_tizen>
1957 public string Emboss
1961 return (string)GetValue(EmbossProperty);
1965 SetValue(EmbossProperty, value);
1966 NotifyPropertyChanged();
1971 /// The InputEmboss property.
1973 /// <since_tizen> 3 </since_tizen>
1974 public string InputEmboss
1978 return (string)GetValue(InputEmbossProperty);
1982 SetValue(InputEmbossProperty, value);
1983 NotifyPropertyChanged();
1988 /// The Outline property.
1990 /// <since_tizen> 3 </since_tizen>
1991 public PropertyMap Outline
1995 return (PropertyMap)GetValue(OutlineProperty);
1999 SetValue(OutlineProperty, value);
2000 NotifyPropertyChanged();
2005 /// The InputOutline property.
2007 /// <since_tizen> 3 </since_tizen>
2008 public string InputOutline
2012 return (string)GetValue(InputOutlineProperty);
2016 SetValue(InputOutlineProperty, value);
2017 NotifyPropertyChanged();
2022 /// The SmoothScroll property.
2024 /// <since_tizen> 3 </since_tizen>
2025 public bool SmoothScroll
2029 return (bool)GetValue(SmoothScrollProperty);
2033 SetValue(SmoothScrollProperty, value);
2034 NotifyPropertyChanged();
2039 /// The SmoothScrollDuration property.
2041 /// <since_tizen> 3 </since_tizen>
2042 public float SmoothScrollDuration
2046 return (float)GetValue(SmoothScrollDurationProperty);
2050 SetValue(SmoothScrollDurationProperty, value);
2051 NotifyPropertyChanged();
2056 /// The EnableScrollBar property.
2058 /// <since_tizen> 3 </since_tizen>
2059 public bool EnableScrollBar
2063 return (bool)GetValue(EnableScrollBarProperty);
2067 SetValue(EnableScrollBarProperty, value);
2068 NotifyPropertyChanged();
2073 /// The ScrollBarShowDuration property.
2075 /// <since_tizen> 3 </since_tizen>
2076 public float ScrollBarShowDuration
2080 return (float)GetValue(ScrollBarShowDurationProperty);
2084 SetValue(ScrollBarShowDurationProperty, value);
2085 NotifyPropertyChanged();
2090 /// The ScrollBarFadeDuration property.
2092 /// <since_tizen> 3 </since_tizen>
2093 public float ScrollBarFadeDuration
2097 return (float)GetValue(ScrollBarFadeDurationProperty);
2101 SetValue(ScrollBarFadeDurationProperty, value);
2102 NotifyPropertyChanged();
2107 /// The PixelSize property.
2109 /// <since_tizen> 3 </since_tizen>
2110 public float PixelSize
2114 return (float)GetValue(PixelSizeProperty);
2118 SetValue(PixelSizeProperty, value);
2119 NotifyPropertyChanged();
2124 /// The line count of the text.
2126 /// <since_tizen> 3 </since_tizen>
2127 public int LineCount
2132 GetProperty(TextEditor.Property.LINE_COUNT).Get(out temp);
2138 /// The text to display when the TextEditor is empty and inactive.
2140 /// <since_tizen> 3 </since_tizen>
2141 public string PlaceholderText
2145 return (string)GetValue(PlaceholderTextProperty);
2149 SetValue(PlaceholderTextProperty, value);
2150 NotifyPropertyChanged();
2155 /// The Placeholder text color.
2157 /// <since_tizen> 3 </since_tizen>
2158 public Color PlaceholderTextColor
2162 return (Color)GetValue(PlaceholderTextColorProperty);
2166 SetValue(PlaceholderTextColorProperty, value);
2167 NotifyPropertyChanged();
2172 /// The EnableSelection property.
2174 /// <since_tizen> 3 </since_tizen>
2175 public bool EnableSelection
2179 return (bool)GetValue(EnableSelectionProperty);
2183 SetValue(EnableSelectionProperty, value);
2184 NotifyPropertyChanged();
2189 /// The Placeholder property.
2190 /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
2193 /// The following example demonstrates how to set the placeholder property.
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));
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));
2208 /// TextEditor editor = new TextEditor();
2209 /// editor.Placeholder = propertyMap;
2212 /// <since_tizen> 3 </since_tizen>
2213 public Tizen.NUI.PropertyMap Placeholder
2217 return (PropertyMap)GetValue(PlaceholderProperty);
2221 SetValue(PlaceholderProperty, value);
2222 NotifyPropertyChanged();
2227 /// The LineWrapMode property.<br />
2228 /// The line wrap mode when the text lines over the layout width.<br />
2230 /// <since_tizen> 4 </since_tizen>
2231 public LineWrapMode LineWrapMode
2235 return (LineWrapMode)GetValue(LineWrapModeProperty);
2239 SetValue(LineWrapModeProperty, value);
2240 NotifyPropertyChanged();
2245 /// Enables Text selection using Shift key.
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
2254 return (bool)GetValue(EnableShiftSelectionProperty);
2258 SetValue(EnableShiftSelectionProperty, value);
2259 NotifyPropertyChanged();