[]
Represents line and arrowhead formatting.
public interface ILineFormat
Gets or sets the length of the arrowhead at the beginning of the specified line.
ArrowheadLength BeginArrowheadLength { get; set; }
Gets or sets the style of the arrowhead at the beginning of the specified line.
ArrowheadStyle BeginArrowheadStyle { get; set; }
Gets or sets the width of the arrowhead at the beginning of the specified line.
ArrowheadWidth BeginArrowheadWidth { get; set; }
Gets or sets the cap style for the end of the line. Can be one of the LineCapStyle constants.
LineCapStyle CapStyle { get; set; }
Returns the IColorFormat object that represents the specified solid color.
IColorFormat Color { get; }
Gets or sets the dash style for the specified line. Can be one of the LineDashStyle constants.
LineDashStyle DashStyle { get; set; }
Gets or sets the length of the arrowhead at the end of the specified line.
ArrowheadLength EndArrowheadLength { get; set; }
Gets or sets the style of the arrowhead at the end of the specified line.
ArrowheadStyle EndArrowheadStyle { get; set; }
Gets or sets the width of the arrowhead at the end of the specified line.
ArrowheadWidth EndArrowheadWidth { get; set; }
Gets or sets the angle of the gradient line for the specified line format.
double GradientAngle { get; set; }
Returns the gradient degree of the specified one-color shaded line as a floating-point value from 0.0 (dark) through 1.0 (light).
double GradientDegree { get; }
Returns the end point for the gradient line. This property is read-only.
IGradientStops GradientStops { get; }
Returns the gradient style for the specified line.
GradientStyle GradientStyle { get; }
Returns the shade variant for the specified fill as an integer value from 1 through 4.
int GradientVariant { get; }
Gets or sets whether lines are drawn inside the specified shape's boundaries.
bool InsetPen { get; set; }
Gets or sets the corners style of two intersecting lines. Can be one of the LineJoinStyle constants.
LineJoinStyle JoinStyle { get; set; }
Gets the line pattern.
PatternType Pattern { get; }
Returns the IColorFormat object that represents the specified color of patterns.
IColorFormat PatternColor { get; }
Gets or sets the LineStyle object that represents the ILineFormat style.
LineStyle Style { get; set; }
Gets or sets the degree of transparency of the specified line as a value from 0.0 (opaque) through 1.0 (clear).
double Transparency { get; set; }
Returns the fill type of the line.
FillType Type { get; }
Gets or sets whether the object is visible.
bool Visible { get; set; }
Gets or sets the weight of the line.
double Weight { get; set; }
Sets the specified line to a one-color gradient.
void OneColorGradient(GradientStyle style, int variant, double degree)
style
GradientStyleRequired GradientStyle. Can be one of the following GradientStyle constants:GradientDiagonalDown, GradientDiagonalUp, GradientFromCenter, GradientFromCorner, GradientFromTitle, GradientHorizontal, or GradientVertical.
variant
intRequired Integer. The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the line Effects dialog box. If GradientStyle is GradientFromCenter, the Variant argument can only be 1 or 2.
degree
doubleRequired Single. The gradient degree. Can be a value from 0.0 (dark) through 1.0 (light).
Sets the specified line to a pattern color.
void Patterned(PatternType pattern)
pattern
PatternTypeRequired PatternType.
Sets the specified line to a preset gradient.
void PresetGradient(GradientStyle style, int variant, PresetGradientType presetGradientType)
style
GradientStyleRequired GradientStyle.Can be one of the following GradientStyle constants: GradientDiagonalDown, GradientDiagonalUp, GradientFromCenter, GradientFromCorner, GradientFromTitle, GradientHorizontal, or GradientVertical.
variant
intRequired Integer. The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the line Effects dialog box. If GradientStyle is GradientFromCenter, the Variant argument can only be 1 or 2.
presetGradientType
PresetGradientTypeRequired PresetGradientType.
Sets the specified line to a uniform color.
void Solid()
Sets the specified line to a two-color gradient.
void TwoColorGradient(GradientStyle style, int variant)
style
GradientStyleRequired GradientStyle. Can be one of the following GradientStyle constants: GradientDiagonalDown, GradientDiagonalUp, GradientFromCenter, GradientFromCorner, GradientFromTitle, GradientHorizontal, or GradientVertical.
variant
intRequired Integer. The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the line Effects dialog box. If GradientStyle is GradientFromCenter, the Variant argument can only be 1 or 2.