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


bitmap
Bitmap to use for rendering
thickness
Line thickness in pixels

Glossary Item Box

Creates a new renderer for the custom focus indicator with the specified bitmap and thickness.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal bitmap As Bitmap, _
   ByVal thickness As Integer _
)
Visual Basic (Usage)Copy Code
Dim bitmap As Bitmap
Dim thickness As Integer
 
Dim instance As New CustomFocusIndicatorRenderer(bitmap, thickness)
C# 
public CustomFocusIndicatorRenderer( 
   Bitmap bitmap,
   int thickness
)

Parameters

bitmap
Bitmap to use for rendering
thickness
Line thickness in pixels

Example

C#Copy Code
Bitmap bm = new Bitmap(2, 2);
bm.SetPixel(0, 0, Color.Black);
bm.SetPixel(0, 1, Color.Red);
bm.SetPixel(1, 0, Color.Red);
bm.SetPixel(1, 1, Color.Black); 

FarPoint.Win.Spread.CustomFocusIndicatorRenderer cfi = new FarPoint.Win.Spread.CustomFocusIndicatorRenderer(bm, 2);

fpSpread1.FocusRenderer = cfi;
Visual BasicCopy Code
Dim bm As New Bitmap(2, 2)
bm.SetPixel(0, 0, Color.Black)
bm.SetPixel(0, 1, Color.Red)
bm.SetPixel(1, 0, Color.Red)
bm.SetPixel(1, 1, Color.Black)

Dim cfi As New FarPoint.Win.Spread.CustomFocusIndicatorRenderer(bm, 2)

FpSpread1.FocusRenderer = cfi

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.