/// <summary>
/// A control which provides a single line editable text field.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public class TextField : View
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
/// <summary>
/// Dispose.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
protected override void Dispose(DisposeTypes type)
{
if (disposed)
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
-
- if (_textFieldMaxLengthReachedCallbackDelegate != null)
+ if (this != null)
{
- this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
- }
+ if (_textFieldMaxLengthReachedCallbackDelegate != null)
+ {
+ this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
+ }
- if (_textFieldTextChangedCallbackDelegate != null)
- {
- TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
+ if (_textFieldTextChangedCallbackDelegate != null)
+ {
+ TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
+ }
}
if (swigCPtr.Handle != global::System.IntPtr.Zero)
/// <summary>
/// The TextChanged event arguments.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public class TextChangedEventArgs : EventArgs
{
private TextField _textField;
/// <summary>
/// The MaxLengthReached event arguments.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public class MaxLengthReachedEventArgs : EventArgs
{
private TextField _textField;
internal static readonly int ENABLE_SELECTION = NDalicManualPINVOKE.TextField_Property_ENABLE_SELECTION_get();
internal static readonly int PLACEHOLDER = NDalicManualPINVOKE.TextField_Property_PLACEHOLDER_get();
internal static readonly int ELLIPSIS = NDalicManualPINVOKE.TextField_Property_ELLIPSIS_get();
+ internal static readonly int ENABLE_SHIFT_SELECTION = NDalicManualPINVOKE.TextField_Property_ENABLE_SHIFT_SELECTION_get();
}
internal class InputStyle
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- /// <summary>
- /// Downcasts a handle to textField handle.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// Please do not use! this will be deprecated!
- /// Instead please use as keyword.
- [Obsolete("Please DO NOT use! This will be deprecated, instead please USE as keyword.")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public new static TextField DownCast(BaseHandle handle)
- {
- TextField ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as TextField;
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
internal TextFieldSignal TextChangedSignal()
{
TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_TextChangedSignal(swigCPtr), false);
/// <summary>
/// The Enable selection property.
/// </summary>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 3 </since_tizen>
public bool EnableSelection
{
get
/// field.Placeholder = propertyMap;
/// </code>
/// </example>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 3 </since_tizen>
public Tizen.NUI.PropertyMap Placeholder
{
get
}
}
+ /// <summary>
+ /// Enables Text selection using Shift key.
+ /// </summary>
+ /// <since_tizen> 5 </since_tizen>
+ public bool EnableShiftSelection
+ {
+ get
+ {
+ // mShiftSelectionFlag( true )
+ bool temp = true;
+ GetProperty(TextField.Property.ENABLE_SHIFT_SELECTION).Get(out temp);
+ return temp;
+ }
+ set
+ {
+ SetProperty(TextField.Property.ENABLE_SHIFT_SELECTION, new Tizen.NUI.PropertyValue(value));
+ }
+ }
- }
+
+ }
}