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


In This Topic
    Focus Method (DisplayField)
    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 DisplayField
    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; false if this method call did not force focus.
    See Also