2 * Copyright(c) 2019 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 using System.ComponentModel;
19 using Tizen.NUI.Binding;
21 namespace Tizen.NUI.BaseComponents
24 /// A control which provides a multi-line editable text editor.
26 /// <since_tizen> 3 </since_tizen>
27 public partial class TextEditor
29 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
30 [EditorBrowsable(EditorBrowsableState.Never)]
31 public static readonly BindableProperty TextProperty = BindableProperty.Create(nameof(Text), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
33 var textEditor = (TextEditor)bindable;
36 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.TEXT, new Tizen.NUI.PropertyValue((string)newValue));
39 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
41 var textEditor = (TextEditor)bindable;
43 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.TEXT).Get(out temp);
46 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
47 [EditorBrowsable(EditorBrowsableState.Never)]
48 public static readonly BindableProperty TextColorProperty = BindableProperty.Create(nameof(TextColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
50 var textEditor = (TextEditor)bindable;
53 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.TextColor, new Tizen.NUI.PropertyValue((Vector4)newValue));
56 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
58 var textEditor = (TextEditor)bindable;
59 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
60 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.TextColor).Get(temp);
63 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
64 [EditorBrowsable(EditorBrowsableState.Never)]
65 public static readonly BindableProperty FontFamilyProperty = BindableProperty.Create(nameof(FontFamily), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
67 var textEditor = (TextEditor)bindable;
70 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.FontFamily, new Tizen.NUI.PropertyValue((string)newValue));
73 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
75 var textEditor = (TextEditor)bindable;
77 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.FontFamily).Get(out temp);
80 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
81 [EditorBrowsable(EditorBrowsableState.Never)]
82 public static readonly BindableProperty FontStyleProperty = BindableProperty.Create(nameof(FontStyle), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
84 var textEditor = (TextEditor)bindable;
87 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.FontStyle, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
90 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
92 var textEditor = (TextEditor)bindable;
93 PropertyMap temp = new PropertyMap();
94 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.FontStyle).Get(temp);
97 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
98 [EditorBrowsable(EditorBrowsableState.Never)]
99 public static readonly BindableProperty PointSizeProperty = BindableProperty.Create(nameof(PointSize), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
101 var textEditor = (TextEditor)bindable;
102 if (newValue != null)
104 if (GraphicsTypeManager.Instance.ScalingFactor != 0.0f)
106 newValue = (float)newValue * GraphicsTypeManager.Instance.ScalingFactor;
108 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.PointSize, new Tizen.NUI.PropertyValue((float)newValue));
111 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
113 var textEditor = (TextEditor)bindable;
115 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.PointSize).Get(out temp);
116 if (GraphicsTypeManager.Instance.ScalingFactor != 0.0f)
118 temp = (float)temp / GraphicsTypeManager.Instance.ScalingFactor;
122 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
123 [EditorBrowsable(EditorBrowsableState.Never)]
124 public static readonly BindableProperty HorizontalAlignmentProperty = BindableProperty.Create(nameof(HorizontalAlignment), typeof(HorizontalAlignment), typeof(TextEditor), HorizontalAlignment.Begin, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
126 var textEditor = (TextEditor)bindable;
127 if (newValue != null)
129 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.HorizontalAlignment, new Tizen.NUI.PropertyValue((int)newValue));
132 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
134 var textEditor = (TextEditor)bindable;
136 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.HorizontalAlignment).Get(out temp) == false)
138 NUILog.Error("HorizontalAlignment get error!");
141 return temp.GetValueByDescription<HorizontalAlignment>();
143 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
144 [EditorBrowsable(EditorBrowsableState.Never)]
145 public static readonly BindableProperty ScrollThresholdProperty = BindableProperty.Create(nameof(ScrollThreshold), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
147 var textEditor = (TextEditor)bindable;
148 if (newValue != null)
150 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.ScrollThreshold, new Tizen.NUI.PropertyValue((float)newValue));
153 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
155 var textEditor = (TextEditor)bindable;
157 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.ScrollThreshold).Get(out temp);
160 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
161 [EditorBrowsable(EditorBrowsableState.Never)]
162 public static readonly BindableProperty ScrollSpeedProperty = BindableProperty.Create(nameof(ScrollSpeed), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
164 var textEditor = (TextEditor)bindable;
165 if (newValue != null)
167 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.ScrollSpeed, new Tizen.NUI.PropertyValue((float)newValue));
170 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
172 var textEditor = (TextEditor)bindable;
174 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.ScrollSpeed).Get(out temp);
177 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
178 [EditorBrowsable(EditorBrowsableState.Never)]
179 public static readonly BindableProperty PrimaryCursorColorProperty = BindableProperty.Create(nameof(PrimaryCursorColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
181 var textEditor = (TextEditor)bindable;
182 if (newValue != null)
184 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.PrimaryCursorColor, new Tizen.NUI.PropertyValue((Vector4)newValue));
187 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
189 var textEditor = (TextEditor)bindable;
190 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
191 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.PrimaryCursorColor).Get(temp);
194 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
195 [EditorBrowsable(EditorBrowsableState.Never)]
196 public static readonly BindableProperty SecondaryCursorColorProperty = BindableProperty.Create(nameof(SecondaryCursorColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
198 var textEditor = (TextEditor)bindable;
199 if (newValue != null)
201 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SecondaryCursorColor, new Tizen.NUI.PropertyValue((Vector4)newValue));
204 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
206 var textEditor = (TextEditor)bindable;
207 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
208 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SecondaryCursorColor).Get(temp);
211 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
212 [EditorBrowsable(EditorBrowsableState.Never)]
213 public static readonly BindableProperty EnableCursorBlinkProperty = BindableProperty.Create(nameof(EnableCursorBlink), typeof(bool), typeof(TextEditor), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
215 var textEditor = (TextEditor)bindable;
216 if (newValue != null)
218 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.EnableCursorBlink, new Tizen.NUI.PropertyValue((bool)newValue));
221 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
223 var textEditor = (TextEditor)bindable;
225 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.EnableCursorBlink).Get(out temp);
228 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
229 [EditorBrowsable(EditorBrowsableState.Never)]
230 public static readonly BindableProperty CursorBlinkIntervalProperty = BindableProperty.Create(nameof(CursorBlinkInterval), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
232 var textEditor = (TextEditor)bindable;
233 if (newValue != null)
235 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.CursorBlinkInterval, new Tizen.NUI.PropertyValue((float)newValue));
238 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
240 var textEditor = (TextEditor)bindable;
242 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.CursorBlinkInterval).Get(out temp);
245 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
246 [EditorBrowsable(EditorBrowsableState.Never)]
247 public static readonly BindableProperty CursorBlinkDurationProperty = BindableProperty.Create(nameof(CursorBlinkDuration), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
249 var textEditor = (TextEditor)bindable;
250 if (newValue != null)
252 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.CursorBlinkDuration, new Tizen.NUI.PropertyValue((float)newValue));
255 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
257 var textEditor = (TextEditor)bindable;
259 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.CursorBlinkDuration).Get(out temp);
262 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
263 [EditorBrowsable(EditorBrowsableState.Never)]
264 public static readonly BindableProperty CursorWidthProperty = BindableProperty.Create(nameof(CursorWidth), typeof(int), typeof(TextEditor), default(int), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
266 var textEditor = (TextEditor)bindable;
267 if (newValue != null)
269 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.CursorWidth, new Tizen.NUI.PropertyValue((int)newValue));
272 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
274 var textEditor = (TextEditor)bindable;
276 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.CursorWidth).Get(out temp);
279 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
280 [EditorBrowsable(EditorBrowsableState.Never)]
281 public static readonly BindableProperty GrabHandleImageProperty = BindableProperty.Create(nameof(GrabHandleImage), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
283 var textEditor = (TextEditor)bindable;
284 if (newValue != null)
286 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.GrabHandleImage, new Tizen.NUI.PropertyValue((string)newValue));
289 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
291 var textEditor = (TextEditor)bindable;
293 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.GrabHandleImage).Get(out temp);
296 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
297 [EditorBrowsable(EditorBrowsableState.Never)]
298 public static readonly BindableProperty GrabHandlePressedImageProperty = BindableProperty.Create(nameof(GrabHandlePressedImage), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
300 var textEditor = (TextEditor)bindable;
301 if (newValue != null)
303 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.GrabHandlePressedImage, new Tizen.NUI.PropertyValue((string)newValue));
306 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
308 var textEditor = (TextEditor)bindable;
310 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.GrabHandlePressedImage).Get(out temp);
313 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
314 [EditorBrowsable(EditorBrowsableState.Never)]
315 public static readonly BindableProperty SelectionHandleImageLeftProperty = BindableProperty.Create(nameof(SelectionHandleImageLeft), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
317 var textEditor = (TextEditor)bindable;
318 if (newValue != null)
320 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandleImageLeft, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
323 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
325 var textEditor = (TextEditor)bindable;
326 PropertyMap temp = new PropertyMap();
327 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandleImageLeft).Get(temp);
330 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
331 [EditorBrowsable(EditorBrowsableState.Never)]
332 public static readonly BindableProperty SelectionHandleImageRightProperty = BindableProperty.Create(nameof(SelectionHandleImageRight), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
334 var textEditor = (TextEditor)bindable;
335 if (newValue != null)
337 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandleImageRight, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
340 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
342 var textEditor = (TextEditor)bindable;
343 PropertyMap temp = new PropertyMap();
344 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandleImageRight).Get(temp);
347 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
348 [EditorBrowsable(EditorBrowsableState.Never)]
349 public static readonly BindableProperty SelectionHandlePressedImageLeftProperty = BindableProperty.Create(nameof(SelectionHandlePressedImageLeft), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
351 var textEditor = (TextEditor)bindable;
352 if (newValue != null)
354 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandlePressedImageLeft, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
357 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
359 var textEditor = (TextEditor)bindable;
360 PropertyMap temp = new PropertyMap();
361 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandlePressedImageLeft).Get(temp);
364 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
365 [EditorBrowsable(EditorBrowsableState.Never)]
366 public static readonly BindableProperty SelectionHandlePressedImageRightProperty = BindableProperty.Create(nameof(SelectionHandlePressedImageRight), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
368 var textEditor = (TextEditor)bindable;
369 if (newValue != null)
371 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandlePressedImageRight, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
374 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
376 var textEditor = (TextEditor)bindable;
377 PropertyMap temp = new PropertyMap();
378 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandlePressedImageRight).Get(temp);
381 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
382 [EditorBrowsable(EditorBrowsableState.Never)]
383 public static readonly BindableProperty SelectionHandleMarkerImageLeftProperty = BindableProperty.Create(nameof(SelectionHandleMarkerImageLeft), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
385 var textEditor = (TextEditor)bindable;
386 if (newValue != null)
388 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandleMarkerImageLeft, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
391 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
393 var textEditor = (TextEditor)bindable;
394 PropertyMap temp = new PropertyMap();
395 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandleMarkerImageLeft).Get(temp);
398 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
399 [EditorBrowsable(EditorBrowsableState.Never)]
400 public static readonly BindableProperty SelectionHandleMarkerImageRightProperty = BindableProperty.Create(nameof(SelectionHandleMarkerImageRight), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
402 var textEditor = (TextEditor)bindable;
403 if (newValue != null)
405 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandleMarkerImageRight, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
408 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
410 var textEditor = (TextEditor)bindable;
411 PropertyMap temp = new PropertyMap();
412 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandleMarkerImageRight).Get(temp);
415 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
416 [EditorBrowsable(EditorBrowsableState.Never)]
417 public static readonly BindableProperty SelectionHighlightColorProperty = BindableProperty.Create(nameof(SelectionHighlightColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
419 var textEditor = (TextEditor)bindable;
420 if (newValue != null)
422 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHighlightColor, new Tizen.NUI.PropertyValue((Vector4)newValue));
425 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
427 var textEditor = (TextEditor)bindable;
428 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
429 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHighlightColor).Get(temp);
432 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
433 [EditorBrowsable(EditorBrowsableState.Never)]
434 public static readonly BindableProperty DecorationBoundingBoxProperty = BindableProperty.Create(nameof(DecorationBoundingBox), typeof(Rectangle), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
436 var textEditor = (TextEditor)bindable;
437 if (newValue != null)
439 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.DecorationBoundingBox, new Tizen.NUI.PropertyValue((Rectangle)newValue));
442 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
444 var textEditor = (TextEditor)bindable;
445 Rectangle temp = new Rectangle(0, 0, 0, 0);
446 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.DecorationBoundingBox).Get(temp);
449 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
450 [EditorBrowsable(EditorBrowsableState.Never)]
451 public static readonly BindableProperty EnableMarkupProperty = BindableProperty.Create(nameof(EnableMarkup), typeof(bool), typeof(TextEditor), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
453 var textEditor = (TextEditor)bindable;
454 if (newValue != null)
456 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.EnableMarkup, new Tizen.NUI.PropertyValue((bool)newValue));
459 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
461 var textEditor = (TextEditor)bindable;
463 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.EnableMarkup).Get(out temp);
466 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
467 [EditorBrowsable(EditorBrowsableState.Never)]
468 public static readonly BindableProperty InputColorProperty = BindableProperty.Create(nameof(InputColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
470 var textEditor = (TextEditor)bindable;
471 if (newValue != null)
473 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputColor, new Tizen.NUI.PropertyValue((Vector4)newValue));
476 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
478 var textEditor = (TextEditor)bindable;
479 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
480 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputColor).Get(temp);
483 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
484 [EditorBrowsable(EditorBrowsableState.Never)]
485 public static readonly BindableProperty InputFontFamilyProperty = BindableProperty.Create(nameof(InputFontFamily), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
487 var textEditor = (TextEditor)bindable;
488 if (newValue != null)
490 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputFontFamily, new Tizen.NUI.PropertyValue((string)newValue));
493 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
495 var textEditor = (TextEditor)bindable;
497 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputFontFamily).Get(out temp);
500 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
501 [EditorBrowsable(EditorBrowsableState.Never)]
502 public static readonly BindableProperty InputFontStyleProperty = BindableProperty.Create(nameof(InputFontStyle), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
504 var textEditor = (TextEditor)bindable;
505 if (newValue != null)
507 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputFontStyle, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
510 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
512 var textEditor = (TextEditor)bindable;
513 PropertyMap temp = new PropertyMap();
514 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputFontStyle).Get(temp);
517 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
518 [EditorBrowsable(EditorBrowsableState.Never)]
519 public static readonly BindableProperty InputPointSizeProperty = BindableProperty.Create(nameof(InputPointSize), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
521 var textEditor = (TextEditor)bindable;
522 if (newValue != null)
524 if (GraphicsTypeManager.Instance.ScalingFactor != 0.0f)
526 newValue = (float)newValue * GraphicsTypeManager.Instance.ScalingFactor;
528 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputPointSize, new Tizen.NUI.PropertyValue((float)newValue));
531 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
533 var textEditor = (TextEditor)bindable;
535 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputPointSize).Get(out temp);
536 if (GraphicsTypeManager.Instance.ScalingFactor != 0.0f)
538 temp = (float)temp / GraphicsTypeManager.Instance.ScalingFactor;
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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
546 var textEditor = (TextEditor)bindable;
547 if (newValue != null)
549 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.LineSpacing, new Tizen.NUI.PropertyValue((float)newValue));
552 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
554 var textEditor = (TextEditor)bindable;
556 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.LineSpacing).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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
563 var textEditor = (TextEditor)bindable;
564 if (newValue != null)
566 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputLineSpacing, new Tizen.NUI.PropertyValue((float)newValue));
569 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
571 var textEditor = (TextEditor)bindable;
573 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputLineSpacing).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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
580 var textEditor = (TextEditor)bindable;
581 if (newValue != null)
583 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.UNDERLINE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
586 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
588 var textEditor = (TextEditor)bindable;
589 PropertyMap temp = new PropertyMap();
590 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
597 var textEditor = (TextEditor)bindable;
598 if (newValue != null)
600 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputUnderline, new Tizen.NUI.PropertyValue((string)newValue));
603 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
605 var textEditor = (TextEditor)bindable;
607 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputUnderline).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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
614 var textEditor = (TextEditor)bindable;
615 if (newValue != null)
617 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SHADOW, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
620 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
622 var textEditor = (TextEditor)bindable;
623 PropertyMap temp = new PropertyMap();
624 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
631 var textEditor = (TextEditor)bindable;
632 if (newValue != null)
634 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputShadow, new Tizen.NUI.PropertyValue((string)newValue));
637 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
639 var textEditor = (TextEditor)bindable;
641 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputShadow).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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
648 var textEditor = (TextEditor)bindable;
649 if (newValue != null)
651 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.EMBOSS, new Tizen.NUI.PropertyValue((string)newValue));
654 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
656 var textEditor = (TextEditor)bindable;
658 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
665 var textEditor = (TextEditor)bindable;
666 if (newValue != null)
668 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputEmboss, new Tizen.NUI.PropertyValue((string)newValue));
671 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
673 var textEditor = (TextEditor)bindable;
675 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputEmboss).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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
682 var textEditor = (TextEditor)bindable;
683 if (newValue != null)
685 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.OUTLINE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
688 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
690 var textEditor = (TextEditor)bindable;
691 PropertyMap temp = new PropertyMap();
692 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
699 var textEditor = (TextEditor)bindable;
700 if (newValue != null)
702 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputOutline, new Tizen.NUI.PropertyValue((string)newValue));
705 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
707 var textEditor = (TextEditor)bindable;
709 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputOutline).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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
716 var textEditor = (TextEditor)bindable;
717 if (newValue != null)
719 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SmoothScroll, new Tizen.NUI.PropertyValue((bool)newValue));
722 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
724 var textEditor = (TextEditor)bindable;
726 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SmoothScroll).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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
733 var textEditor = (TextEditor)bindable;
734 if (newValue != null)
736 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SmoothScrollDuration, new Tizen.NUI.PropertyValue((float)newValue));
739 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
741 var textEditor = (TextEditor)bindable;
743 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SmoothScrollDuration).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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
750 var textEditor = (TextEditor)bindable;
751 if (newValue != null)
753 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.EnableScrollBar, new Tizen.NUI.PropertyValue((bool)newValue));
756 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
758 var textEditor = (TextEditor)bindable;
760 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.EnableScrollBar).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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
767 var textEditor = (TextEditor)bindable;
768 if (newValue != null)
770 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.ScrollBarShowDuration, new Tizen.NUI.PropertyValue((float)newValue));
773 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
775 var textEditor = (TextEditor)bindable;
777 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.ScrollBarShowDuration).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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
784 var textEditor = (TextEditor)bindable;
785 if (newValue != null)
787 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.ScrollBarFadeDuration, new Tizen.NUI.PropertyValue((float)newValue));
790 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
792 var textEditor = (TextEditor)bindable;
794 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.ScrollBarFadeDuration).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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
801 var textEditor = (TextEditor)bindable;
802 if (newValue != null)
804 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.PixelSize, new Tizen.NUI.PropertyValue((float)newValue));
807 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
809 var textEditor = (TextEditor)bindable;
811 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.PixelSize).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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
818 var textEditor = (TextEditor)bindable;
819 if (newValue != null)
821 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.PlaceholderText, new Tizen.NUI.PropertyValue((string)newValue));
824 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
826 var textEditor = (TextEditor)bindable;
828 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.PlaceholderText).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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
835 var textEditor = (TextEditor)bindable;
836 if (newValue != null)
838 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.PlaceholderTextColor, new Tizen.NUI.PropertyValue((Color)newValue));
841 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
843 var textEditor = (TextEditor)bindable;
844 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
845 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.PlaceholderTextColor).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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
852 var textEditor = (TextEditor)bindable;
853 if (newValue != null)
855 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.EnableSelection, new Tizen.NUI.PropertyValue((bool)newValue));
858 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
860 var textEditor = (TextEditor)bindable;
862 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.EnableSelection).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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
869 var textEditor = (TextEditor)bindable;
870 if (newValue != null)
872 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.PLACEHOLDER, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
875 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
877 var textEditor = (TextEditor)bindable;
878 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
879 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
886 var textEditor = (TextEditor)bindable;
887 if (newValue != null)
889 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.LineWrapMode, new Tizen.NUI.PropertyValue((int)newValue));
892 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
894 var textEditor = (TextEditor)bindable;
896 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.LineWrapMode).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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
906 var textEditor = (TextEditor)bindable;
907 if (newValue != null)
909 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.EnableShiftSelection, new Tizen.NUI.PropertyValue((bool)newValue));
912 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
914 var textEditor = (TextEditor)bindable;
915 //textEditor.mShiftSelectionFlag(true);
917 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.EnableShiftSelection).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: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
924 var textEditor = (TextEditor)bindable;
925 if (newValue != null)
927 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.MatchSystemLanguageDirection, new Tizen.NUI.PropertyValue((bool)newValue));
930 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
932 var textEditor = (TextEditor)bindable;
934 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.MatchSystemLanguageDirection).Get(out temp);
937 /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
938 [EditorBrowsable(EditorBrowsableState.Never)]
939 public static readonly BindableProperty MaxLengthProperty = BindableProperty.Create(nameof(MaxLength), typeof(int), typeof(TextEditor), default(int), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
941 var textEditor = (TextEditor)bindable;
942 if (newValue != null)
944 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.MaxLength, new Tizen.NUI.PropertyValue((int)newValue));
947 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
949 var textEditor = (TextEditor)bindable;
951 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.MaxLength).Get(out temp);
955 [EditorBrowsable(EditorBrowsableState.Never)]
956 public static readonly BindableProperty FontSizeScaleProperty = BindableProperty.Create(nameof(FontSizeScale), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
958 var textEditor = (TextEditor)bindable;
959 if (newValue != null)
961 using (var property = new Tizen.NUI.PropertyValue((float)newValue))
963 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.FontSizeScale, property);
967 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
969 var textEditor = (TextEditor)bindable;
971 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.FontSizeScale).Get(out temp);
975 /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
976 [EditorBrowsable(EditorBrowsableState.Never)]
977 public static readonly BindableProperty GrabHandleColorProperty = BindableProperty.Create(nameof(GrabHandleColor), typeof(Color), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
979 var textEditor = (TextEditor)bindable;
980 if (newValue != null)
982 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.GrabHandleColor, new Tizen.NUI.PropertyValue((Color)newValue));
985 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
987 var textEditor = (TextEditor)bindable;
988 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
989 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.GrabHandleColor).Get(temp);
993 [EditorBrowsable(EditorBrowsableState.Never)]
994 public static readonly BindableProperty EnableGrabHandleProperty = BindableProperty.Create(nameof(TextEditor.EnableGrabHandle), typeof(bool), typeof(TextEditor), true, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
996 var textEditor = (TextEditor)bindable;
997 if (newValue != null)
999 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.EnableGrabHandle, new Tizen.NUI.PropertyValue((bool)newValue));
1002 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1004 var textEditor = (TextEditor)bindable;
1006 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.EnableGrabHandle).Get(out temp);
1010 [EditorBrowsable(EditorBrowsableState.Never)]
1011 public static readonly BindableProperty EnableGrabHandlePopupProperty = BindableProperty.Create(nameof(TextEditor.EnableGrabHandlePopup), typeof(bool), typeof(TextEditor), true, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1013 var textEditor = (TextEditor)bindable;
1014 if (newValue != null)
1016 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.EnableGrabHandlePopup, new Tizen.NUI.PropertyValue((bool)newValue));
1019 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1021 var textEditor = (TextEditor)bindable;
1023 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.EnableGrabHandlePopup).Get(out temp);
1027 [EditorBrowsable(EditorBrowsableState.Never)]
1028 public static readonly BindableProperty InputMethodSettingsProperty = BindableProperty.Create(nameof(TextEditor.InputMethodSettings), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1030 var textEditor = (TextEditor)bindable;
1031 if (newValue != null)
1033 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputMethodSettings, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
1036 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1038 var textEditor = (TextEditor)bindable;
1039 PropertyMap temp = new PropertyMap();
1040 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputMethodSettings).Get(temp);
1043 /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1044 [EditorBrowsable(EditorBrowsableState.Never)]
1045 public static readonly BindableProperty EllipsisProperty = BindableProperty.Create(nameof(TextEditor.Ellipsis), typeof(bool), typeof(TextEditor), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1047 var textEditor = (TextEditor)bindable;
1048 if (newValue != null)
1050 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.ELLIPSIS, new Tizen.NUI.PropertyValue((bool)newValue));
1053 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1055 var textEditor = (TextEditor)bindable;
1057 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.ELLIPSIS).Get(out temp);
1060 /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1061 [EditorBrowsable(EditorBrowsableState.Never)]
1062 public static readonly BindableProperty EllipsisPositionProperty = BindableProperty.Create(nameof(EllipsisPosition), typeof(EllipsisPosition), typeof(TextEditor), EllipsisPosition.End, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1064 var textEditor = (TextEditor)bindable;
1065 if (newValue != null)
1067 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.EllipsisPosition, new Tizen.NUI.PropertyValue((int)newValue));
1070 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1072 var textEditor = (TextEditor)bindable;
1074 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.EllipsisPosition).Get(out temp);
1075 return (EllipsisPosition)temp;
1078 /// currently need to be hidden as inhouse API.
1079 [EditorBrowsable(EditorBrowsableState.Never)]
1080 public static readonly BindableProperty MinLineSizeProperty = BindableProperty.Create(nameof(MinLineSize), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1082 var textEditor = (TextEditor)bindable;
1083 if (newValue != null)
1085 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.MinLineSize, new Tizen.NUI.PropertyValue((float)newValue));
1088 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1090 var textEditor = (TextEditor)bindable;
1092 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.MinLineSize).Get(out temp);