[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextEditor_Property_VERTICAL_SCROLL_POSITION_get")]
public static extern int VerticalScrollPositionGet();
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextEditor_Property_PRIMARY_CURSOR_POSITION_get")]
+ public static extern int PrimaryCursorPositionGet();
+
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextEditor_ScrollBy")]
public static extern void ScrollBy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextField_Property_ENABLE_EDITING_get")]
public static extern int EnableEditingGet();
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextField_Property_PRIMARY_CURSOR_POSITION_get")]
+ public static extern int PrimaryCursorPositionGet();
+
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextField_SelectNone")]
public static extern int SelectNone(global::System.Runtime.InteropServices.HandleRef jarg1);
}
}
/// <summary>
+ /// Specify primary cursor (caret) position in text control.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public int PrimaryCursorPosition
+ {
+ get
+ {
+ int temp;
+ using (PropertyValue propertyValue = GetProperty(TextEditor.Property.PrimaryCursorPosition))
+ {
+ propertyValue.Get(out temp);
+ }
+ return temp;
+ }
+ set
+ {
+ using (PropertyValue propertyValue = new PropertyValue(value))
+ {
+ SetProperty(TextEditor.Property.PrimaryCursorPosition, propertyValue);
+ NotifyPropertyChanged();
+ }
+ }
+ }
+
+ /// <summary>
/// The Placeholder property.
/// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
/// </summary>
internal static readonly int SelectedText = Interop.TextEditor.SelectedTextGet();
internal static readonly int HorizontalScrollPosition = Interop.TextEditor.HorizontalScrollPositionGet();
internal static readonly int VerticalScrollPosition = Interop.TextEditor.VerticalScrollPositionGet();
+ internal static readonly int PrimaryCursorPosition = Interop.TextEditor.PrimaryCursorPositionGet();
}
internal class InputStyle
}
}
+ /// <summary>
/// Enable editing in text control.
/// </summary>
/// <since_tizen> 8 </since_tizen>
}
/// <summary>
+ /// Specify primary cursor (caret) position in text control.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public int PrimaryCursorPosition
+ {
+ get
+ {
+ int temp;
+ using (PropertyValue propertyValue = GetProperty(TextField.Property.PrimaryCursorPosition))
+ {
+ propertyValue.Get(out temp);
+ }
+ return temp;
+ }
+ set
+ {
+ using (PropertyValue propertyValue = new PropertyValue(value))
+ {
+ SetProperty(TextField.Property.PrimaryCursorPosition, propertyValue);
+ NotifyPropertyChanged();
+ }
+ }
+ }
+
+ /// <summary>
/// The Placeholder property.
/// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
/// </summary>
internal static readonly int SelectedTextStart = Interop.TextField.SelectedTextStartGet();
internal static readonly int SelectedTextEnd = Interop.TextField.SelectedTextEndGet();
internal static readonly int EnableEditing = Interop.TextField.EnableEditingGet();
+ internal static readonly int PrimaryCursorPosition = Interop.TextField.PrimaryCursorPositionGet();
}
internal class InputStyle