Spread Windows Forms 10.0 Product Documentation
Thickness Property (LineShape)
Example 


Gets or sets the thickness of the line.
Syntax
'Declaration
 
Public Overridable Property Thickness As Single
'Usage
 
Dim instance As LineShape
Dim value As Single
 
instance.Thickness = value
 
value = instance.Thickness
public virtual float Thickness {get; set;}

Property Value

Single-precision, floating-point number of pixels in the thickness of the line
Remarks

The maximum thickness for a line is 64 pixels.

Example
This example creates a line shape with rounded ends and a six-pixel thick line.
FarPoint.Win.Spread.DrawingSpace.LineShape ls = new FarPoint.Win.Spread.DrawingSpace.LineShape();
ls.EndCap = Drawing2D.LineCap.RoundAnchor;
ls.StartCap = Drawing2D.LineCap.RoundAnchor;
ls.Thickness = 6;
ls.SetBounds(10, 10, 50, 50);

fpSpread1.ActiveSheet.AddShape(ls);
Dim ls As New FarPoint.Win.Spread.DrawingSpace.LineShape()
ls.EndCap = Drawing2D.LineCap.RoundAnchor
ls.StartCap = Drawing2D.LineCap.RoundAnchor
ls.Thickness = 6
ls.SetBounds(10, 10, 50, 50)

FpSpread1.ActiveSheet.AddShape(ls)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

LineShape Class
LineShape Members

 

 


Copyright © GrapeCity, inc. All rights reserved.