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 textEditor.isSettingTextInCSharp = true;
38 Object.InternalSetPropertyString(textEditor.SwigCPtr, TextEditor.Property.TEXT, (string)newValue);
39 textEditor.isSettingTextInCSharp = false;
42 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
44 var textEditor = (TextEditor)bindable;
46 return Object.InternalGetPropertyString(textEditor.SwigCPtr, TextEditor.Property.TEXT);
48 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
49 [EditorBrowsable(EditorBrowsableState.Never)]
50 public static readonly BindableProperty TextColorProperty = BindableProperty.Create(nameof(TextColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
52 var textEditor = (TextEditor)bindable;
56 Object.InternalSetPropertyVector4(textEditor.SwigCPtr, TextEditor.Property.TextColor, ((Vector4)newValue).SwigCPtr);
59 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
61 var textEditor = (TextEditor)bindable;
63 if (textEditor.internalTextColor == null)
65 textEditor.internalTextColor = new Vector4(0, 0, 0, 0);
67 Object.InternalRetrievingPropertyVector4(textEditor.SwigCPtr, TextEditor.Property.TextColor, textEditor.internalTextColor.SwigCPtr);
68 return textEditor.internalTextColor;
70 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
71 [EditorBrowsable(EditorBrowsableState.Never)]
72 public static readonly BindableProperty FontFamilyProperty = BindableProperty.Create(nameof(FontFamily), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
74 var textEditor = (TextEditor)bindable;
77 textEditor.InternalFontFamily = (string)newValue;
80 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
82 var textEditor = (TextEditor)bindable;
83 return textEditor.InternalFontFamily;
85 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
86 [EditorBrowsable(EditorBrowsableState.Never)]
87 public static readonly BindableProperty FontStyleProperty = BindableProperty.Create(nameof(FontStyle), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
89 var textEditor = (TextEditor)bindable;
92 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.FontStyle, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
95 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
97 var textEditor = (TextEditor)bindable;
98 PropertyMap temp = new PropertyMap();
99 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.FontStyle).Get(temp);
102 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
103 [EditorBrowsable(EditorBrowsableState.Never)]
104 public static readonly BindableProperty PointSizeProperty = BindableProperty.Create(nameof(PointSize), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
106 var textEditor = (TextEditor)bindable;
107 if (newValue != null)
110 Object.InternalSetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.PointSize, (float)newValue);
113 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
115 var textEditor = (TextEditor)bindable;
117 return Object.InternalGetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.PointSize);
119 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
120 [EditorBrowsable(EditorBrowsableState.Never)]
121 public static readonly BindableProperty HorizontalAlignmentProperty = BindableProperty.Create(nameof(HorizontalAlignment), typeof(HorizontalAlignment), typeof(TextEditor), HorizontalAlignment.Begin, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
123 var textEditor = (TextEditor)bindable;
124 if (newValue != null)
127 Object.InternalSetPropertyInt(textEditor.SwigCPtr, TextEditor.Property.HorizontalAlignment, (int)newValue);
130 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
132 var textEditor = (TextEditor)bindable;
135 temp = Object.InternalGetPropertyString(textEditor.SwigCPtr, TextEditor.Property.HorizontalAlignment);
136 return temp.GetValueByDescription<HorizontalAlignment>();
138 [EditorBrowsable(EditorBrowsableState.Never)]
139 public static readonly BindableProperty VerticalAlignmentProperty = BindableProperty.Create(nameof(VerticalAlignment), typeof(VerticalAlignment), typeof(TextEditor), VerticalAlignment.Bottom, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
141 var textEditor = (TextEditor)bindable;
142 if (newValue != null)
145 Object.InternalSetPropertyInt(textEditor.SwigCPtr, TextEditor.Property.VerticalAlignment, (int)newValue);
148 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
150 var textEditor = (TextEditor)bindable;
153 temp = Object.InternalGetPropertyString(textEditor.SwigCPtr, TextEditor.Property.VerticalAlignment);
154 return temp.GetValueByDescription<VerticalAlignment>();
156 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
157 [EditorBrowsable(EditorBrowsableState.Never)]
158 public static readonly BindableProperty ScrollThresholdProperty = BindableProperty.Create(nameof(ScrollThreshold), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
160 var textEditor = (TextEditor)bindable;
161 if (newValue != null)
164 Object.InternalSetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.ScrollThreshold, (float)newValue);
167 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
169 var textEditor = (TextEditor)bindable;
171 return Object.InternalGetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.ScrollThreshold);
173 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
174 [EditorBrowsable(EditorBrowsableState.Never)]
175 public static readonly BindableProperty ScrollSpeedProperty = BindableProperty.Create(nameof(ScrollSpeed), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
177 var textEditor = (TextEditor)bindable;
178 if (newValue != null)
181 Object.InternalSetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.ScrollSpeed, (float)newValue);
184 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
186 var textEditor = (TextEditor)bindable;
188 return Object.InternalGetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.ScrollSpeed);
190 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
191 [EditorBrowsable(EditorBrowsableState.Never)]
192 public static readonly BindableProperty PrimaryCursorColorProperty = BindableProperty.Create(nameof(PrimaryCursorColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
194 var textEditor = (TextEditor)bindable;
195 if (newValue != null)
198 Object.InternalSetPropertyVector4(textEditor.SwigCPtr, TextEditor.Property.PrimaryCursorColor, ((Vector4)newValue).SwigCPtr);
201 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
203 var textEditor = (TextEditor)bindable;
205 if (textEditor.internalPrimaryCursorColor == null)
207 textEditor.internalPrimaryCursorColor = new Vector4(0, 0, 0, 0);
209 Object.InternalRetrievingPropertyVector4(textEditor.SwigCPtr, TextEditor.Property.PrimaryCursorColor, textEditor.internalPrimaryCursorColor.SwigCPtr);
210 return textEditor.internalPrimaryCursorColor;
212 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
213 [EditorBrowsable(EditorBrowsableState.Never)]
214 public static readonly BindableProperty SecondaryCursorColorProperty = BindableProperty.Create(nameof(SecondaryCursorColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
216 var textEditor = (TextEditor)bindable;
217 if (newValue != null)
220 Object.InternalSetPropertyVector4(textEditor.SwigCPtr, TextEditor.Property.SecondaryCursorColor, ((Vector4)newValue).SwigCPtr);
223 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
225 var textEditor = (TextEditor)bindable;
227 if (textEditor.internalSecondaryCursorColor == null)
229 textEditor.internalSecondaryCursorColor = new Vector4(0, 0, 0, 0);
231 Object.InternalRetrievingPropertyVector4(textEditor.SwigCPtr, TextEditor.Property.SecondaryCursorColor, textEditor.internalSecondaryCursorColor.SwigCPtr);
232 return textEditor.internalSecondaryCursorColor;
234 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
235 [EditorBrowsable(EditorBrowsableState.Never)]
236 public static readonly BindableProperty EnableCursorBlinkProperty = BindableProperty.Create(nameof(EnableCursorBlink), typeof(bool), typeof(TextEditor), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
238 var textEditor = (TextEditor)bindable;
239 if (newValue != null)
242 Object.InternalSetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.EnableCursorBlink, (bool)newValue);
245 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
247 var textEditor = (TextEditor)bindable;
249 return Object.InternalGetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.EnableCursorBlink);
251 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
252 [EditorBrowsable(EditorBrowsableState.Never)]
253 public static readonly BindableProperty CursorBlinkIntervalProperty = BindableProperty.Create(nameof(CursorBlinkInterval), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
255 var textEditor = (TextEditor)bindable;
256 if (newValue != null)
259 Object.InternalSetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.CursorBlinkInterval, (float)newValue);
262 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
264 var textEditor = (TextEditor)bindable;
266 return Object.InternalGetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.CursorBlinkInterval);
268 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
269 [EditorBrowsable(EditorBrowsableState.Never)]
270 public static readonly BindableProperty CursorBlinkDurationProperty = BindableProperty.Create(nameof(CursorBlinkDuration), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
272 var textEditor = (TextEditor)bindable;
273 if (newValue != null)
276 Object.InternalSetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.CursorBlinkDuration, (float)newValue);
279 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
281 var textEditor = (TextEditor)bindable;
283 return Object.InternalGetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.CursorBlinkDuration);
285 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
286 [EditorBrowsable(EditorBrowsableState.Never)]
287 public static readonly BindableProperty CursorWidthProperty = BindableProperty.Create(nameof(CursorWidth), typeof(int), typeof(TextEditor), default(int), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
289 var textEditor = (TextEditor)bindable;
290 if (newValue != null)
293 Object.InternalSetPropertyInt(textEditor.SwigCPtr, TextEditor.Property.CursorWidth, (int)newValue);
296 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
298 var textEditor = (TextEditor)bindable;
300 return Object.InternalGetPropertyInt(textEditor.SwigCPtr, TextEditor.Property.CursorWidth);
302 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
303 [EditorBrowsable(EditorBrowsableState.Never)]
304 public static readonly BindableProperty GrabHandleImageProperty = BindableProperty.Create(nameof(GrabHandleImage), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
306 var textEditor = (TextEditor)bindable;
307 if (newValue != null)
310 Object.InternalSetPropertyString(textEditor.SwigCPtr, TextEditor.Property.GrabHandleImage, (string)newValue);
313 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
315 var textEditor = (TextEditor)bindable;
317 return Object.InternalGetPropertyString(textEditor.SwigCPtr, TextEditor.Property.GrabHandleImage);
319 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
320 [EditorBrowsable(EditorBrowsableState.Never)]
321 public static readonly BindableProperty GrabHandlePressedImageProperty = BindableProperty.Create(nameof(GrabHandlePressedImage), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
323 var textEditor = (TextEditor)bindable;
324 if (newValue != null)
327 Object.InternalSetPropertyString(textEditor.SwigCPtr, TextEditor.Property.GrabHandlePressedImage, (string)newValue);
330 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
332 var textEditor = (TextEditor)bindable;
334 return Object.InternalGetPropertyString(textEditor.SwigCPtr, TextEditor.Property.GrabHandlePressedImage);
337 [EditorBrowsable(EditorBrowsableState.Never)]
338 public static readonly BindableProperty SelectionPopupStyleProperty = BindableProperty.Create(nameof(SelectionPopupStyle), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
340 var textEditor = (TextEditor)bindable;
341 if (newValue != null)
343 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionPopupStyle, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
346 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
348 var textEditor = (TextEditor)bindable;
349 PropertyMap temp = new PropertyMap();
350 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionPopupStyle).Get(temp);
354 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
355 [EditorBrowsable(EditorBrowsableState.Never)]
356 public static readonly BindableProperty SelectionHandleImageLeftProperty = BindableProperty.Create(nameof(SelectionHandleImageLeft), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
358 var textEditor = (TextEditor)bindable;
359 if (newValue != null)
361 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandleImageLeft, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
364 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
366 var textEditor = (TextEditor)bindable;
367 PropertyMap temp = new PropertyMap();
368 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandleImageLeft).Get(temp);
371 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
372 [EditorBrowsable(EditorBrowsableState.Never)]
373 public static readonly BindableProperty SelectionHandleImageRightProperty = BindableProperty.Create(nameof(SelectionHandleImageRight), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
375 var textEditor = (TextEditor)bindable;
376 if (newValue != null)
378 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandleImageRight, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
381 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
383 var textEditor = (TextEditor)bindable;
384 PropertyMap temp = new PropertyMap();
385 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandleImageRight).Get(temp);
388 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
389 [EditorBrowsable(EditorBrowsableState.Never)]
390 public static readonly BindableProperty SelectionHandlePressedImageLeftProperty = BindableProperty.Create(nameof(SelectionHandlePressedImageLeft), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
392 var textEditor = (TextEditor)bindable;
393 if (newValue != null)
395 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandlePressedImageLeft, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
398 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
400 var textEditor = (TextEditor)bindable;
401 PropertyMap temp = new PropertyMap();
402 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandlePressedImageLeft).Get(temp);
405 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
406 [EditorBrowsable(EditorBrowsableState.Never)]
407 public static readonly BindableProperty SelectionHandlePressedImageRightProperty = BindableProperty.Create(nameof(SelectionHandlePressedImageRight), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
409 var textEditor = (TextEditor)bindable;
410 if (newValue != null)
412 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandlePressedImageRight, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
415 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
417 var textEditor = (TextEditor)bindable;
418 PropertyMap temp = new PropertyMap();
419 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandlePressedImageRight).Get(temp);
422 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
423 [EditorBrowsable(EditorBrowsableState.Never)]
424 public static readonly BindableProperty SelectionHandleMarkerImageLeftProperty = BindableProperty.Create(nameof(SelectionHandleMarkerImageLeft), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
426 var textEditor = (TextEditor)bindable;
427 if (newValue != null)
429 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandleMarkerImageLeft, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
432 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
434 var textEditor = (TextEditor)bindable;
435 PropertyMap temp = new PropertyMap();
436 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandleMarkerImageLeft).Get(temp);
439 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
440 [EditorBrowsable(EditorBrowsableState.Never)]
441 public static readonly BindableProperty SelectionHandleMarkerImageRightProperty = BindableProperty.Create(nameof(SelectionHandleMarkerImageRight), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
443 var textEditor = (TextEditor)bindable;
444 if (newValue != null)
446 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandleMarkerImageRight, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
449 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
451 var textEditor = (TextEditor)bindable;
452 PropertyMap temp = new PropertyMap();
453 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SelectionHandleMarkerImageRight).Get(temp);
456 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
457 [EditorBrowsable(EditorBrowsableState.Never)]
458 public static readonly BindableProperty SelectionHighlightColorProperty = BindableProperty.Create(nameof(SelectionHighlightColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
460 var textEditor = (TextEditor)bindable;
461 if (newValue != null)
464 Object.InternalSetPropertyVector4(textEditor.SwigCPtr, TextEditor.Property.SelectionHighlightColor, ((Vector4)newValue).SwigCPtr);
467 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
469 var textEditor = (TextEditor)bindable;
471 if (textEditor.internalSelectionHighlightColor == null)
473 textEditor.internalSelectionHighlightColor = new Vector4(0, 0, 0, 0);
475 Object.InternalRetrievingPropertyVector4(textEditor.SwigCPtr, TextEditor.Property.SelectionHighlightColor, textEditor.internalSelectionHighlightColor.SwigCPtr);
476 return textEditor.internalSelectionHighlightColor;
478 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
479 [EditorBrowsable(EditorBrowsableState.Never)]
480 public static readonly BindableProperty DecorationBoundingBoxProperty = BindableProperty.Create(nameof(DecorationBoundingBox), typeof(Rectangle), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
482 var textEditor = (TextEditor)bindable;
483 if (newValue != null)
485 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.DecorationBoundingBox, new Tizen.NUI.PropertyValue((Rectangle)newValue));
488 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
490 var textEditor = (TextEditor)bindable;
491 Rectangle temp = new Rectangle(0, 0, 0, 0);
492 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.DecorationBoundingBox).Get(temp);
495 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
496 [EditorBrowsable(EditorBrowsableState.Never)]
497 public static readonly BindableProperty EnableMarkupProperty = BindableProperty.Create(nameof(EnableMarkup), typeof(bool), typeof(TextEditor), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
499 var textEditor = (TextEditor)bindable;
500 if (newValue != null)
503 Object.InternalSetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.EnableMarkup, (bool)newValue);
506 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
508 var textEditor = (TextEditor)bindable;
510 return Object.InternalGetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.EnableMarkup);
512 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
513 [EditorBrowsable(EditorBrowsableState.Never)]
514 public static readonly BindableProperty InputColorProperty = BindableProperty.Create(nameof(InputColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
516 var textEditor = (TextEditor)bindable;
517 if (newValue != null)
520 Object.InternalSetPropertyVector4(textEditor.SwigCPtr, TextEditor.Property.InputColor, ((Vector4)newValue).SwigCPtr);
523 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
525 var textEditor = (TextEditor)bindable;
527 if (textEditor.internalInputColor == null)
529 textEditor.internalInputColor = new Vector4(0, 0, 0, 0);
531 Object.InternalRetrievingPropertyVector4(textEditor.SwigCPtr, TextEditor.Property.InputColor, textEditor.internalInputColor.SwigCPtr);
532 return textEditor.internalInputColor;
534 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
535 [EditorBrowsable(EditorBrowsableState.Never)]
536 public static readonly BindableProperty InputFontFamilyProperty = BindableProperty.Create(nameof(InputFontFamily), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
538 var textEditor = (TextEditor)bindable;
539 if (newValue != null)
542 Object.InternalSetPropertyString(textEditor.SwigCPtr, TextEditor.Property.InputFontFamily, (string)newValue);
545 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
547 var textEditor = (TextEditor)bindable;
549 return Object.InternalGetPropertyString(textEditor.SwigCPtr, TextEditor.Property.InputFontFamily);
551 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
552 [EditorBrowsable(EditorBrowsableState.Never)]
553 public static readonly BindableProperty InputFontStyleProperty = BindableProperty.Create(nameof(InputFontStyle), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
555 var textEditor = (TextEditor)bindable;
556 if (newValue != null)
558 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputFontStyle, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
561 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
563 var textEditor = (TextEditor)bindable;
564 PropertyMap temp = new PropertyMap();
565 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputFontStyle).Get(temp);
568 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
569 [EditorBrowsable(EditorBrowsableState.Never)]
570 public static readonly BindableProperty InputPointSizeProperty = BindableProperty.Create(nameof(InputPointSize), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
572 var textEditor = (TextEditor)bindable;
573 if (newValue != null)
576 Object.InternalSetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.InputPointSize, (float)newValue);
579 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
581 var textEditor = (TextEditor)bindable;
583 return Object.InternalGetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.InputPointSize);
585 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
586 [EditorBrowsable(EditorBrowsableState.Never)]
587 public static readonly BindableProperty LineSpacingProperty = BindableProperty.Create(nameof(LineSpacing), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
589 var textEditor = (TextEditor)bindable;
590 if (newValue != null)
593 Object.InternalSetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.LineSpacing, (float)newValue);
596 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
598 var textEditor = (TextEditor)bindable;
600 return Object.InternalGetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.LineSpacing);
602 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
603 [EditorBrowsable(EditorBrowsableState.Never)]
604 public static readonly BindableProperty InputLineSpacingProperty = BindableProperty.Create(nameof(InputLineSpacing), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
606 var textEditor = (TextEditor)bindable;
607 if (newValue != null)
610 Object.InternalSetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.InputLineSpacing, (float)newValue);
613 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
615 var textEditor = (TextEditor)bindable;
617 return Object.InternalGetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.InputLineSpacing);
619 [EditorBrowsable(EditorBrowsableState.Never)]
620 public static readonly BindableProperty RelativeLineHeightProperty = BindableProperty.Create(nameof(RelativeLineHeight), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
622 var textEditor = (TextEditor)bindable;
623 if (newValue != null)
626 Object.InternalSetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.RelativeLineHeight, (float)newValue);
629 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
631 var textEditor = (TextEditor)bindable;
633 return Object.InternalGetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.RelativeLineHeight);
635 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
636 [EditorBrowsable(EditorBrowsableState.Never)]
637 public static readonly BindableProperty UnderlineProperty = BindableProperty.Create(nameof(Underline), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
639 var textEditor = (TextEditor)bindable;
640 if (newValue != null)
642 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.UNDERLINE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
645 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
647 var textEditor = (TextEditor)bindable;
648 PropertyMap temp = new PropertyMap();
649 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.UNDERLINE).Get(temp);
652 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
653 [EditorBrowsable(EditorBrowsableState.Never)]
654 public static readonly BindableProperty InputUnderlineProperty = BindableProperty.Create(nameof(InputUnderline), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
656 var textEditor = (TextEditor)bindable;
657 if (newValue != null)
660 Object.InternalSetPropertyString(textEditor.SwigCPtr, TextEditor.Property.InputUnderline, (string)newValue);
663 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
665 var textEditor = (TextEditor)bindable;
667 return Object.InternalGetPropertyString(textEditor.SwigCPtr, TextEditor.Property.InputUnderline);
670 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
671 [EditorBrowsable(EditorBrowsableState.Never)]
672 public static readonly BindableProperty ShadowProperty = BindableProperty.Create(nameof(Shadow), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
674 var textEditor = (TextEditor)bindable;
675 if (newValue != null)
677 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SHADOW, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
680 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
682 var textEditor = (TextEditor)bindable;
683 PropertyMap temp = new PropertyMap();
684 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.SHADOW).Get(temp);
687 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
688 [EditorBrowsable(EditorBrowsableState.Never)]
689 public static readonly BindableProperty InputShadowProperty = BindableProperty.Create(nameof(InputShadow), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
691 var textEditor = (TextEditor)bindable;
692 if (newValue != null)
695 Object.InternalSetPropertyString(textEditor.SwigCPtr, TextEditor.Property.InputShadow, (string)newValue);
698 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
700 var textEditor = (TextEditor)bindable;
702 return Object.InternalGetPropertyString(textEditor.SwigCPtr, TextEditor.Property.InputShadow);
704 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
705 [EditorBrowsable(EditorBrowsableState.Never)]
706 public static readonly BindableProperty EmbossProperty = BindableProperty.Create(nameof(Emboss), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
708 var textEditor = (TextEditor)bindable;
709 if (newValue != null)
712 Object.InternalSetPropertyString(textEditor.SwigCPtr, TextEditor.Property.EMBOSS, (string)newValue);
715 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
717 var textEditor = (TextEditor)bindable;
719 return Object.InternalGetPropertyString(textEditor.SwigCPtr, TextEditor.Property.EMBOSS);
721 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
722 [EditorBrowsable(EditorBrowsableState.Never)]
723 public static readonly BindableProperty InputEmbossProperty = BindableProperty.Create(nameof(InputEmboss), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
725 var textEditor = (TextEditor)bindable;
726 if (newValue != null)
729 Object.InternalSetPropertyString(textEditor.SwigCPtr, TextEditor.Property.InputEmboss, (string)newValue);
732 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
734 var textEditor = (TextEditor)bindable;
736 return Object.InternalGetPropertyString(textEditor.SwigCPtr, TextEditor.Property.InputEmboss);
738 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
739 [EditorBrowsable(EditorBrowsableState.Never)]
740 public static readonly BindableProperty OutlineProperty = BindableProperty.Create(nameof(Outline), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
742 var textEditor = (TextEditor)bindable;
743 if (newValue != null)
745 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.OUTLINE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
748 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
750 var textEditor = (TextEditor)bindable;
751 PropertyMap temp = new PropertyMap();
752 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.OUTLINE).Get(temp);
755 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
756 [EditorBrowsable(EditorBrowsableState.Never)]
757 public static readonly BindableProperty InputOutlineProperty = BindableProperty.Create(nameof(InputOutline), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
759 var textEditor = (TextEditor)bindable;
760 if (newValue != null)
763 Object.InternalSetPropertyString(textEditor.SwigCPtr, TextEditor.Property.InputOutline, (string)newValue);
766 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
768 var textEditor = (TextEditor)bindable;
770 return Object.InternalGetPropertyString(textEditor.SwigCPtr, TextEditor.Property.InputOutline);
772 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
773 [EditorBrowsable(EditorBrowsableState.Never)]
774 public static readonly BindableProperty SmoothScrollProperty = BindableProperty.Create(nameof(SmoothScroll), typeof(bool), typeof(TextEditor), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
776 var textEditor = (TextEditor)bindable;
777 if (newValue != null)
780 Object.InternalSetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.SmoothScroll, (bool)newValue);
783 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
785 var textEditor = (TextEditor)bindable;
787 return Object.InternalGetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.SmoothScroll);
789 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
790 [EditorBrowsable(EditorBrowsableState.Never)]
791 public static readonly BindableProperty SmoothScrollDurationProperty = BindableProperty.Create(nameof(SmoothScrollDuration), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
793 var textEditor = (TextEditor)bindable;
794 if (newValue != null)
797 Object.InternalSetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.SmoothScrollDuration, (float)newValue);
800 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
802 var textEditor = (TextEditor)bindable;
804 return Object.InternalGetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.SmoothScrollDuration);
806 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
807 [EditorBrowsable(EditorBrowsableState.Never)]
808 public static readonly BindableProperty EnableScrollBarProperty = BindableProperty.Create(nameof(EnableScrollBar), typeof(bool), typeof(TextEditor), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
810 var textEditor = (TextEditor)bindable;
811 if (newValue != null)
814 Object.InternalSetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.EnableScrollBar, (bool)newValue);
817 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
819 var textEditor = (TextEditor)bindable;
821 return Object.InternalGetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.EnableScrollBar);
823 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
824 [EditorBrowsable(EditorBrowsableState.Never)]
825 public static readonly BindableProperty ScrollBarShowDurationProperty = BindableProperty.Create(nameof(ScrollBarShowDuration), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
827 var textEditor = (TextEditor)bindable;
828 if (newValue != null)
831 Object.InternalSetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.ScrollBarShowDuration, (float)newValue);
834 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
836 var textEditor = (TextEditor)bindable;
838 return Object.InternalGetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.ScrollBarShowDuration);
840 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
841 [EditorBrowsable(EditorBrowsableState.Never)]
842 public static readonly BindableProperty ScrollBarFadeDurationProperty = BindableProperty.Create(nameof(ScrollBarFadeDuration), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
844 var textEditor = (TextEditor)bindable;
845 if (newValue != null)
848 Object.InternalSetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.ScrollBarFadeDuration, (float)newValue);
851 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
853 var textEditor = (TextEditor)bindable;
855 return Object.InternalGetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.ScrollBarFadeDuration);
857 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
858 [EditorBrowsable(EditorBrowsableState.Never)]
859 public static readonly BindableProperty PixelSizeProperty = BindableProperty.Create(nameof(PixelSize), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
861 var textEditor = (TextEditor)bindable;
862 if (newValue != null)
865 Object.InternalSetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.PixelSize, (float)newValue);
868 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
870 var textEditor = (TextEditor)bindable;
872 return Object.InternalGetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.PixelSize);
874 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
875 [EditorBrowsable(EditorBrowsableState.Never)]
876 public static readonly BindableProperty PlaceholderTextProperty = BindableProperty.Create(nameof(PlaceholderText), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
878 var textEditor = (TextEditor)bindable;
879 if (newValue != null)
882 Object.InternalSetPropertyString(textEditor.SwigCPtr, TextEditor.Property.PlaceholderText, (string)newValue);
885 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
887 var textEditor = (TextEditor)bindable;
889 return Object.InternalGetPropertyString(textEditor.SwigCPtr, TextEditor.Property.PlaceholderText);
891 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
892 [EditorBrowsable(EditorBrowsableState.Never)]
893 public static readonly BindableProperty PlaceholderTextColorProperty = BindableProperty.Create(nameof(PlaceholderTextColor), typeof(Color), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
895 var textEditor = (TextEditor)bindable;
896 if (newValue != null)
899 Object.InternalSetPropertyVector4(textEditor.SwigCPtr, TextEditor.Property.PlaceholderTextColor, ((Color)newValue).SwigCPtr);
902 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
904 var textEditor = (TextEditor)bindable;
906 if (textEditor.internalPlaceholderTextColor == null)
908 textEditor.internalPlaceholderTextColor = new Color(0, 0, 0, 0);
910 Object.InternalRetrievingPropertyVector4(textEditor.SwigCPtr, TextEditor.Property.PlaceholderTextColor, textEditor.internalPlaceholderTextColor.SwigCPtr);
911 return textEditor.internalPlaceholderTextColor;
913 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
914 [EditorBrowsable(EditorBrowsableState.Never)]
915 public static readonly BindableProperty EnableSelectionProperty = BindableProperty.Create(nameof(EnableSelection), typeof(bool), typeof(TextEditor), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
917 var textEditor = (TextEditor)bindable;
918 if (newValue != null)
921 Object.InternalSetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.EnableSelection, (bool)newValue);
924 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
926 var textEditor = (TextEditor)bindable;
928 return Object.InternalGetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.EnableSelection);
930 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
931 [EditorBrowsable(EditorBrowsableState.Never)]
932 public static readonly BindableProperty PlaceholderProperty = BindableProperty.Create(nameof(Placeholder), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
934 var textEditor = (TextEditor)bindable;
935 if (newValue != null)
937 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.PLACEHOLDER, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
940 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
942 var textEditor = (TextEditor)bindable;
943 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
944 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.PLACEHOLDER).Get(temp);
947 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
948 [EditorBrowsable(EditorBrowsableState.Never)]
949 public static readonly BindableProperty LineWrapModeProperty = BindableProperty.Create(nameof(LineWrapMode), typeof(LineWrapMode), typeof(TextEditor), LineWrapMode.Word, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
951 var textEditor = (TextEditor)bindable;
952 if (newValue != null)
955 Object.InternalSetPropertyInt(textEditor.SwigCPtr, TextEditor.Property.LineWrapMode, (int)newValue);
958 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
960 var textEditor = (TextEditor)bindable;
962 return Object.InternalGetPropertyInt(textEditor.SwigCPtr, TextEditor.Property.LineWrapMode);
964 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
965 [EditorBrowsable(EditorBrowsableState.Never)]
966 public static readonly BindableProperty EnableShiftSelectionProperty = BindableProperty.Create(nameof(TextEditor.EnableShiftSelection), typeof(bool), typeof(TextEditor), true, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
968 var textEditor = (TextEditor)bindable;
969 if (newValue != null)
972 Object.InternalSetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.EnableShiftSelection, (bool)newValue);
975 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
977 var textEditor = (TextEditor)bindable;
978 //textEditor.mShiftSelectionFlag(true);
980 return Object.InternalGetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.EnableShiftSelection);
982 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
983 [EditorBrowsable(EditorBrowsableState.Never)]
984 public static readonly BindableProperty MatchSystemLanguageDirectionProperty = BindableProperty.Create(nameof(TextEditor.MatchSystemLanguageDirection), typeof(bool), typeof(TextEditor), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
986 var textEditor = (TextEditor)bindable;
987 if (newValue != null)
990 Object.InternalSetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.MatchSystemLanguageDirection, (bool)newValue);
993 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
995 var textEditor = (TextEditor)bindable;
997 return Object.InternalGetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.MatchSystemLanguageDirection);
999 /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1000 [EditorBrowsable(EditorBrowsableState.Never)]
1001 public static readonly BindableProperty MaxLengthProperty = BindableProperty.Create(nameof(MaxLength), typeof(int), typeof(TextEditor), default(int), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1003 var textEditor = (TextEditor)bindable;
1004 if (newValue != null)
1007 Object.InternalSetPropertyInt(textEditor.SwigCPtr, TextEditor.Property.MaxLength, (int)newValue);
1010 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1012 var textEditor = (TextEditor)bindable;
1014 return Object.InternalGetPropertyInt(textEditor.SwigCPtr, TextEditor.Property.MaxLength);
1017 [EditorBrowsable(EditorBrowsableState.Never)]
1018 public static readonly BindableProperty FontSizeScaleProperty = BindableProperty.Create(nameof(FontSizeScale), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1020 var textEditor = (TextEditor)bindable;
1021 if (newValue != null)
1023 textEditor.InternalFontSizeScale = (float)newValue;
1026 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1028 var textEditor = (TextEditor)bindable;
1029 return textEditor.InternalFontSizeScale;
1032 [EditorBrowsable(EditorBrowsableState.Never)]
1033 public static readonly BindableProperty EnableFontSizeScaleProperty = BindableProperty.Create(nameof(EnableFontSizeScale), typeof(bool), typeof(TextEditor), default(bool), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1035 var textEditor = (TextEditor)bindable;
1036 if (newValue != null)
1039 Object.InternalSetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.EnableFontSizeScale, (bool)newValue);
1042 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1044 var textEditor = (TextEditor)bindable;
1046 return Object.InternalGetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.EnableFontSizeScale);
1049 /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1050 [EditorBrowsable(EditorBrowsableState.Never)]
1051 public static readonly BindableProperty GrabHandleColorProperty = BindableProperty.Create(nameof(GrabHandleColor), typeof(Color), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1053 var textEditor = (TextEditor)bindable;
1054 if (newValue != null)
1057 Object.InternalSetPropertyVector4(textEditor.SwigCPtr, TextEditor.Property.GrabHandleColor, ((Color)newValue).SwigCPtr);
1060 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1062 var textEditor = (TextEditor)bindable;
1064 if (textEditor.internalGrabHandleColor == null)
1066 textEditor.internalGrabHandleColor = new Color(0, 0, 0, 0);
1068 Object.InternalRetrievingPropertyVector4(textEditor.SwigCPtr, TextEditor.Property.GrabHandleColor, textEditor.internalGrabHandleColor.SwigCPtr);
1069 return textEditor.internalGrabHandleColor;
1072 [EditorBrowsable(EditorBrowsableState.Never)]
1073 public static readonly BindableProperty EnableGrabHandleProperty = BindableProperty.Create(nameof(TextEditor.EnableGrabHandle), typeof(bool), typeof(TextEditor), true, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1075 var textEditor = (TextEditor)bindable;
1076 if (newValue != null)
1079 Object.InternalSetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.EnableGrabHandle, (bool)newValue);
1082 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1084 var textEditor = (TextEditor)bindable;
1086 return Object.InternalGetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.EnableGrabHandle);
1089 [EditorBrowsable(EditorBrowsableState.Never)]
1090 public static readonly BindableProperty EnableGrabHandlePopupProperty = BindableProperty.Create(nameof(TextEditor.EnableGrabHandlePopup), typeof(bool), typeof(TextEditor), true, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1092 var textEditor = (TextEditor)bindable;
1093 if (newValue != null)
1096 Object.InternalSetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.EnableGrabHandlePopup, (bool)newValue);
1099 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1101 var textEditor = (TextEditor)bindable;
1103 return Object.InternalGetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.EnableGrabHandlePopup);
1106 [EditorBrowsable(EditorBrowsableState.Never)]
1107 public static readonly BindableProperty InputMethodSettingsProperty = BindableProperty.Create(nameof(TextEditor.InputMethodSettings), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1109 var textEditor = (TextEditor)bindable;
1110 if (newValue != null)
1112 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputMethodSettings, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
1115 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1117 var textEditor = (TextEditor)bindable;
1118 PropertyMap temp = new PropertyMap();
1119 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.InputMethodSettings).Get(temp);
1122 /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1123 [EditorBrowsable(EditorBrowsableState.Never)]
1124 public static readonly BindableProperty EllipsisProperty = BindableProperty.Create(nameof(TextEditor.Ellipsis), typeof(bool), typeof(TextEditor), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1126 var textEditor = (TextEditor)bindable;
1127 if (newValue != null)
1130 Object.InternalSetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.ELLIPSIS, (bool)newValue);
1133 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1135 var textEditor = (TextEditor)bindable;
1137 return Object.InternalGetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.ELLIPSIS);
1139 /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1140 [EditorBrowsable(EditorBrowsableState.Never)]
1141 public static readonly BindableProperty EllipsisPositionProperty = BindableProperty.Create(nameof(EllipsisPosition), typeof(EllipsisPosition), typeof(TextEditor), EllipsisPosition.End, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1143 var textEditor = (TextEditor)bindable;
1144 if (newValue != null)
1147 Object.InternalSetPropertyInt(textEditor.SwigCPtr, TextEditor.Property.EllipsisPosition, (int)newValue);
1150 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1152 var textEditor = (TextEditor)bindable;
1154 return Object.InternalGetPropertyInt(textEditor.SwigCPtr, TextEditor.Property.EllipsisPosition);
1157 /// currently need to be hidden as inhouse API.
1158 [EditorBrowsable(EditorBrowsableState.Never)]
1159 public static readonly BindableProperty MinLineSizeProperty = BindableProperty.Create(nameof(MinLineSize), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1161 var textEditor = (TextEditor)bindable;
1162 if (newValue != null)
1165 Object.InternalSetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.MinLineSize, (float)newValue);
1168 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1170 var textEditor = (TextEditor)bindable;
1172 return Object.InternalGetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.MinLineSize);
1176 /// TranslatableTextProperty
1178 [EditorBrowsable(EditorBrowsableState.Never)]
1179 public static readonly BindableProperty TranslatableTextProperty = BindableProperty.Create(nameof(TranslatableText), typeof(string), typeof(Tizen.NUI.BaseComponents.TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
1181 var instance = (Tizen.NUI.BaseComponents.TextEditor)bindable;
1182 if (newValue != null)
1184 instance.InternalTranslatableText = (string)newValue;
1187 defaultValueCreator: (bindable) =>
1189 var instance = (Tizen.NUI.BaseComponents.TextEditor)bindable;
1190 return instance.InternalTranslatableText;
1194 /// TranslatablePlaceholderTextProperty
1196 [EditorBrowsable(EditorBrowsableState.Never)]
1197 public static readonly BindableProperty TranslatablePlaceholderTextProperty = BindableProperty.Create(nameof(TranslatablePlaceholderText), typeof(string), typeof(Tizen.NUI.BaseComponents.TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
1199 var instance = (Tizen.NUI.BaseComponents.TextEditor)bindable;
1200 if (newValue != null)
1202 instance.InternalTranslatablePlaceholderText = (string)newValue;
1205 defaultValueCreator: (bindable) =>
1207 var instance = (Tizen.NUI.BaseComponents.TextEditor)bindable;
1208 return instance.InternalTranslatablePlaceholderText;
1212 /// EnableEditingProperty
1214 [EditorBrowsable(EditorBrowsableState.Never)]
1215 public static readonly BindableProperty EnableEditingProperty = BindableProperty.Create(nameof(EnableEditing), typeof(bool), typeof(Tizen.NUI.BaseComponents.TextEditor), false, propertyChanged: (bindable, oldValue, newValue) =>
1217 var instance = (Tizen.NUI.BaseComponents.TextEditor)bindable;
1218 if (newValue != null)
1220 instance.InternalEnableEditing = (bool)newValue;
1223 defaultValueCreator: (bindable) =>
1225 var instance = (Tizen.NUI.BaseComponents.TextEditor)bindable;
1226 return instance.InternalEnableEditing;
1230 /// HorizontalScrollPositionProperty
1232 [EditorBrowsable(EditorBrowsableState.Never)]
1233 public static readonly BindableProperty HorizontalScrollPositionProperty = BindableProperty.Create(nameof(HorizontalScrollPosition), typeof(int), typeof(Tizen.NUI.BaseComponents.TextEditor), 0, propertyChanged: (bindable, oldValue, newValue) =>
1235 var instance = (Tizen.NUI.BaseComponents.TextEditor)bindable;
1236 if (newValue != null)
1238 instance.InternalHorizontalScrollPosition = (int)newValue;
1241 defaultValueCreator: (bindable) =>
1243 var instance = (Tizen.NUI.BaseComponents.TextEditor)bindable;
1244 return instance.InternalHorizontalScrollPosition;
1248 /// VerticalScrollPositionProperty
1250 [EditorBrowsable(EditorBrowsableState.Never)]
1251 public static readonly BindableProperty VerticalScrollPositionProperty = BindableProperty.Create(nameof(VerticalScrollPosition), typeof(int), typeof(Tizen.NUI.BaseComponents.TextEditor), 0, propertyChanged: (bindable, oldValue, newValue) =>
1253 var instance = (Tizen.NUI.BaseComponents.TextEditor)bindable;
1254 if (newValue != null)
1256 instance.InternalVerticalScrollPosition = (int)newValue;
1259 defaultValueCreator: (bindable) =>
1261 var instance = (Tizen.NUI.BaseComponents.TextEditor)bindable;
1262 return instance.InternalVerticalScrollPosition;
1266 /// PrimaryCursorPositionProperty
1268 [EditorBrowsable(EditorBrowsableState.Never)]
1269 public static readonly BindableProperty PrimaryCursorPositionProperty = BindableProperty.Create(nameof(PrimaryCursorPosition), typeof(int), typeof(Tizen.NUI.BaseComponents.TextEditor), 0, propertyChanged: (bindable, oldValue, newValue) =>
1271 var instance = (Tizen.NUI.BaseComponents.TextEditor)bindable;
1272 if (newValue != null)
1274 instance.InternalPrimaryCursorPosition = (int)newValue;
1277 defaultValueCreator: (bindable) =>
1279 var instance = (Tizen.NUI.BaseComponents.TextEditor)bindable;
1280 return instance.InternalPrimaryCursorPosition;
1283 /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1284 [EditorBrowsable(EditorBrowsableState.Never)]
1285 public static readonly BindableProperty CharacterSpacingProperty = BindableProperty.Create(nameof(CharacterSpacing), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1287 var textEditor = (TextEditor)bindable;
1288 if (newValue != null)
1291 Object.InternalSetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.CharacterSpacing, (float)newValue);
1294 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1296 var textEditor = (TextEditor)bindable;
1298 return Object.InternalGetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.CharacterSpacing);