Class SfMaskedEdit
Represents the Masked Edit control
Inheritance
Implements
Namespace: Syncfusion.iOS.MaskedEdit
Assembly: Syncfusion.SfMaskedEdit.iOS.dll
Syntax
public class SfMaskedEdit : UITextField, INotifyPropertyChanged
Constructors
SfMaskedEdit()
Initializes a new instance of the SfMaskedEdit class
Declaration
public SfMaskedEdit()
SfMaskedEdit(IntPtr)
Initializes a new instance of the SfMaskedEdit class
Declaration
public SfMaskedEdit(IntPtr handle)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | handle | Pointer to the unmanaged object. |
Properties
Culture
Gets or sets the culture information associated with the masked text box
Declaration
public CultureInfo Culture { get; set; }
Property Value
Type |
---|
System.Globalization.CultureInfo |
CursorPosition
Gets or sets the position of the cursor in masked edit.
Declaration
public int CursorPosition { get; set; }
Property Value
Type |
---|
System.Int32 |
CutCopyMaskFormat
Gets or sets a value that determines whether literals and prompt characters are copied to the clipboard.
Declaration
public MaskFormat CutCopyMaskFormat { get; set; }
Property Value
Type |
---|
MaskFormat |
EnablePasswordDelay
Gets or sets a value indicating whether the password character should be displayed with delay or not.
Declaration
public bool EnablePasswordDelay { get; set; }
Property Value
Type |
---|
System.Boolean |
ErrorBorderColor
Gets or sets the error border color
Declaration
public UIColor ErrorBorderColor { get; set; }
Property Value
Type |
---|
UIKit.UIColor |
HasError
Gets or sets a value indicating whether the mask is succeeded or not.
Declaration
public bool HasError { get; set; }
Property Value
Type |
---|
System.Boolean |
HidePromptOnLeave
Gets or sets a value indicating whether the prompt characters in the input mask are hidden when the masked text box loses focus.
Declaration
public bool HidePromptOnLeave { get; set; }
Property Value
Type |
---|
System.Boolean |
Mask
Gets or sets the mask used to validate input as the user types. The mask must be a string composed of one or more of the masking elements.
Declaration
public string Mask { get; set; }
Property Value
Type |
---|
System.String |
MaskType
Gets or sets the type of mask elements used to validate the user input.
Declaration
public MaskType MaskType { get; set; }
Property Value
Type |
---|
MaskType |
PasswordChar
Gets or sets a value to be displayed in substitute of user input.
Declaration
public char PasswordChar { get; set; }
Property Value
Type |
---|
System.Char |
PasswordDelayDuration
Gets or sets the duration of the delay when tying the password character.
Declaration
public double PasswordDelayDuration { get; set; }
Property Value
Type |
---|
System.Double |
PromptChar
Gets or sets the character used to represent the absence of user input in MaskedEdit.
Declaration
public char PromptChar { get; set; }
Property Value
Type |
---|
System.Char |
SkipLiterals
Gets or sets a value indicating whether the user is allowed to reenter literal values.
Declaration
public bool SkipLiterals { get; set; }
Property Value
Type |
---|
System.Boolean |
ValidationMode
Gets or sets the input validation mode of the MaskedEdit.
Declaration
public InputValidationMode ValidationMode { get; set; }
Property Value
Type |
---|
InputValidationMode |
Value
Gets or sets the raw value of the MaskedEdit.
Declaration
public object Value { get; set; }
Property Value
Type |
---|
System.Object |
ValueMaskFormat
Gets or sets the value formatting option of the MaskedEdit.
Declaration
public MaskFormat ValueMaskFormat { get; set; }
Property Value
Type |
---|
MaskFormat |
Methods
add_MaskInputRejected(MaskInputRejectedEventHandler)
Declaration
public void add_MaskInputRejected(MaskInputRejectedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
MaskInputRejectedEventHandler | value |
add_ValueChanged(ValueChangedEventHandler)
Declaration
public void add_ValueChanged(ValueChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventHandler | value |
AwakeFromNib()
Called after the object has been loaded from the nib file.
Declaration
public override void AwakeFromNib()
Copy(NSObject)
Indicates a "Copy" editing operation.
Declaration
public override void Copy(NSObject sender)
Parameters
Type | Name | Description |
---|---|---|
Foundation.NSObject | sender | Object calling this method. |
Cut(NSObject)
Indicates a "Cut" editing operation.
Declaration
public override void Cut(NSObject sender)
Parameters
Type | Name | Description |
---|---|---|
Foundation.NSObject | sender | Object calling this method. |
Dispose(Boolean)
Releases the resources used by the UIView object.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | If set to true, the method is invoked directly and will dispose manage and unmanaged resources; If set to false the method is being called by the garbage collector and should only release unmanaged resources. |
LayoutSubviews()
It is used to update the layout
Declaration
public override void LayoutSubviews()
Paste(NSObject)
Indicates a "Paste" editing operation.
Declaration
public override void Paste(NSObject sender)
Parameters
Type | Name | Description |
---|---|---|
Foundation.NSObject | sender | Object calling this method. |
remove_MaskInputRejected(MaskInputRejectedEventHandler)
Declaration
public void remove_MaskInputRejected(MaskInputRejectedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
MaskInputRejectedEventHandler | value |
remove_ValueChanged(ValueChangedEventHandler)
Declaration
public void remove_ValueChanged(ValueChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventHandler | value |
Events
CursorPositionChanging
Raised the event during the change of cursor position.
Declaration
public event EventHandler<SfMaskedEdit.CursorPositionChangingEventArgs> CursorPositionChanging
Event Type
Type |
---|
System.EventHandler<SfMaskedEdit.CursorPositionChangingEventArgs> |
MaskInputRejected
Occurs when mask input rejected
Declaration
public event MaskInputRejectedEventHandler MaskInputRejected
Event Type
Type |
---|
MaskInputRejectedEventHandler |
PropertyChanged
Occurs when mask property changed.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
---|
System.ComponentModel.PropertyChangedEventHandler |
ValueChanged
Event handles when value changed.
Declaration
public event ValueChangedEventHandler ValueChanged
Event Type
Type |
---|
ValueChangedEventHandler |