Spread Windows Forms 11.0 Product Documentation
FocusRenderer Property (FpSpread)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : FocusRenderer Property
Gets or sets the focus indicator renderer for drawing the focus rectangle in the component.
Syntax
'Declaration
 
Public Property FocusRenderer As IFocusIndicatorRenderer
'Usage
 
Dim instance As FpSpread
Dim value As IFocusIndicatorRenderer
 
instance.FocusRenderer = value
 
value = instance.FocusRenderer
public IFocusIndicatorRenderer FocusRenderer {get; set;}

Property Value

IFocusIndicatorRenderer instance that determines the focus renderer
Remarks

There are implementations of IFocusIndicatorRenderer that you can use to assign custom focus indicators with this property.

Example
This example changes the focus rectangle to solid.
fpSpread1.FocusRenderer = new FarPoint.Win.Spread.SolidFocusIndicatorRenderer(Color.Cyan, 1);
FpSpread1.FocusRenderer = New FarPoint.Win.Spread.SolidFocusIndicatorRenderer(Color.Cyan, 1)
See Also

Reference

FpSpread Class
FpSpread Members
Customizing the Focus Indicator