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


Glossary Item Box

Gets or sets the thickness in pixels of the custom focus indicator.

Syntax

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

Property Value

Integer number of pixels in the thickness of the focus indicator

Example

This example sets the thickness for the custom 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;

int i;
i = cfi.Thickness;
MessageBox.Show(i.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 i As Integer
i = cfi.Thickness
MsgBox(i.ToString())

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.