return textEditorStyle.ellipsis;
});
+ /// <summary> The bindable property of LineSpacingProperty. </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty LineSpacingProperty = BindableProperty.Create(nameof(LineSpacing), typeof(float?), typeof(TextEditorStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
+ {
+ var textEditorStyle = (TextEditorStyle)bindable;
+ textEditorStyle.lineSpacing = (float?)newValue;
+ },
+ defaultValueCreator: (bindable) =>
+ {
+ var textEditorStyle = (TextEditorStyle)bindable;
+ return textEditorStyle.lineSpacing;
+ });
+
+ /// <summary> The bindable property of MinLineSizeProperty. </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty MinLineSizeProperty = BindableProperty.Create(nameof(MinLineSize), typeof(float?), typeof(TextEditorStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
+ {
+ var textEditorStyle = (TextEditorStyle)bindable;
+ textEditorStyle.minLineSize = (float?)newValue;
+ },
+ defaultValueCreator: (bindable) =>
+ {
+ var textEditorStyle = (TextEditorStyle)bindable;
+ return textEditorStyle.minLineSize;
+ });
+
private HorizontalAlignment? horizontalAlignment;
private Vector4 secondaryCursorColor;
private bool? enableCursorBlink;
private Vector4 primaryCursorColor;
private PropertyMap fontStyle;
private bool? ellipsis;
+ private float? lineSpacing;
+ private float? minLineSize;
static TextEditorStyle() { }
get => (bool?)GetValue(EllipsisProperty);
set => SetValue(EllipsisProperty, value);
}
+
+ /// <summary>
+ /// the line spacing to be used.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float? LineSpacing
+ {
+ get => (float?)GetValue(LineSpacingProperty);
+ set => SetValue(LineSpacingProperty, value);
+ }
+
+ /// <summary>
+ /// the minimum line size to be used.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float? MinLineSize
+ {
+ get => (float?)GetValue(MinLineSizeProperty);
+ set => SetValue(MinLineSizeProperty, value);
+ }
}
}
}
}
+ /// <summary>
+ /// Minimum line size to be used.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float MinLineSize
+ {
+ get
+ {
+ return (float)GetValue(MinLineSizeProperty);
+ }
+ set
+ {
+ SetValue(MinLineSizeProperty, value);
+ NotifyPropertyChanged();
+ }
+ }
+
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextEditor obj)
{
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr;
internal static readonly int InputMethodSettings = Interop.TextEditor.InputMethodSettingsGet();
internal static readonly int ELLIPSIS = Interop.TextEditor.EllipsisGet();
internal static readonly int EllipsisPosition = Interop.TextEditor.EllipsisPositionGet();
+ internal static readonly int MinLineSize = Interop.TextEditor.MinLineSizeGet();
internal static readonly int InputFilter = Interop.TextEditor.InputFilterGet();
}
Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.EllipsisPosition).Get(out temp);
return (EllipsisPosition)temp;
}));
+
+ /// currently need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty MinLineSizeProperty = BindableProperty.Create(nameof(MinLineSize), typeof(float), typeof(TextEditor), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
+ {
+ var textEditor = (TextEditor)bindable;
+ if (newValue != null)
+ {
+ Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.MinLineSize, new Tizen.NUI.PropertyValue((float)newValue));
+ }
+ }),
+ defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
+ {
+ var textEditor = (TextEditor)bindable;
+ float temp = 0.0f;
+ Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)textEditor.SwigCPtr, TextEditor.Property.MinLineSize).Get(out temp);
+ return temp;
+ }));
}
}