Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win Namespace / ElementWindowless Class / DrawFocusRectangle Property
Example


In This Topic
    DrawFocusRectangle Property (ElementWindowless)
    In This Topic
    Gets or sets the focus rectangle drawing style in the element.
    Syntax
    'Declaration
     
    
    Public Overridable Property DrawFocusRectangle As DrawFocusRectangle
    'Usage
     
    
    Dim instance As ElementWindowless
    Dim value As DrawFocusRectangle
     
    instance.DrawFocusRectangle = value
     
    value = instance.DrawFocusRectangle
    public virtual DrawFocusRectangle DrawFocusRectangle {get; set;}
    Example
    element.Picture = System.Drawing.Image.FromFile("d:\\mail16A.ico");
    element.AlignText = FarPoint.Win.TextAlign.TextLeftPictRight;
    element.PictureMargin = 25;
    element.MarginBottom = 20;
    element.DrawFocusRectangle = FarPoint.Win.DrawFocusRectangle.AroundText;
    element.Picture = System.Drawing.Image.FromFile("d:\mail16A.ico")
    element.AlignText = FarPoint.Win.TextAlign.TextLeftPictRight
    element.PictureMargin = 25
    element.MarginBottom = 20
    element.DrawFocusRectangle = FarPoint.Win.DrawFocusRectangle.AroundText
    See Also