Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / Field Class / Focus Method


In This Topic
    Focus Method (Field)
    In This Topic
    Attempts to set focus to this element.
    Syntax
    'Declaration
     
    <ObsoleteAttribute("The Focus method is obsolete, using Activate on each delivered field instead.")>
    Public Shadows Function Focus() As Boolean
    'Usage
     
    Dim instance As Field
    Dim value As Boolean
     
    value = instance.Focus()
    [Obsolete("The Focus method is obsolete, using Activate on each delivered field instead.")]
    public new bool Focus()

    Return Value

    true if focus could be set to this element; otherwise, false.
    Remarks
    As the structure of IMWPF control, user should not call the focus method to force current field activated. Please try another way.
    See Also