Xamarin.iOS

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfMaskedEdit - Xamarin.iOS API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SfMaskedEdit

    Represents the Masked Edit control

    Inheritance
    System.Object
    SfMaskedEdit
    Implements
    System.ComponentModel.INotifyPropertyChanged
    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 Description
    System.Globalization.CultureInfo

    CursorPosition

    Gets or sets the position of the cursor in masked edit.

    Declaration
    public int CursorPosition { get; set; }
    Property Value
    Type Description
    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 Description
    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 Description
    System.Boolean

    ErrorBorderColor

    Gets or sets the error border color

    Declaration
    public UIColor ErrorBorderColor { get; set; }
    Property Value
    Type Description
    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 Description
    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 Description
    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 Description
    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 Description
    MaskType

    PasswordChar

    Gets or sets a value to be displayed in substitute of user input.

    Declaration
    public char PasswordChar { get; set; }
    Property Value
    Type Description
    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 Description
    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 Description
    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 Description
    System.Boolean

    ValidationMode

    Gets or sets the input validation mode of the MaskedEdit.

    Declaration
    public InputValidationMode ValidationMode { get; set; }
    Property Value
    Type Description
    InputValidationMode

    Value

    Gets or sets the raw value of the MaskedEdit.

    Declaration
    public object Value { get; set; }
    Property Value
    Type Description
    System.Object

    ValueMaskFormat

    Gets or sets the value formatting option of the MaskedEdit.

    Declaration
    public MaskFormat ValueMaskFormat { get; set; }
    Property Value
    Type Description
    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.

    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 Description
    System.EventHandler<SfMaskedEdit.CursorPositionChangingEventArgs>

    MaskInputRejected

    Occurs when mask input rejected

    Declaration
    public event MaskInputRejectedEventHandler MaskInputRejected
    Event Type
    Type Description
    MaskInputRejectedEventHandler

    PropertyChanged

    Occurs when mask property changed.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler

    ValueChanged

    Event handles when value changed.

    Declaration
    public event ValueChangedEventHandler ValueChanged
    Event Type
    Type Description
    ValueChangedEventHandler

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved