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


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)
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

FpSpread Class
FpSpread Members
Customizing the Focus Indicator

 

 


Copyright © GrapeCity, inc. All rights reserved.