LineFormat

LineFormat class

Represents all setting of the line.

public class LineFormat : FillFormat

Properties

Name Description
BeginArrowheadLength { get; set; } Gets and sets the begin arrow length type of the line.
BeginArrowheadStyle { get; set; } Gets and sets the begin arrow type of the line.
BeginArrowheadWidth { get; set; } Gets and sets the begin arrow width type of the line.
CapType { get; set; } Specifies the ending caps.
CompoundType { get; set; } Specifies the line compound type.
DashStyle { get; set; } Specifies the line dash type.
EndArrowheadLength { get; set; } Gets and sets the end arrow length type of the line.
EndArrowheadStyle { get; set; } Gets and sets the end arrow type of the line.
EndArrowheadWidth { get; set; } Gets and sets the end arrow width type of the line.
FillType { get; set; } Gets and sets fill type
GradientColor1 { get; } Returns the gradient color 1 for the specified fill.
GradientColor2 { get; } Returns the gradient color 2 for the specified fill.
GradientColorType { get; } Returns the gradient color type for the specified fill.
GradientDegree { get; } Returns the gradient degree for the specified fill. Only applies for Excel 2007.
GradientFill { get; } Gets GradientFill object.
GradientStyle { get; } Returns the gradient style for the specified fill.
GradientVariant { get; } Returns the gradient variant for the specified fill. Only applies for Excel 2007.
ImageData { get; set; } Gets and sets the picture image data.
JoinType { get; set; } Specifies the line join type.
Pattern { get; set; } Represents an area’s display pattern.
PatternFill { get; } Gets PatternFill object.
PictureFormatType { get; set; } Gets and sets the picture format type.
PresetColor { get; } Returns the gradient preset color for the specified fill.
Scale { get; set; } Gets and sets the picture format scale.
SetType { get; set; } Gets the fill format set type.
SolidFill { get; } Gets SolidFill object.
Texture { get; set; } Represents the texture type for the specified fill.
TextureFill { get; } Gets TextureFill object.
Transparency { get; set; } Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).
Type { get; set; } Gets and sets the fill type.
Weight { get; set; } Gets or sets the weight of the line in unit of points.

Methods

Name Description
override Equals(object) Determines whether this instance has the same value as another specified LineFormat object.
override GetHashCode() Gets the hash code.
SetOneColorGradient(Color, double, GradientStyleType, int) Sets the specified fill to a one-color gradient. Only applies for Excel 2007.
SetPresetColorGradient(GradientPresetType, GradientStyleType, int) Sets the specified fill to a preset-color gradient. Only applies for Excel 2007.
SetTwoColorGradient(Color, Color, GradientStyleType, int) Sets the specified fill to a two-color gradient. Only applies for Excel 2007.
SetTwoColorGradient(Color, double, Color, double, GradientStyleType, int) Sets the specified fill to a two-color gradient. Only applies for Excel 2007.

Examples


[C#]
//Instantiating a Workbook object
Workbook workbook = new Workbook();
ShapeCollection shapes = workbook.Worksheets[0].Shapes;
Shape shape = shapes.AddRectangle(1, 0, 1, 0, 50, 100);
LineFormat lineFmt = shape.Line;

//do your business

See Also