Spread Windows Forms 15.0
FarPoint.Win Assembly / FarPoint.Win Namespace / ElementWindowless Class / Focused Property
Example


In This Topic
    Focused Property (ElementWindowless)
    In This Topic
    Gets whether the element has focus.
    Syntax
    'Declaration
     
    
    Public Overridable ReadOnly Property Focused As Boolean
    'Usage
     
    
    Dim instance As ElementWindowless
    Dim value As Boolean
     
    value = instance.Focused
    public virtual bool Focused {get;}
    Example
    bool vbool;
    element.AlignHorz = FarPoint.Win.HorizontalAlignment.Left;
    element.AlignVert = FarPoint.Win.VerticalAlignment.Top;
    element.TextWrap = true;
    element.Text = "Let's plan on meeting at 10.";
    vbool = element.Focused;
    textBox1.Text = Convert.ToString(vbool);
    Dim vbool As Boolean
    element.AlignHorz = FarPoint.Win.HorizontalAlignment.Left
    element.AlignVert = FarPoint.Win.VerticalAlignment.Top
    element.TextWrap = true
    element.Text = "Let's plan on meeting at 10."
    vbool = control.Focused
    TextBox1.Text = vbool
    See Also