Spread Windows Forms 12.0 Product Documentation
DrawFocusRectangle Property (ElementControl)

FarPoint.Win Assembly > FarPoint.Win Namespace > ElementControl Class : DrawFocusRectangle Property
Gets or sets the drawing style of the focus rectangle in the control.
Public Overridable Property DrawFocusRectangle As DrawFocusRectangle
Dim instance As ElementControl
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.

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

Specify whether the control can receive the focus by setting the CanFocus property or the Enabled property. If the CanFocus property is set to true, you can check whether the control has the focus, or move the focus to the control, by calling the Focus method or check whether the control has the focus using the Focused property.

See Also


ElementControl Class
ElementControl Members
DrawFocusRectangle Enumeration
CanFocus Property
Focus(Boolean) Method
Focused Property