Spread Windows Forms 10.0 Product Documentation
DrawFocusRectangle Property (ElementStyle)


Gets or sets the focus rectangle drawing style for the object.
Syntax
'Declaration
 
Public Overridable Property DrawFocusRectangle As DrawFocusRectangle
'Usage
 
Dim instance As ElementStyle
Dim value As DrawFocusRectangle
 
instance.DrawFocusRectangle = value
 
value = instance.DrawFocusRectangle
public virtual DrawFocusRectangle DrawFocusRectangle {get; set;}

Property Value

DrawFocusRectangle setting that determines how the focus rectangle is displayed.
Remarks

You can specify whether and how the focus rectangle is drawn for the object by setting this property. The following figure shows the focus rectangle drawn around the picture only.

Specify whether the object can receive the focus by setting the CanFocus property or the Enabled property.

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

ElementStyle Class
ElementStyle Members
DrawFocusRectangle Enumeration
CanFocus Property
Enabled Property

 

 


Copyright © GrapeCity, inc. All rights reserved.