Spread Windows Forms 8.0 Product Documentation
CustomFocusIndicatorRenderer Constructor(Bitmap,Int32)
Example 


Bitmap to use for rendering
Line thickness in pixels
Creates a new renderer for the custom focus indicator with the specified bitmap and thickness.
Syntax
'Declaration
 
Public Function New( _
   ByVal bitmap As Bitmap, _
   ByVal thickness As Integer _
)
'Usage
 
Dim bitmap As Bitmap
Dim thickness As Integer
 
Dim instance As New CustomFocusIndicatorRenderer(bitmap, thickness)
public CustomFocusIndicatorRenderer( 
   Bitmap bitmap,
   int thickness
)

Parameters

bitmap
Bitmap to use for rendering
thickness
Line thickness in pixels
Example
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;
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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

Reference

CustomFocusIndicatorRenderer Class
CustomFocusIndicatorRenderer Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.