Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / MaskPatternField Class / Activate Method


In This Topic
    Activate Method (MaskPatternField)
    In This Topic
    Attempts to activate current field and put caret to default caret position.
    Syntax
    'Declaration
     
    Public Function Activate() As Boolean
    'Usage
     
    Dim instance As MaskPatternField
    Dim value As Boolean
     
    value = instance.Activate()
    public bool Activate()

    Return Value

    true if caret could be set to this element; Otherwise, false
    Remarks
    When user want to set the caret to this field, user can call this method. If the owner control has focus, it will make the field active immediately; If the owner control has no focus, it will set the selection start at the first place of current field. If the caret in the field, call this method, nothing happen; If the caret not in the field, call this method, when control got focus, the caret will in the left-most of that field.
    See Also