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


Glossary Item Box

Gets or sets the starting cap for the line.

Syntax

Visual Basic (Declaration) 
Public Overridable Property StartCap As LineCap
Visual Basic (Usage)Copy Code
Dim instance As LineShape
Dim value As LineCap
 
instance.StartCap = value
 
value = instance.StartCap
C# 
public virtual LineCap StartCap {get; set;}

Property Value

LineCap setting that determines the style of cap used to start 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 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.