Spread Windows Forms 6.0 Product Documentation
SolidFocusIndicatorRenderer Constructor(Color,Int32)
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SolidFocusIndicatorRenderer Class > SolidFocusIndicatorRenderer Constructor : SolidFocusIndicatorRenderer Constructor(Color,Int32)


clr
Color of the focus indicator
thick
Integer number of pixels in the thickness of the focus indicator

Glossary Item Box

Creates a new renderer of the solid focus indicator with the specified color and thickness.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal clr As Color, _
   ByVal thick As Integer _
)
Visual Basic (Usage)Copy Code
Dim clr As Color
Dim thick As Integer
 
Dim instance As New SolidFocusIndicatorRenderer(clr, thick)
C# 
public SolidFocusIndicatorRenderer( 
   Color clr,
   int thick
)

Parameters

clr
Color of the focus indicator
thick
Integer number of pixels in the thickness of the focus indicator

Example

This example provides a custom focus indicator for the cells.
C#Copy Code
FarPoint.Win.Spread.SolidFocusIndicatorRenderer sfir = new FarPoint.Win.Spread.SolidFocusIndicatorRenderer(Color.Blue, 1);
fpSpread1.FocusRenderer = sfir;
Visual BasicCopy Code
Dim sfir As New FarPoint.Win.Spread.SolidFocusIndicatorRenderer(Color.Blue, 1)
FpSpread1.FocusRenderer = sfir

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.