[]
Specifies the cap type for a line.
Use this enum with CapStyle to control how the end of a shape line is rendered, such as flat, square, or rounded.
public enum LineCapStyle
Public Enum LineCapStyle
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 1, 1, 100, 60);
shape.Line.Weight = 6;
shape.Line.CapStyle = LineCapStyle.Round;
| Name | Description |
|---|---|
| Flat | Specifies that the end of the line is flat and does not extend beyond the endpoint. |
| Round | Specifies the end of the line is rounded. |
| Square | Specifies the end of the line is capped with a square shape. |