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 public class TextEditor : View
35 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
36 [EditorBrowsable(EditorBrowsableState.Never)]
37 public static readonly BindableProperty TextProperty = BindableProperty.Create(nameof(Text), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
39 var textEditor = (TextEditor)bindable;
42 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.TEXT, new Tizen.NUI.PropertyValue((string)newValue));
45 defaultValueCreator: (bindable) =>
47 var textEditor = (TextEditor)bindable;
49 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.TEXT).Get(out temp);
52 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
53 [EditorBrowsable(EditorBrowsableState.Never)]
54 public static readonly BindableProperty TextColorProperty = BindableProperty.Create(nameof(TextColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
56 var textEditor = (TextEditor)bindable;
59 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.TEXT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
62 defaultValueCreator: (bindable) =>
64 var textEditor = (TextEditor)bindable;
65 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
66 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.TEXT_COLOR).Get(temp);
69 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
70 [EditorBrowsable(EditorBrowsableState.Never)]
71 public static readonly BindableProperty FontFamilyProperty = BindableProperty.Create(nameof(FontFamily), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
73 var textEditor = (TextEditor)bindable;
76 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.FONT_FAMILY, new Tizen.NUI.PropertyValue((string)newValue));
79 defaultValueCreator: (bindable) =>
81 var textEditor = (TextEditor)bindable;
83 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.FONT_FAMILY).Get(out temp);
86 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
87 [EditorBrowsable(EditorBrowsableState.Never)]
88 public static readonly BindableProperty FontStyleProperty = BindableProperty.Create(nameof(FontStyle), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
90 var textEditor = (TextEditor)bindable;
93 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.FONT_STYLE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
96 defaultValueCreator: (bindable) =>
98 var textEditor = (TextEditor)bindable;
99 PropertyMap temp = new PropertyMap();
100 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.FONT_STYLE).Get(temp);
103 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
104 [EditorBrowsable(EditorBrowsableState.Never)]
105 public static readonly BindableProperty PointSizeProperty = BindableProperty.Create(nameof(PointSize), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
107 var textEditor = (TextEditor)bindable;
108 if (newValue != null)
110 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.POINT_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
113 defaultValueCreator: (bindable) =>
115 var textEditor = (TextEditor)bindable;
117 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.POINT_SIZE).Get(out temp);
120 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
121 [EditorBrowsable(EditorBrowsableState.Never)]
122 public static readonly BindableProperty HorizontalAlignmentProperty = BindableProperty.Create(nameof(HorizontalAlignment), typeof(HorizontalAlignment), typeof(TextEditor), HorizontalAlignment.Begin, propertyChanged: (bindable, oldValue, newValue) =>
124 var textEditor = (TextEditor)bindable;
125 if (newValue != null)
127 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue((int)newValue));
130 defaultValueCreator: (bindable) =>
132 var textEditor = (TextEditor)bindable;
134 if (Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.HORIZONTAL_ALIGNMENT).Get(out temp) == false)
136 NUILog.Error("HorizontalAlignment get error!");
142 return HorizontalAlignment.Begin;
144 return HorizontalAlignment.Center;
146 return HorizontalAlignment.End;
148 return HorizontalAlignment.Begin;
151 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
152 [EditorBrowsable(EditorBrowsableState.Never)]
153 public static readonly BindableProperty ScrollThresholdProperty = BindableProperty.Create(nameof(ScrollThreshold), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
155 var textEditor = (TextEditor)bindable;
156 if (newValue != null)
158 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue((float)newValue));
161 defaultValueCreator: (bindable) =>
163 var textEditor = (TextEditor)bindable;
165 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_THRESHOLD).Get(out temp);
168 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
169 [EditorBrowsable(EditorBrowsableState.Never)]
170 public static readonly BindableProperty ScrollSpeedProperty = BindableProperty.Create(nameof(ScrollSpeed), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
172 var textEditor = (TextEditor)bindable;
173 if (newValue != null)
175 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue((float)newValue));
178 defaultValueCreator: (bindable) =>
180 var textEditor = (TextEditor)bindable;
182 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_SPEED).Get(out temp);
185 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
186 [EditorBrowsable(EditorBrowsableState.Never)]
187 public static readonly BindableProperty PrimaryCursorColorProperty = BindableProperty.Create(nameof(PrimaryCursorColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
189 var textEditor = (TextEditor)bindable;
190 if (newValue != null)
192 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
195 defaultValueCreator: (bindable) =>
197 var textEditor = (TextEditor)bindable;
198 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
199 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.PRIMARY_CURSOR_COLOR).Get(temp);
202 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
203 [EditorBrowsable(EditorBrowsableState.Never)]
204 public static readonly BindableProperty SecondaryCursorColorProperty = BindableProperty.Create(nameof(SecondaryCursorColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
206 var textEditor = (TextEditor)bindable;
207 if (newValue != null)
209 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
212 defaultValueCreator: (bindable) =>
214 var textEditor = (TextEditor)bindable;
215 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
216 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SECONDARY_CURSOR_COLOR).Get(temp);
219 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
220 [EditorBrowsable(EditorBrowsableState.Never)]
221 public static readonly BindableProperty EnableCursorBlinkProperty = BindableProperty.Create(nameof(EnableCursorBlink), typeof(bool), typeof(TextEditor), false, propertyChanged: (bindable, oldValue, newValue) =>
223 var textEditor = (TextEditor)bindable;
224 if (newValue != null)
226 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue((bool)newValue));
229 defaultValueCreator: (bindable) =>
231 var textEditor = (TextEditor)bindable;
233 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_CURSOR_BLINK).Get(out temp);
236 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
237 [EditorBrowsable(EditorBrowsableState.Never)]
238 public static readonly BindableProperty CursorBlinkIntervalProperty = BindableProperty.Create(nameof(CursorBlinkInterval), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
240 var textEditor = (TextEditor)bindable;
241 if (newValue != null)
243 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue((float)newValue));
246 defaultValueCreator: (bindable) =>
248 var textEditor = (TextEditor)bindable;
250 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.CURSOR_BLINK_INTERVAL).Get(out temp);
253 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
254 [EditorBrowsable(EditorBrowsableState.Never)]
255 public static readonly BindableProperty CursorBlinkDurationProperty = BindableProperty.Create(nameof(CursorBlinkDuration), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
257 var textEditor = (TextEditor)bindable;
258 if (newValue != null)
260 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.CURSOR_BLINK_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
263 defaultValueCreator: (bindable) =>
265 var textEditor = (TextEditor)bindable;
267 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.CURSOR_BLINK_DURATION).Get(out temp);
270 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
271 [EditorBrowsable(EditorBrowsableState.Never)]
272 public static readonly BindableProperty CursorWidthProperty = BindableProperty.Create(nameof(CursorWidth), typeof(int), typeof(TextEditor), default(int), propertyChanged: (bindable, oldValue, newValue) =>
274 var textEditor = (TextEditor)bindable;
275 if (newValue != null)
277 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue((int)newValue));
280 defaultValueCreator: (bindable) =>
282 var textEditor = (TextEditor)bindable;
284 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.CURSOR_WIDTH).Get(out temp);
287 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
288 [EditorBrowsable(EditorBrowsableState.Never)]
289 public static readonly BindableProperty GrabHandleImageProperty = BindableProperty.Create(nameof(GrabHandleImage), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
291 var textEditor = (TextEditor)bindable;
292 if (newValue != null)
294 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
297 defaultValueCreator: (bindable) =>
299 var textEditor = (TextEditor)bindable;
301 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.GRAB_HANDLE_IMAGE).Get(out temp);
304 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
305 [EditorBrowsable(EditorBrowsableState.Never)]
306 public static readonly BindableProperty GrabHandlePressedImageProperty = BindableProperty.Create(nameof(GrabHandlePressedImage), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
308 var textEditor = (TextEditor)bindable;
309 if (newValue != null)
311 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
314 defaultValueCreator: (bindable) =>
316 var textEditor = (TextEditor)bindable;
318 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);
321 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
322 [EditorBrowsable(EditorBrowsableState.Never)]
323 public static readonly BindableProperty SelectionHandleImageLeftProperty = BindableProperty.Create(nameof(SelectionHandleImageLeft), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
325 var textEditor = (TextEditor)bindable;
326 if (newValue != null)
328 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
331 defaultValueCreator: (bindable) =>
333 var textEditor = (TextEditor)bindable;
334 PropertyMap temp = new PropertyMap();
335 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_IMAGE_LEFT).Get(temp);
338 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
339 [EditorBrowsable(EditorBrowsableState.Never)]
340 public static readonly BindableProperty SelectionHandleImageRightProperty = BindableProperty.Create(nameof(SelectionHandleImageRight), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
342 var textEditor = (TextEditor)bindable;
343 if (newValue != null)
345 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
348 defaultValueCreator: (bindable) =>
350 var textEditor = (TextEditor)bindable;
351 PropertyMap temp = new PropertyMap();
352 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_IMAGE_RIGHT).Get(temp);
355 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
356 [EditorBrowsable(EditorBrowsableState.Never)]
357 public static readonly BindableProperty SelectionHandlePressedImageLeftProperty = BindableProperty.Create(nameof(SelectionHandlePressedImageLeft), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
359 var textEditor = (TextEditor)bindable;
360 if (newValue != null)
362 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
365 defaultValueCreator: (bindable) =>
367 var textEditor = (TextEditor)bindable;
368 PropertyMap temp = new PropertyMap();
369 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT).Get(temp);
372 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
373 [EditorBrowsable(EditorBrowsableState.Never)]
374 public static readonly BindableProperty SelectionHandlePressedImageRightProperty = BindableProperty.Create(nameof(SelectionHandlePressedImageRight), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
376 var textEditor = (TextEditor)bindable;
377 if (newValue != null)
379 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
382 defaultValueCreator: (bindable) =>
384 var textEditor = (TextEditor)bindable;
385 PropertyMap temp = new PropertyMap();
386 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT).Get(temp);
389 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
390 [EditorBrowsable(EditorBrowsableState.Never)]
391 public static readonly BindableProperty SelectionHandleMarkerImageLeftProperty = BindableProperty.Create(nameof(SelectionHandleMarkerImageLeft), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
393 var textEditor = (TextEditor)bindable;
394 if (newValue != null)
396 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
399 defaultValueCreator: (bindable) =>
401 var textEditor = (TextEditor)bindable;
402 PropertyMap temp = new PropertyMap();
403 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT).Get(temp);
406 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
407 [EditorBrowsable(EditorBrowsableState.Never)]
408 public static readonly BindableProperty SelectionHandleMarkerImageRightProperty = BindableProperty.Create(nameof(SelectionHandleMarkerImageRight), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
410 var textEditor = (TextEditor)bindable;
411 if (newValue != null)
413 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
416 defaultValueCreator: (bindable) =>
418 var textEditor = (TextEditor)bindable;
419 PropertyMap temp = new PropertyMap();
420 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT).Get(temp);
423 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
424 [EditorBrowsable(EditorBrowsableState.Never)]
425 public static readonly BindableProperty SelectionHighlightColorProperty = BindableProperty.Create(nameof(SelectionHighlightColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
427 var textEditor = (TextEditor)bindable;
428 if (newValue != null)
430 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
433 defaultValueCreator: (bindable) =>
435 var textEditor = (TextEditor)bindable;
436 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
437 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SELECTION_HIGHLIGHT_COLOR).Get(temp);
440 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
441 [EditorBrowsable(EditorBrowsableState.Never)]
442 public static readonly BindableProperty DecorationBoundingBoxProperty = BindableProperty.Create(nameof(DecorationBoundingBox), typeof(Rectangle), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
444 var textEditor = (TextEditor)bindable;
445 if (newValue != null)
447 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue((Rectangle)newValue));
450 defaultValueCreator: (bindable) =>
452 var textEditor = (TextEditor)bindable;
453 Rectangle temp = new Rectangle(0, 0, 0, 0);
454 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.DECORATION_BOUNDING_BOX).Get(temp);
457 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
458 [EditorBrowsable(EditorBrowsableState.Never)]
459 public static readonly BindableProperty EnableMarkupProperty = BindableProperty.Create(nameof(EnableMarkup), typeof(bool), typeof(TextEditor), false, propertyChanged: (bindable, oldValue, newValue) =>
461 var textEditor = (TextEditor)bindable;
462 if (newValue != null)
464 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue((bool)newValue));
467 defaultValueCreator: (bindable) =>
469 var textEditor = (TextEditor)bindable;
471 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_MARKUP).Get(out temp);
474 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
475 [EditorBrowsable(EditorBrowsableState.Never)]
476 public static readonly BindableProperty InputColorProperty = BindableProperty.Create(nameof(InputColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
478 var textEditor = (TextEditor)bindable;
479 if (newValue != null)
481 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
484 defaultValueCreator: (bindable) =>
486 var textEditor = (TextEditor)bindable;
487 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
488 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_COLOR).Get(temp);
491 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
492 [EditorBrowsable(EditorBrowsableState.Never)]
493 public static readonly BindableProperty InputFontFamilyProperty = BindableProperty.Create(nameof(InputFontFamily), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
495 var textEditor = (TextEditor)bindable;
496 if (newValue != null)
498 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue((string)newValue));
501 defaultValueCreator: (bindable) =>
503 var textEditor = (TextEditor)bindable;
505 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_FONT_FAMILY).Get(out temp);
508 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
509 [EditorBrowsable(EditorBrowsableState.Never)]
510 public static readonly BindableProperty InputFontStyleProperty = BindableProperty.Create(nameof(InputFontStyle), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
512 var textEditor = (TextEditor)bindable;
513 if (newValue != null)
515 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
518 defaultValueCreator: (bindable) =>
520 var textEditor = (TextEditor)bindable;
521 PropertyMap temp = new PropertyMap();
522 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_FONT_STYLE).Get(temp);
525 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
526 [EditorBrowsable(EditorBrowsableState.Never)]
527 public static readonly BindableProperty InputPointSizeProperty = BindableProperty.Create(nameof(InputPointSize), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
529 var textEditor = (TextEditor)bindable;
530 if (newValue != null)
532 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
535 defaultValueCreator: (bindable) =>
537 var textEditor = (TextEditor)bindable;
539 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_POINT_SIZE).Get(out temp);
542 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
543 [EditorBrowsable(EditorBrowsableState.Never)]
544 public static readonly BindableProperty LineSpacingProperty = BindableProperty.Create(nameof(LineSpacing), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
546 var textEditor = (TextEditor)bindable;
547 if (newValue != null)
549 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.LINE_SPACING, new Tizen.NUI.PropertyValue((float)newValue));
552 defaultValueCreator: (bindable) =>
554 var textEditor = (TextEditor)bindable;
556 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.LINE_SPACING).Get(out temp);
559 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
560 [EditorBrowsable(EditorBrowsableState.Never)]
561 public static readonly BindableProperty InputLineSpacingProperty = BindableProperty.Create(nameof(InputLineSpacing), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
563 var textEditor = (TextEditor)bindable;
564 if (newValue != null)
566 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_LINE_SPACING, new Tizen.NUI.PropertyValue((float)newValue));
569 defaultValueCreator: (bindable) =>
571 var textEditor = (TextEditor)bindable;
573 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_LINE_SPACING).Get(out temp);
576 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
577 [EditorBrowsable(EditorBrowsableState.Never)]
578 public static readonly BindableProperty UnderlineProperty = BindableProperty.Create(nameof(Underline), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
580 var textEditor = (TextEditor)bindable;
581 if (newValue != null)
583 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.UNDERLINE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
586 defaultValueCreator: (bindable) =>
588 var textEditor = (TextEditor)bindable;
589 PropertyMap temp = new PropertyMap();
590 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.UNDERLINE).Get(temp);
593 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
594 [EditorBrowsable(EditorBrowsableState.Never)]
595 public static readonly BindableProperty InputUnderlineProperty = BindableProperty.Create(nameof(InputUnderline), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
597 var textEditor = (TextEditor)bindable;
598 if (newValue != null)
600 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue((string)newValue));
603 defaultValueCreator: (bindable) =>
605 var textEditor = (TextEditor)bindable;
607 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_UNDERLINE).Get(out temp);
610 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
611 [EditorBrowsable(EditorBrowsableState.Never)]
612 public static readonly BindableProperty ShadowProperty = BindableProperty.Create(nameof(Shadow), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
614 var textEditor = (TextEditor)bindable;
615 if (newValue != null)
617 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SHADOW, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
620 defaultValueCreator: (bindable) =>
622 var textEditor = (TextEditor)bindable;
623 PropertyMap temp = new PropertyMap();
624 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SHADOW).Get(temp);
627 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
628 [EditorBrowsable(EditorBrowsableState.Never)]
629 public static readonly BindableProperty InputShadowProperty = BindableProperty.Create(nameof(InputShadow), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
631 var textEditor = (TextEditor)bindable;
632 if (newValue != null)
634 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue((string)newValue));
637 defaultValueCreator: (bindable) =>
639 var textEditor = (TextEditor)bindable;
641 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_SHADOW).Get(out temp);
644 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
645 [EditorBrowsable(EditorBrowsableState.Never)]
646 public static readonly BindableProperty EmbossProperty = BindableProperty.Create(nameof(Emboss), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
648 var textEditor = (TextEditor)bindable;
649 if (newValue != null)
651 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.EMBOSS, new Tizen.NUI.PropertyValue((string)newValue));
654 defaultValueCreator: (bindable) =>
656 var textEditor = (TextEditor)bindable;
658 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.EMBOSS).Get(out temp);
661 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
662 [EditorBrowsable(EditorBrowsableState.Never)]
663 public static readonly BindableProperty InputEmbossProperty = BindableProperty.Create(nameof(InputEmboss), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
665 var textEditor = (TextEditor)bindable;
666 if (newValue != null)
668 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue((string)newValue));
671 defaultValueCreator: (bindable) =>
673 var textEditor = (TextEditor)bindable;
675 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_EMBOSS).Get(out temp);
678 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
679 [EditorBrowsable(EditorBrowsableState.Never)]
680 public static readonly BindableProperty OutlineProperty = BindableProperty.Create(nameof(Outline), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
682 var textEditor = (TextEditor)bindable;
683 if (newValue != null)
685 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.OUTLINE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
688 defaultValueCreator: (bindable) =>
690 var textEditor = (TextEditor)bindable;
691 PropertyMap temp = new PropertyMap();
692 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.OUTLINE).Get(temp);
695 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
696 [EditorBrowsable(EditorBrowsableState.Never)]
697 public static readonly BindableProperty InputOutlineProperty = BindableProperty.Create(nameof(InputOutline), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
699 var textEditor = (TextEditor)bindable;
700 if (newValue != null)
702 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue((string)newValue));
705 defaultValueCreator: (bindable) =>
707 var textEditor = (TextEditor)bindable;
709 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.INPUT_OUTLINE).Get(out temp);
712 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
713 [EditorBrowsable(EditorBrowsableState.Never)]
714 public static readonly BindableProperty SmoothScrollProperty = BindableProperty.Create(nameof(SmoothScroll), typeof(bool), typeof(TextEditor), false, propertyChanged: (bindable, oldValue, newValue) =>
716 var textEditor = (TextEditor)bindable;
717 if (newValue != null)
719 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SMOOTH_SCROLL, new Tizen.NUI.PropertyValue((bool)newValue));
722 defaultValueCreator: (bindable) =>
724 var textEditor = (TextEditor)bindable;
726 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SMOOTH_SCROLL).Get(out temp);
729 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
730 [EditorBrowsable(EditorBrowsableState.Never)]
731 public static readonly BindableProperty SmoothScrollDurationProperty = BindableProperty.Create(nameof(SmoothScrollDuration), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
733 var textEditor = (TextEditor)bindable;
734 if (newValue != null)
736 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SMOOTH_SCROLL_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
739 defaultValueCreator: (bindable) =>
741 var textEditor = (TextEditor)bindable;
743 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SMOOTH_SCROLL_DURATION).Get(out temp);
746 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
747 [EditorBrowsable(EditorBrowsableState.Never)]
748 public static readonly BindableProperty EnableScrollBarProperty = BindableProperty.Create(nameof(EnableScrollBar), typeof(bool), typeof(TextEditor), false, propertyChanged: (bindable, oldValue, newValue) =>
750 var textEditor = (TextEditor)bindable;
751 if (newValue != null)
753 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_SCROLL_BAR, new Tizen.NUI.PropertyValue((bool)newValue));
756 defaultValueCreator: (bindable) =>
758 var textEditor = (TextEditor)bindable;
760 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_SCROLL_BAR).Get(out temp);
763 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
764 [EditorBrowsable(EditorBrowsableState.Never)]
765 public static readonly BindableProperty ScrollBarShowDurationProperty = BindableProperty.Create(nameof(ScrollBarShowDuration), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
767 var textEditor = (TextEditor)bindable;
768 if (newValue != null)
770 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_BAR_SHOW_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
773 defaultValueCreator: (bindable) =>
775 var textEditor = (TextEditor)bindable;
777 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_BAR_SHOW_DURATION).Get(out temp);
780 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
781 [EditorBrowsable(EditorBrowsableState.Never)]
782 public static readonly BindableProperty ScrollBarFadeDurationProperty = BindableProperty.Create(nameof(ScrollBarFadeDuration), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
784 var textEditor = (TextEditor)bindable;
785 if (newValue != null)
787 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_BAR_FADE_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
790 defaultValueCreator: (bindable) =>
792 var textEditor = (TextEditor)bindable;
794 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.SCROLL_BAR_FADE_DURATION).Get(out temp);
797 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
798 [EditorBrowsable(EditorBrowsableState.Never)]
799 public static readonly BindableProperty PixelSizeProperty = BindableProperty.Create(nameof(PixelSize), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) =>
801 var textEditor = (TextEditor)bindable;
802 if (newValue != null)
804 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.PIXEL_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
807 defaultValueCreator: (bindable) =>
809 var textEditor = (TextEditor)bindable;
811 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.PIXEL_SIZE).Get(out temp);
814 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
815 [EditorBrowsable(EditorBrowsableState.Never)]
816 public static readonly BindableProperty PlaceholderTextProperty = BindableProperty.Create(nameof(PlaceholderText), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
818 var textEditor = (TextEditor)bindable;
819 if (newValue != null)
821 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.PLACEHOLDER_TEXT, new Tizen.NUI.PropertyValue((string)newValue));
824 defaultValueCreator: (bindable) =>
826 var textEditor = (TextEditor)bindable;
828 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.PLACEHOLDER_TEXT).Get(out temp);
831 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
832 [EditorBrowsable(EditorBrowsableState.Never)]
833 public static readonly BindableProperty PlaceholderTextColorProperty = BindableProperty.Create(nameof(PlaceholderTextColor), typeof(Color), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
835 var textEditor = (TextEditor)bindable;
836 if (newValue != null)
838 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.PLACEHOLDER_TEXT_COLOR, new Tizen.NUI.PropertyValue((Color)newValue));
841 defaultValueCreator: (bindable) =>
843 var textEditor = (TextEditor)bindable;
844 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
845 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.PLACEHOLDER_TEXT_COLOR).Get(temp);
848 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
849 [EditorBrowsable(EditorBrowsableState.Never)]
850 public static readonly BindableProperty EnableSelectionProperty = BindableProperty.Create(nameof(EnableSelection), typeof(bool), typeof(TextEditor), false, propertyChanged: (bindable, oldValue, newValue) =>
852 var textEditor = (TextEditor)bindable;
853 if (newValue != null)
855 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_SELECTION, new Tizen.NUI.PropertyValue((bool)newValue));
858 defaultValueCreator: (bindable) =>
860 var textEditor = (TextEditor)bindable;
862 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_SELECTION).Get(out temp);
865 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
866 [EditorBrowsable(EditorBrowsableState.Never)]
867 public static readonly BindableProperty PlaceholderProperty = BindableProperty.Create(nameof(Placeholder), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) =>
869 var textEditor = (TextEditor)bindable;
870 if (newValue != null)
872 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.PLACEHOLDER, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
875 defaultValueCreator: (bindable) =>
877 var textEditor = (TextEditor)bindable;
878 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
879 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.PLACEHOLDER).Get(temp);
882 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
883 [EditorBrowsable(EditorBrowsableState.Never)]
884 public static readonly BindableProperty LineWrapModeProperty = BindableProperty.Create(nameof(LineWrapMode), typeof(LineWrapMode), typeof(TextEditor), LineWrapMode.Word, propertyChanged: (bindable, oldValue, newValue) =>
886 var textEditor = (TextEditor)bindable;
887 if (newValue != null)
889 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.LINE_WRAP_MODE, new Tizen.NUI.PropertyValue((int)newValue));
892 defaultValueCreator: (bindable) =>
894 var textEditor = (TextEditor)bindable;
896 if (Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.LINE_WRAP_MODE).Get(out temp) == false)
898 NUILog.Error("LineWrapMode get error!");
900 return (LineWrapMode)temp;
902 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
903 [EditorBrowsable(EditorBrowsableState.Never)]
904 public static readonly BindableProperty EnableShiftSelectionProperty = BindableProperty.Create(nameof(TextEditor.EnableShiftSelection), typeof(bool), typeof(TextEditor), true, propertyChanged: (bindable, oldValue, newValue) =>
906 var textEditor = (TextEditor)bindable;
907 if (newValue != null)
909 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_SHIFT_SELECTION, new Tizen.NUI.PropertyValue((bool)newValue));
912 defaultValueCreator: (bindable) =>
914 var textEditor = (TextEditor)bindable;
915 //textEditor.mShiftSelectionFlag(true);
917 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.ENABLE_SHIFT_SELECTION).Get(out temp);
920 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
921 [EditorBrowsable(EditorBrowsableState.Never)]
922 public static readonly BindableProperty MatchSystemLanguageDirectionProperty = BindableProperty.Create(nameof(TextEditor.MatchSystemLanguageDirection), typeof(bool), typeof(TextEditor), false, propertyChanged: (bindable, oldValue, newValue) =>
924 var textEditor = (TextEditor)bindable;
925 if (newValue != null)
927 Tizen.NUI.Object.SetProperty(textEditor.swigCPtr, TextEditor.Property.MATCH_SYSTEM_LANGUAGE_DIRECTION, new Tizen.NUI.PropertyValue((bool)newValue));
930 defaultValueCreator: (bindable) =>
932 var textEditor = (TextEditor)bindable;
934 Tizen.NUI.Object.GetProperty(textEditor.swigCPtr, TextEditor.Property.MATCH_SYSTEM_LANGUAGE_DIRECTION).Get(out temp);
938 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
939 private string textEditorTextSid = null;
940 private string textEditorPlaceHolderTextSid = null;
941 private bool systemlangTextFlag = false;
942 private InputMethodContext inputMethodContext = null;
944 private EventHandler<TextChangedEventArgs> _textEditorTextChangedEventHandler;
945 private TextChangedCallbackDelegate _textEditorTextChangedCallbackDelegate;
947 private EventHandler<ScrollStateChangedEventArgs> _textEditorScrollStateChangedEventHandler;
948 private ScrollStateChangedCallbackDelegate _textEditorScrollStateChangedCallbackDelegate;
951 /// Creates the TextEditor control.
953 /// <since_tizen> 3 </since_tizen>
954 public TextEditor() : this(Interop.TextEditor.TextEditor_New(), true)
956 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
959 internal TextEditor(TextEditor handle) : this(Interop.TextEditor.new_TextEditor__SWIG_1(TextEditor.getCPtr(handle)), true)
961 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
964 internal TextEditor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.TextEditor.TextEditor_SWIGUpcast(cPtr), cMemoryOwn)
966 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
969 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
970 private delegate void TextChangedCallbackDelegate(IntPtr textEditor);
972 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
973 private delegate void ScrollStateChangedCallbackDelegate(IntPtr textEditor, ScrollState state);
976 /// An event for the TextChanged signal which can be used to subscribe or unsubscribe the event handler
977 /// provided by the user. The TextChanged signal is emitted when the text changes.<br />
979 /// <since_tizen> 3 </since_tizen>
980 public event EventHandler<TextChangedEventArgs> TextChanged
984 if (_textEditorTextChangedEventHandler == null)
986 _textEditorTextChangedCallbackDelegate = (OnTextChanged);
987 TextChangedSignal().Connect(_textEditorTextChangedCallbackDelegate);
989 _textEditorTextChangedEventHandler += value;
993 _textEditorTextChangedEventHandler -= value;
994 if (_textEditorTextChangedEventHandler == null && TextChangedSignal().Empty() == false)
996 TextChangedSignal().Disconnect(_textEditorTextChangedCallbackDelegate);
1002 /// Event for the ScrollStateChanged signal which can be used to subscribe or unsubscribe the event handler
1003 /// provided by the user. The ScrollStateChanged signal is emitted when the scroll state changes.<br />
1005 /// <since_tizen> 3 </since_tizen>
1006 public event EventHandler<ScrollStateChangedEventArgs> ScrollStateChanged
1010 if (_textEditorScrollStateChangedEventHandler == null)
1012 _textEditorScrollStateChangedCallbackDelegate = OnScrollStateChanged;
1013 ScrollStateChangedSignal(this).Connect(_textEditorScrollStateChangedCallbackDelegate);
1015 _textEditorScrollStateChangedEventHandler += value;
1019 _textEditorScrollStateChangedEventHandler -= value;
1020 if (_textEditorScrollStateChangedEventHandler == null && ScrollStateChangedSignal(this).Empty() == false)
1022 ScrollStateChangedSignal(this).Disconnect(_textEditorScrollStateChangedCallbackDelegate);
1028 /// The TranslatableText property.<br />
1029 /// The text can set the SID value.<br />
1031 /// <exception cref='ArgumentNullException'>
1032 /// ResourceManager about multilingual is null.
1034 /// <since_tizen> 4 </since_tizen>
1035 public string TranslatableText
1039 return textEditorTextSid;
1043 if (NUIApplication.MultilingualResourceManager == null)
1045 throw new ArgumentNullException("ResourceManager about multilingual is null");
1047 textEditorTextSid = value;
1048 Text = SetTranslatable(textEditorTextSid);
1049 NotifyPropertyChanged();
1053 /// The TranslatablePlaceholderText property.<br />
1054 /// The text can set the SID value.<br />
1056 /// <exception cref='ArgumentNullException'>
1057 /// ResourceManager about multilingual is null.
1059 /// <since_tizen> 4 </since_tizen>
1060 public string TranslatablePlaceholderText
1064 return textEditorPlaceHolderTextSid;
1068 if (NUIApplication.MultilingualResourceManager == null)
1070 throw new ArgumentNullException("ResourceManager about multilingual is null");
1072 textEditorPlaceHolderTextSid = value;
1073 PlaceholderText = SetTranslatable(textEditorPlaceHolderTextSid);
1074 NotifyPropertyChanged();
1079 /// The Text property.
1081 /// <since_tizen> 3 </since_tizen>
1086 return (string)GetValue(TextProperty);
1090 SetValue(TextProperty, value);
1091 NotifyPropertyChanged();
1096 /// The TextColor property.
1098 /// <since_tizen> 3 </since_tizen>
1099 public Vector4 TextColor
1103 return (Vector4)GetValue(TextColorProperty);
1107 SetValue(TextColorProperty, value);
1108 NotifyPropertyChanged();
1113 /// The FontFamily property.
1115 /// <since_tizen> 3 </since_tizen>
1116 public string FontFamily
1120 return (string)GetValue(FontFamilyProperty);
1124 SetValue(FontFamilyProperty, value);
1125 NotifyPropertyChanged();
1130 /// The FontStyle property.
1132 /// <since_tizen> 3 </since_tizen>
1133 public PropertyMap FontStyle
1137 return (PropertyMap)GetValue(FontStyleProperty);
1141 SetValue(FontStyleProperty, value);
1142 NotifyPropertyChanged();
1147 /// The PointSize property.
1149 /// <since_tizen> 3 </since_tizen>
1150 public float PointSize
1154 return (float)GetValue(PointSizeProperty);
1158 SetValue(PointSizeProperty, value);
1159 NotifyPropertyChanged();
1164 /// The HorizontalAlignment property.
1166 /// <since_tizen> 3 </since_tizen>
1167 public HorizontalAlignment HorizontalAlignment
1171 return (HorizontalAlignment)GetValue(HorizontalAlignmentProperty);
1175 SetValue(HorizontalAlignmentProperty, value);
1176 NotifyPropertyChanged();
1181 /// The ScrollThreshold property.
1183 /// <since_tizen> 3 </since_tizen>
1184 public float ScrollThreshold
1188 return (float)GetValue(ScrollThresholdProperty);
1192 SetValue(ScrollThresholdProperty, value);
1193 NotifyPropertyChanged();
1198 /// The ScrollSpeed property.
1200 /// <since_tizen> 3 </since_tizen>
1201 public float ScrollSpeed
1205 return (float)GetValue(ScrollSpeedProperty);
1209 SetValue(ScrollSpeedProperty, value);
1210 NotifyPropertyChanged();
1215 /// The PrimaryCursorColor property.
1217 /// <since_tizen> 3 </since_tizen>
1218 public Vector4 PrimaryCursorColor
1222 return (Vector4)GetValue(PrimaryCursorColorProperty);
1226 SetValue(PrimaryCursorColorProperty, value);
1227 NotifyPropertyChanged();
1232 /// The SecondaryCursorColor property.
1234 /// <since_tizen> 3 </since_tizen>
1235 public Vector4 SecondaryCursorColor
1239 return (Vector4)GetValue(SecondaryCursorColorProperty);
1243 SetValue(SecondaryCursorColorProperty, value);
1244 NotifyPropertyChanged();
1249 /// The EnableCursorBlink property.
1251 /// <since_tizen> 3 </since_tizen>
1252 public bool EnableCursorBlink
1256 return (bool)GetValue(EnableCursorBlinkProperty);
1260 SetValue(EnableCursorBlinkProperty, value);
1261 NotifyPropertyChanged();
1266 /// The CursorBlinkInterval property.
1268 /// <since_tizen> 3 </since_tizen>
1269 public float CursorBlinkInterval
1273 return (float)GetValue(CursorBlinkIntervalProperty);
1277 SetValue(CursorBlinkIntervalProperty, value);
1278 NotifyPropertyChanged();
1283 /// The CursorBlinkDuration property.
1285 /// <since_tizen> 3 </since_tizen>
1286 public float CursorBlinkDuration
1290 return (float)GetValue(CursorBlinkDurationProperty);
1294 SetValue(CursorBlinkDurationProperty, value);
1295 NotifyPropertyChanged();
1300 /// The CursorWidth property.
1302 /// <since_tizen> 3 </since_tizen>
1303 public int CursorWidth
1307 return (int)GetValue(CursorWidthProperty);
1311 SetValue(CursorWidthProperty, value);
1312 NotifyPropertyChanged();
1317 /// The GrabHandleImage property.
1319 /// <since_tizen> 3 </since_tizen>
1320 public string GrabHandleImage
1324 return (string)GetValue(GrabHandleImageProperty);
1328 SetValue(GrabHandleImageProperty, value);
1329 NotifyPropertyChanged();
1334 /// The GrabHandlePressedImage property.
1336 /// <since_tizen> 3 </since_tizen>
1337 public string GrabHandlePressedImage
1341 return (string)GetValue(GrabHandlePressedImageProperty);
1345 SetValue(GrabHandlePressedImageProperty, value);
1346 NotifyPropertyChanged();
1351 /// The SelectionHandleImageLeft property.
1353 /// <since_tizen> 3 </since_tizen>
1354 public PropertyMap SelectionHandleImageLeft
1358 return (PropertyMap)GetValue(SelectionHandleImageLeftProperty);
1362 SetValue(SelectionHandleImageLeftProperty, value);
1363 NotifyPropertyChanged();
1368 /// The SelectionHandleImageRight property.
1370 /// <since_tizen> 3 </since_tizen>
1371 public PropertyMap SelectionHandleImageRight
1375 return (PropertyMap)GetValue(SelectionHandleImageRightProperty);
1379 SetValue(SelectionHandleImageRightProperty, value);
1380 NotifyPropertyChanged();
1385 /// The SelectionHandlePressedImageLeft property.
1387 /// <since_tizen> 3 </since_tizen>
1388 public PropertyMap SelectionHandlePressedImageLeft
1392 return (PropertyMap)GetValue(SelectionHandlePressedImageLeftProperty);
1396 SetValue(SelectionHandlePressedImageLeftProperty, value);
1397 NotifyPropertyChanged();
1402 /// The SelectionHandlePressedImageRight property.
1404 /// <since_tizen> 3 </since_tizen>
1405 public PropertyMap SelectionHandlePressedImageRight
1409 return (PropertyMap)GetValue(SelectionHandlePressedImageRightProperty);
1413 SetValue(SelectionHandlePressedImageRightProperty, value);
1414 NotifyPropertyChanged();
1419 /// The SelectionHandleMarkerImageLeft property.
1421 /// <since_tizen> 3 </since_tizen>
1422 public PropertyMap SelectionHandleMarkerImageLeft
1426 return (PropertyMap)GetValue(SelectionHandleMarkerImageLeftProperty);
1430 SetValue(SelectionHandleMarkerImageLeftProperty, value);
1431 NotifyPropertyChanged();
1436 /// The SelectionHandleMarkerImageRight property.
1438 /// <since_tizen> 3 </since_tizen>
1439 public PropertyMap SelectionHandleMarkerImageRight
1443 return (PropertyMap)GetValue(SelectionHandleMarkerImageRightProperty);
1447 SetValue(SelectionHandleMarkerImageRightProperty, value);
1448 NotifyPropertyChanged();
1453 /// The SelectionHighlightColor property.
1455 /// <since_tizen> 3 </since_tizen>
1456 public Vector4 SelectionHighlightColor
1460 return (Vector4)GetValue(SelectionHighlightColorProperty);
1464 SetValue(SelectionHighlightColorProperty, value);
1465 NotifyPropertyChanged();
1470 /// The DecorationBoundingBox property.
1472 /// <since_tizen> 3 </since_tizen>
1473 public Rectangle DecorationBoundingBox
1477 return (Rectangle)GetValue(DecorationBoundingBoxProperty);
1481 SetValue(DecorationBoundingBoxProperty, value);
1482 NotifyPropertyChanged();
1487 /// The EnableMarkup property.
1489 /// <since_tizen> 3 </since_tizen>
1490 public bool EnableMarkup
1494 return (bool)GetValue(EnableMarkupProperty);
1498 SetValue(EnableMarkupProperty, value);
1499 NotifyPropertyChanged();
1504 /// The InputColor property.
1506 /// <since_tizen> 3 </since_tizen>
1507 public Vector4 InputColor
1511 return (Vector4)GetValue(InputColorProperty);
1515 SetValue(InputColorProperty, value);
1516 NotifyPropertyChanged();
1521 /// The InputFontFamily property.
1523 /// <since_tizen> 3 </since_tizen>
1524 public string InputFontFamily
1528 return (string)GetValue(InputFontFamilyProperty);
1532 SetValue(InputFontFamilyProperty, value);
1533 NotifyPropertyChanged();
1538 /// The InputFontStyle property.
1540 /// <since_tizen> 3 </since_tizen>
1541 public PropertyMap InputFontStyle
1545 return (PropertyMap)GetValue(InputFontStyleProperty);
1549 SetValue(InputFontStyleProperty, value);
1550 NotifyPropertyChanged();
1555 /// The InputPointSize property.
1557 /// <since_tizen> 3 </since_tizen>
1558 public float InputPointSize
1562 return (float)GetValue(InputPointSizeProperty);
1566 SetValue(InputPointSizeProperty, value);
1567 NotifyPropertyChanged();
1572 /// The LineSpacing property.
1574 /// <since_tizen> 3 </since_tizen>
1575 public float LineSpacing
1579 return (float)GetValue(LineSpacingProperty);
1583 SetValue(LineSpacingProperty, value);
1584 NotifyPropertyChanged();
1589 /// The InputLineSpacing property.
1591 /// <since_tizen> 3 </since_tizen>
1592 public float InputLineSpacing
1596 return (float)GetValue(InputLineSpacingProperty);
1600 SetValue(InputLineSpacingProperty, value);
1601 NotifyPropertyChanged();
1606 /// The Underline property.
1608 /// <since_tizen> 3 </since_tizen>
1609 public PropertyMap Underline
1613 return (PropertyMap)GetValue(UnderlineProperty);
1617 SetValue(UnderlineProperty, value);
1618 NotifyPropertyChanged();
1623 /// The InputUnderline property.
1625 /// <since_tizen> 3 </since_tizen>
1626 public string InputUnderline
1630 return (string)GetValue(InputUnderlineProperty);
1634 SetValue(InputUnderlineProperty, value);
1635 NotifyPropertyChanged();
1640 /// The Shadow property.
1642 /// <since_tizen> 3 </since_tizen>
1643 public PropertyMap Shadow
1647 return (PropertyMap)GetValue(ShadowProperty);
1651 SetValue(ShadowProperty, value);
1652 NotifyPropertyChanged();
1657 /// The InputShadow property.
1659 /// <since_tizen> 3 </since_tizen>
1660 public string InputShadow
1664 return (string)GetValue(InputShadowProperty);
1668 SetValue(InputShadowProperty, value);
1669 NotifyPropertyChanged();
1674 /// The Emboss property.
1676 /// <since_tizen> 3 </since_tizen>
1677 public string Emboss
1681 return (string)GetValue(EmbossProperty);
1685 SetValue(EmbossProperty, value);
1686 NotifyPropertyChanged();
1691 /// The InputEmboss property.
1693 /// <since_tizen> 3 </since_tizen>
1694 public string InputEmboss
1698 return (string)GetValue(InputEmbossProperty);
1702 SetValue(InputEmbossProperty, value);
1703 NotifyPropertyChanged();
1708 /// The Outline property.
1710 /// <since_tizen> 3 </since_tizen>
1711 public PropertyMap Outline
1715 return (PropertyMap)GetValue(OutlineProperty);
1719 SetValue(OutlineProperty, value);
1720 NotifyPropertyChanged();
1725 /// The InputOutline property.
1727 /// <since_tizen> 3 </since_tizen>
1728 public string InputOutline
1732 return (string)GetValue(InputOutlineProperty);
1736 SetValue(InputOutlineProperty, value);
1737 NotifyPropertyChanged();
1742 /// The SmoothScroll property.
1744 /// <since_tizen> 3 </since_tizen>
1745 public bool SmoothScroll
1749 return (bool)GetValue(SmoothScrollProperty);
1753 SetValue(SmoothScrollProperty, value);
1754 NotifyPropertyChanged();
1759 /// The SmoothScrollDuration property.
1761 /// <since_tizen> 3 </since_tizen>
1762 public float SmoothScrollDuration
1766 return (float)GetValue(SmoothScrollDurationProperty);
1770 SetValue(SmoothScrollDurationProperty, value);
1771 NotifyPropertyChanged();
1776 /// The EnableScrollBar property.
1778 /// <since_tizen> 3 </since_tizen>
1779 public bool EnableScrollBar
1783 return (bool)GetValue(EnableScrollBarProperty);
1787 SetValue(EnableScrollBarProperty, value);
1788 NotifyPropertyChanged();
1793 /// The ScrollBarShowDuration property.
1795 /// <since_tizen> 3 </since_tizen>
1796 public float ScrollBarShowDuration
1800 return (float)GetValue(ScrollBarShowDurationProperty);
1804 SetValue(ScrollBarShowDurationProperty, value);
1805 NotifyPropertyChanged();
1810 /// The ScrollBarFadeDuration property.
1812 /// <since_tizen> 3 </since_tizen>
1813 public float ScrollBarFadeDuration
1817 return (float)GetValue(ScrollBarFadeDurationProperty);
1821 SetValue(ScrollBarFadeDurationProperty, value);
1822 NotifyPropertyChanged();
1827 /// The PixelSize property.
1829 /// <since_tizen> 3 </since_tizen>
1830 public float PixelSize
1834 return (float)GetValue(PixelSizeProperty);
1838 SetValue(PixelSizeProperty, value);
1839 NotifyPropertyChanged();
1844 /// The line count of the text.
1846 /// <since_tizen> 3 </since_tizen>
1847 public int LineCount
1852 GetProperty(TextEditor.Property.LINE_COUNT).Get(out temp);
1858 /// The text to display when the TextEditor is empty and inactive.
1860 /// <since_tizen> 3 </since_tizen>
1861 public string PlaceholderText
1865 return (string)GetValue(PlaceholderTextProperty);
1869 SetValue(PlaceholderTextProperty, value);
1870 NotifyPropertyChanged();
1875 /// The Placeholder text color.
1877 /// <since_tizen> 3 </since_tizen>
1878 public Color PlaceholderTextColor
1882 return (Color)GetValue(PlaceholderTextColorProperty);
1886 SetValue(PlaceholderTextColorProperty, value);
1887 NotifyPropertyChanged();
1892 /// The EnableSelection property.
1894 /// <since_tizen> 3 </since_tizen>
1895 public bool EnableSelection
1899 return (bool)GetValue(EnableSelectionProperty);
1903 SetValue(EnableSelectionProperty, value);
1904 NotifyPropertyChanged();
1909 /// The Placeholder property.
1910 /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
1913 /// The following example demonstrates how to set the placeholder property.
1915 /// PropertyMap propertyMap = new PropertyMap();
1916 /// propertyMap.Add("text", new PropertyValue("Setting Placeholder Text"));
1917 /// propertyMap.Add("textFocused", new PropertyValue("Setting Placeholder Text Focused"));
1918 /// propertyMap.Add("color", new PropertyValue(Color.Red));
1919 /// propertyMap.Add("fontFamily", new PropertyValue("Arial"));
1920 /// propertyMap.Add("pointSize", new PropertyValue(12.0f));
1922 /// PropertyMap fontStyleMap = new PropertyMap();
1923 /// fontStyleMap.Add("weight", new PropertyValue("bold"));
1924 /// fontStyleMap.Add("width", new PropertyValue("condensed"));
1925 /// fontStyleMap.Add("slant", new PropertyValue("italic"));
1926 /// propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap));
1928 /// TextEditor editor = new TextEditor();
1929 /// editor.Placeholder = propertyMap;
1932 /// <since_tizen> 3 </since_tizen>
1933 public Tizen.NUI.PropertyMap Placeholder
1937 return (PropertyMap)GetValue(PlaceholderProperty);
1941 SetValue(PlaceholderProperty, value);
1942 NotifyPropertyChanged();
1947 /// The LineWrapMode property.<br />
1948 /// The line wrap mode when the text lines over the layout width.<br />
1950 /// <since_tizen> 4 </since_tizen>
1951 public LineWrapMode LineWrapMode
1955 return (LineWrapMode)GetValue(LineWrapModeProperty);
1959 SetValue(LineWrapModeProperty, value);
1960 NotifyPropertyChanged();
1965 /// Enables Text selection using Shift key.
1967 /// <since_tizen> 5 </since_tizen>
1968 /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
1969 [EditorBrowsable(EditorBrowsableState.Never)]
1970 public bool EnableShiftSelection
1974 return (bool)GetValue(EnableShiftSelectionProperty);
1978 SetValue(EnableShiftSelectionProperty, value);
1979 NotifyPropertyChanged();
1984 /// The text alignment to match the direction of the system language.
1986 /// <since_tizen> 6 </since_tizen>
1987 public bool MatchSystemLanguageDirection
1991 return (bool)GetValue(MatchSystemLanguageDirectionProperty);
1995 SetValue(MatchSystemLanguageDirectionProperty, value);
1996 NotifyPropertyChanged();
2001 /// Get the InputMethodContext instance.
2003 /// <returns>The InputMethodContext instance.</returns>
2004 /// <since_tizen> 5 </since_tizen>
2005 public InputMethodContext GetInputMethodContext()
2007 if (inputMethodContext == null)
2009 /*Avoid raising InputMethodContext reference count.*/
2010 inputMethodContext = new InputMethodContext(Interop.TextEditor.TextEditor_GetInputMethodContext(swigCPtr), true);
2011 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2013 return inputMethodContext;
2016 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextEditor obj)
2018 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
2021 internal TextEditorSignal TextChangedSignal()
2023 TextEditorSignal ret = new TextEditorSignal(Interop.TextEditor.TextEditor_TextChangedSignal(swigCPtr), false);
2024 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2028 internal ScrollStateChangedSignal ScrollStateChangedSignal(TextEditor textEditor)
2030 ScrollStateChangedSignal ret = new ScrollStateChangedSignal(Interop.TextEditor.TextEditor_ScrollStateChangedSignal(TextEditor.getCPtr(textEditor)), false);
2031 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2035 internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextEditor_Dali__Toolkit__TextEditor__InputStyle__MaskF_t InputStyleChangedSignal()
2037 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(Interop.TextEditor.TextEditor_InputStyleChangedSignal(swigCPtr), false);
2038 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2045 /// <since_tizen> 3 </since_tizen>
2046 protected override void Dispose(DisposeTypes type)
2053 if (type == DisposeTypes.Explicit)
2056 //Release your own managed resources here.
2057 //You should release all of your own disposable objects here.
2060 //Release your own unmanaged resources here.
2061 //You should not access any managed member here except static instance.
2062 //because the execution order of Finalizes is non-deterministic.
2064 if (this.HasBody() && _textEditorTextChangedCallbackDelegate != null)
2066 TextChangedSignal().Disconnect(_textEditorTextChangedCallbackDelegate);
2069 if (swigCPtr.Handle != global::System.IntPtr.Zero)
2073 swigCMemOwn = false;
2074 // In order to speed up IME hide, temporarily add
2075 GetInputMethodContext()?.DestroyContext();
2076 Interop.TextEditor.delete_TextEditor(swigCPtr);
2078 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
2084 private void OnTextChanged(IntPtr textEditor)
2086 TextChangedEventArgs e = new TextChangedEventArgs();
2088 // Populate all members of "e" (TextChangedEventArgs) with real data
2089 e.TextEditor = Registry.GetManagedBaseHandleFromNativePtr(textEditor) as TextEditor;
2091 if (_textEditorTextChangedEventHandler != null)
2093 //here we send all data to user event handlers
2094 _textEditorTextChangedEventHandler(this, e);
2099 private void OnScrollStateChanged(IntPtr textEditor, ScrollState state)
2101 ScrollStateChangedEventArgs e = new ScrollStateChangedEventArgs();
2103 if (textEditor != global::System.IntPtr.Zero)
2105 // Populate all members of "e" (ScrollStateChangedEventArgs) with real data
2106 e.TextEditor = Registry.GetManagedBaseHandleFromNativePtr(textEditor) as TextEditor;
2107 e.ScrollState = state;
2110 if (_textEditorScrollStateChangedEventHandler != null)
2112 //here we send all data to user event handlers
2113 _textEditorScrollStateChangedEventHandler(this, e);
2117 private string SetTranslatable(string textEditorSid)
2119 string translatableText = null;
2120 translatableText = NUIApplication.MultilingualResourceManager?.GetString(textEditorSid, new CultureInfo(SystemSettings.LocaleLanguage.Replace("_", "-")));
2121 if (translatableText != null)
2123 if (systemlangTextFlag == false)
2125 SystemSettings.LocaleLanguageChanged += new WeakEventHandler<LocaleLanguageChangedEventArgs>(SystemSettings_LocaleLanguageChanged).Handler;
2126 systemlangTextFlag = true;
2128 return translatableText;
2132 translatableText = "";
2133 return translatableText;
2137 private void SystemSettings_LocaleLanguageChanged(object sender, LocaleLanguageChangedEventArgs e)
2139 if (textEditorTextSid != null)
2141 Text = NUIApplication.MultilingualResourceManager?.GetString(textEditorTextSid, new CultureInfo(e.Value.Replace("_", "-")));
2143 if (textEditorPlaceHolderTextSid != null)
2145 PlaceholderText = NUIApplication.MultilingualResourceManager?.GetString(textEditorPlaceHolderTextSid, new CultureInfo(e.Value.Replace("_", "-")));
2150 /// Event arguments that passed via the TextChanged signal.
2152 /// <since_tizen> 3 </since_tizen>
2153 public class TextChangedEventArgs : EventArgs
2155 private TextEditor _textEditor;
2158 /// TextEditor - is the texteditor control which has the text contents changed.
2160 /// <since_tizen> 3 </since_tizen>
2161 public TextEditor TextEditor
2169 _textEditor = value;
2175 /// Event arguments that passed via the ScrollStateChanged signal.
2177 /// <since_tizen> 3 </since_tizen>
2178 public class ScrollStateChangedEventArgs : EventArgs
2180 private TextEditor _textEditor;
2181 private ScrollState _scrollState;
2184 /// TextEditor - is the texteditor control which has the scroll state changed.
2186 /// <since_tizen> 3 </since_tizen>
2187 public TextEditor TextEditor
2195 _textEditor = value;
2200 /// ScrollState - is the texteditor control scroll state.
2202 /// <since_tizen> 3 </since_tizen>
2203 public ScrollState ScrollState
2207 return _scrollState;
2211 _scrollState = value;
2216 internal new class Property
2218 internal static readonly int RENDERING_BACKEND = Interop.TextEditor.TextEditor_Property_RENDERING_BACKEND_get();
2219 internal static readonly int TEXT = Interop.TextEditor.TextEditor_Property_TEXT_get();
2220 internal static readonly int TEXT_COLOR = Interop.TextEditor.TextEditor_Property_TEXT_COLOR_get();
2221 internal static readonly int FONT_FAMILY = Interop.TextEditor.TextEditor_Property_FONT_FAMILY_get();
2222 internal static readonly int FONT_STYLE = Interop.TextEditor.TextEditor_Property_FONT_STYLE_get();
2223 internal static readonly int POINT_SIZE = Interop.TextEditor.TextEditor_Property_POINT_SIZE_get();
2224 internal static readonly int HORIZONTAL_ALIGNMENT = Interop.TextEditor.TextEditor_Property_HORIZONTAL_ALIGNMENT_get();
2225 internal static readonly int SCROLL_THRESHOLD = Interop.TextEditor.TextEditor_Property_SCROLL_THRESHOLD_get();
2226 internal static readonly int SCROLL_SPEED = Interop.TextEditor.TextEditor_Property_SCROLL_SPEED_get();
2227 internal static readonly int PRIMARY_CURSOR_COLOR = Interop.TextEditor.TextEditor_Property_PRIMARY_CURSOR_COLOR_get();
2228 internal static readonly int SECONDARY_CURSOR_COLOR = Interop.TextEditor.TextEditor_Property_SECONDARY_CURSOR_COLOR_get();
2229 internal static readonly int ENABLE_CURSOR_BLINK = Interop.TextEditor.TextEditor_Property_ENABLE_CURSOR_BLINK_get();
2230 internal static readonly int CURSOR_BLINK_INTERVAL = Interop.TextEditor.TextEditor_Property_CURSOR_BLINK_INTERVAL_get();
2231 internal static readonly int CURSOR_BLINK_DURATION = Interop.TextEditor.TextEditor_Property_CURSOR_BLINK_DURATION_get();
2232 internal static readonly int CURSOR_WIDTH = Interop.TextEditor.TextEditor_Property_CURSOR_WIDTH_get();
2233 internal static readonly int GRAB_HANDLE_IMAGE = Interop.TextEditor.TextEditor_Property_GRAB_HANDLE_IMAGE_get();
2234 internal static readonly int GRAB_HANDLE_PRESSED_IMAGE = Interop.TextEditor.TextEditor_Property_GRAB_HANDLE_PRESSED_IMAGE_get();
2235 internal static readonly int SELECTION_HANDLE_IMAGE_LEFT = Interop.TextEditor.TextEditor_Property_SELECTION_HANDLE_IMAGE_LEFT_get();
2236 internal static readonly int SELECTION_HANDLE_IMAGE_RIGHT = Interop.TextEditor.TextEditor_Property_SELECTION_HANDLE_IMAGE_RIGHT_get();
2237 internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_LEFT = Interop.TextEditor.TextEditor_Property_SELECTION_HANDLE_PRESSED_IMAGE_LEFT_get();
2238 internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = Interop.TextEditor.TextEditor_Property_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT_get();
2239 internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_LEFT = Interop.TextEditor.TextEditor_Property_SELECTION_HANDLE_MARKER_IMAGE_LEFT_get();
2240 internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_RIGHT = Interop.TextEditor.TextEditor_Property_SELECTION_HANDLE_MARKER_IMAGE_RIGHT_get();
2241 internal static readonly int SELECTION_HIGHLIGHT_COLOR = Interop.TextEditor.TextEditor_Property_SELECTION_HIGHLIGHT_COLOR_get();
2242 internal static readonly int DECORATION_BOUNDING_BOX = Interop.TextEditor.TextEditor_Property_DECORATION_BOUNDING_BOX_get();
2243 internal static readonly int ENABLE_MARKUP = Interop.TextEditor.TextEditor_Property_ENABLE_MARKUP_get();
2244 internal static readonly int INPUT_COLOR = Interop.TextEditor.TextEditor_Property_INPUT_COLOR_get();
2245 internal static readonly int INPUT_FONT_FAMILY = Interop.TextEditor.TextEditor_Property_INPUT_FONT_FAMILY_get();
2246 internal static readonly int INPUT_FONT_STYLE = Interop.TextEditor.TextEditor_Property_INPUT_FONT_STYLE_get();
2247 internal static readonly int INPUT_POINT_SIZE = Interop.TextEditor.TextEditor_Property_INPUT_POINT_SIZE_get();
2248 internal static readonly int LINE_SPACING = Interop.TextEditor.TextEditor_Property_LINE_SPACING_get();
2249 internal static readonly int INPUT_LINE_SPACING = Interop.TextEditor.TextEditor_Property_INPUT_LINE_SPACING_get();
2250 internal static readonly int UNDERLINE = Interop.TextEditor.TextEditor_Property_UNDERLINE_get();
2251 internal static readonly int INPUT_UNDERLINE = Interop.TextEditor.TextEditor_Property_INPUT_UNDERLINE_get();
2252 internal static readonly int SHADOW = Interop.TextEditor.TextEditor_Property_SHADOW_get();
2253 internal static readonly int INPUT_SHADOW = Interop.TextEditor.TextEditor_Property_INPUT_SHADOW_get();
2254 internal static readonly int EMBOSS = Interop.TextEditor.TextEditor_Property_EMBOSS_get();
2255 internal static readonly int INPUT_EMBOSS = Interop.TextEditor.TextEditor_Property_INPUT_EMBOSS_get();
2256 internal static readonly int OUTLINE = Interop.TextEditor.TextEditor_Property_OUTLINE_get();
2257 internal static readonly int INPUT_OUTLINE = Interop.TextEditor.TextEditor_Property_INPUT_OUTLINE_get();
2258 internal static readonly int SMOOTH_SCROLL = Interop.TextEditor.TextEditor_Property_SMOOTH_SCROLL_get();
2259 internal static readonly int SMOOTH_SCROLL_DURATION = Interop.TextEditor.TextEditor_Property_SMOOTH_SCROLL_DURATION_get();
2260 internal static readonly int ENABLE_SCROLL_BAR = Interop.TextEditor.TextEditor_Property_ENABLE_SCROLL_BAR_get();
2261 internal static readonly int SCROLL_BAR_SHOW_DURATION = Interop.TextEditor.TextEditor_Property_SCROLL_BAR_SHOW_DURATION_get();
2262 internal static readonly int SCROLL_BAR_FADE_DURATION = Interop.TextEditor.TextEditor_Property_SCROLL_BAR_FADE_DURATION_get();
2263 internal static readonly int PIXEL_SIZE = Interop.TextEditor.TextEditor_Property_PIXEL_SIZE_get();
2264 internal static readonly int LINE_COUNT = Interop.TextEditor.TextEditor_Property_LINE_COUNT_get();
2265 internal static readonly int ENABLE_SELECTION = Interop.TextEditor.TextEditor_Property_ENABLE_SELECTION_get();
2266 internal static readonly int PLACEHOLDER = Interop.TextEditor.TextEditor_Property_PLACEHOLDER_get();
2267 internal static readonly int LINE_WRAP_MODE = Interop.TextEditor.TextEditor_Property_LINE_WRAP_MODE_get();
2268 internal static readonly int PLACEHOLDER_TEXT = Interop.TextEditor.TextEditor_Property_PLACEHOLDER_TEXT_get();
2269 internal static readonly int PLACEHOLDER_TEXT_COLOR = Interop.TextEditor.TextEditor_Property_PLACEHOLDER_TEXT_COLOR_get();
2270 internal static readonly int ENABLE_SHIFT_SELECTION = Interop.TextEditor.TextEditor_Property_ENABLE_SHIFT_SELECTION_get();
2271 internal static readonly int MATCH_SYSTEM_LANGUAGE_DIRECTION = Interop.TextEditor.TextEditor_Property_MATCH_SYSTEM_LANGUAGE_DIRECTION_get();
2274 internal class InputStyle
2280 FontFamily = 0x0002,
2283 LineSpacing = 0x0010,