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


Glossary Item Box

Gets or sets the ending cap for the line.

Syntax

Visual Basic (Declaration) 
Public Overridable Property EndCap As LineCap
Visual Basic (Usage)Copy Code
Dim instance As LineShape
Dim value As LineCap
 
instance.EndCap = value
 
value = instance.EndCap
C# 
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.
C#Copy Code
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);
Visual BasicCopy Code
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 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.