Spread Windows Forms 12.0 Product Documentation
EndCap Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.DrawingSpace Namespace > LineShape Class : EndCap Property
Gets or sets the ending cap for the line.
Syntax
'Declaration
 
Public Overridable Property EndCap As LineCap
'Usage
 
Dim instance As LineShape
Dim value As LineCap
 
instance.EndCap = value
 
value = instance.EndCap
public virtual LineCap EndCap {get; set;}

Property Value

LineCap setting that determines the style of cap used to end a line.
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)
See Also

Reference

LineShape Class
LineShape Members