Spread Windows Forms 7.0 Product Documentation
Bitmap Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > CustomFocusIndicatorRenderer Class : Bitmap Property


Glossary Item Box

Gets or sets the bitmap to use for rendering the custom focus indicator.

Syntax

Visual Basic (Declaration) 
Public Property Bitmap As Bitmap
Visual Basic (Usage)Copy Code
Dim instance As CustomFocusIndicatorRenderer
Dim value As Bitmap
 
instance.Bitmap = value
 
value = instance.Bitmap
C# 
public Bitmap Bitmap {get; set;}

Property Value

Bitmap object containing the bitmap of the focus indicator

Example

This example sets the bitmap for the focus indicator renderer.
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;

Bitmap b;
b = cfi.Bitmap;
Color c = b.GetPixel(0, 0);
MessageBox.Show(c.ToString());
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

Dim b As Bitmap
b = cfi.Bitmap
Dim c As Color = b.GetPixel(0, 0)
MsgBox(c.ToString())

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

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