Interface ILineFormat
public interface ILineFormat
Represents line and arrowhead formatting.
-
Method Summary
Modifier and TypeMethodDescriptionGets the length of the arrowhead at the beginning of the specified line.Gets the style of the arrowhead at the beginning of the specified line.Gets the width of the arrowhead at the beginning of the specified line.Gets the cap style for the end of the line.getColor()Returns theIColorFormatobject that represents the specified solidcolor.Gets the dash style for the specified line.Gets the length of the arrowhead at the end of the specified line.Gets the style of the arrowhead at the end of the specified line.Gets the width of the arrowhead at the end of the specified line.doubleGets the angle of the gradient line for the specified line format.doubleReturns the gradient degree of the specified one-color shaded line as a floating-point value from 0.0 (dark) through 1.0 (light).Returns the end point for the gradient line.Returns the gradient style for the specified line.intReturns the shade variant for the specified fill as an integer value from 1 through 4.booleanGets whether lines are drawn inside the specified shape's boundaries.Gets the corners style of two intersecting lines.Gets the line pattern.Returns theIColorFormatobject that represents the specified colorof patterns.getStyle()Gets theLineStyleobject that represents theILineFormatstyle.doubleGets the degree of transparency of the specified line as a value from 0.0 (opaque) through 1.0 (clear).getType()Returns the fill type of the line.booleanGets whether the object is visible.doubleGets the weight of the line.voidoneColorGradient(GradientStyle style, int variant, double degree) Sets the specified line to a one-color gradient.voidpatterned(PatternType pattern) Sets the specified line to a pattern color.voidpresetGradient(GradientStyle style, int variant, PresetGradientType presetGradientType) Sets the specified line to a preset gradient.voidSets the length of the arrowhead at the beginning of the specified line.voidSets the style of the arrowhead at the beginning of the specified line.voidSets the width of the arrowhead at the beginning of the specified line.voidsetCapStyle(LineCapStyle value) Sets the cap style for the end of the line.voidsetDashStyle(LineDashStyle value) Sets the dash style for the specified line.voidSets the length of the arrowhead at the end of the specified line.voidSets the style of the arrowhead at the end of the specified line.voidSets the width of the arrowhead at the end of the specified line.voidsetGradientAngle(double value) Sets the angle of the gradient line for the specified line format.voidsetInsetPen(boolean value) Sets whether lines are drawn inside the specified shape's boundaries.voidsetJoinStyle(LineJoinStyle value) Sets the corners style of two intersecting lines.voidSets theLineStyleobject that represents theILineFormatstyle.voidsetTransparency(double value) Sets the degree of transparency of the specified line as a value from 0.0 (opaque) through 1.0 (clear).voidsetVisible(boolean value) Sets whether the object is visible.voidsetWeight(double value) Sets the weight of the line.voidsolid()Sets the specified line to a uniform color.voidtwoColorGradient(GradientStyle style, int variant) Sets the specified line to a two-color gradient.
-
Method Details
-
getPatternColor
IColorFormat getPatternColor()Returns theIColorFormatobject that represents the specified colorof patterns. -
getColor
IColorFormat getColor()Returns theIColorFormatobject that represents the specified solidcolor. -
getType
FillType getType()Returns the fill type of the line. -
getBeginArrowheadLength
ArrowheadLength getBeginArrowheadLength()Gets the length of the arrowhead at the beginning of the specified line. -
setBeginArrowheadLength
Sets the length of the arrowhead at the beginning of the specified line. -
getBeginArrowheadStyle
ArrowheadStyle getBeginArrowheadStyle()Gets the style of the arrowhead at the beginning of the specified line. -
setBeginArrowheadStyle
Sets the style of the arrowhead at the beginning of the specified line. -
getBeginArrowheadWidth
ArrowheadWidth getBeginArrowheadWidth()Gets the width of the arrowhead at the beginning of the specified line. -
setBeginArrowheadWidth
Sets the width of the arrowhead at the beginning of the specified line. -
getDashStyle
LineDashStyle getDashStyle()Gets the dash style for the specified line. Can be one of theLineDashStyleconstants. -
setDashStyle
Sets the dash style for the specified line. Can be one of theLineDashStyleconstants. -
getCapStyle
LineCapStyle getCapStyle()Gets the cap style for the end of the line. Can be one of theLineCapStyleconstants. -
setCapStyle
Sets the cap style for the end of the line. Can be one of theLineCapStyleconstants. -
getJoinStyle
LineJoinStyle getJoinStyle()Gets the corners style of two intersecting lines. Can be one of theLineJoinStyleconstants. -
setJoinStyle
Sets the corners style of two intersecting lines. Can be one of theLineJoinStyleconstants. -
getEndArrowheadLength
ArrowheadLength getEndArrowheadLength()Gets the length of the arrowhead at the end of the specified line. -
setEndArrowheadLength
Sets the length of the arrowhead at the end of the specified line. -
getEndArrowheadStyle
ArrowheadStyle getEndArrowheadStyle()Gets the style of the arrowhead at the end of the specified line. -
setEndArrowheadStyle
Sets the style of the arrowhead at the end of the specified line. -
getEndArrowheadWidth
ArrowheadWidth getEndArrowheadWidth()Gets the width of the arrowhead at the end of the specified line. -
setEndArrowheadWidth
Sets the width of the arrowhead at the end of the specified line. -
getInsetPen
boolean getInsetPen()Gets whether lines are drawn inside the specified shape's boundaries. -
setInsetPen
void setInsetPen(boolean value) Sets whether lines are drawn inside the specified shape's boundaries. -
getPattern
PatternType getPattern()Gets the line pattern. -
getStyle
LineStyle getStyle()Gets theLineStyleobject that represents theILineFormatstyle. -
setStyle
Sets theLineStyleobject that represents theILineFormatstyle. -
getTransparency
double getTransparency()Gets the degree of transparency of the specified line as a value from 0.0 (opaque) through 1.0 (clear). -
setTransparency
void setTransparency(double value) Sets the degree of transparency of the specified line as a value from 0.0 (opaque) through 1.0 (clear). -
getVisible
boolean getVisible()Gets whether the object is visible. -
setVisible
void setVisible(boolean value) Sets whether the object is visible. -
getGradientAngle
double getGradientAngle()Gets the angle of the gradient line for the specified line format. -
setGradientAngle
void setGradientAngle(double value) Sets the angle of the gradient line for the specified line format. -
getGradientDegree
double getGradientDegree()Returns the gradient degree of the specified one-color shaded line as a floating-point value from 0.0 (dark) through 1.0 (light). -
getGradientStops
IGradientStops getGradientStops()Returns the end point for the gradient line. This property is read-only. -
getGradientStyle
GradientStyle getGradientStyle()Returns the gradient style for the specified line. -
getGradientVariant
int getGradientVariant()Returns the shade variant for the specified fill as an integer value from 1 through 4. -
getWeight
double getWeight()Gets the weight of the line. -
setWeight
void setWeight(double value) Sets the weight of the line. -
oneColorGradient
Sets the specified line to a one-color gradient.- Parameters:
style- RequiredGradientStyle. Can be one of the following GradientStyle constants:GradientDiagonalDown, GradientDiagonalUp, GradientFromCenter, GradientFromCorner, GradientFromTitle, GradientHorizontal, or GradientVertical.variant- Required Integer. The gradient variant. Can be a value from 1through 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- Required Single. The gradient degree. Can be a value from 0.0(dark) through 1.0 (light).
-
twoColorGradient
Sets the specified line to a two-color gradient.- Parameters:
style- RequiredGradientStyle. Can be one of the following GradientStyle constants: GradientDiagonalDown, GradientDiagonalUp, GradientFromCenter, GradientFromCorner, GradientFromTitle, GradientHorizontal, or GradientVertical.variant- Required Integer. The gradient variant. Can be a value from 1through 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.
-
presetGradient
Sets the specified line to a preset gradient.- Parameters:
style- RequiredGradientStyle.Can be one of the following GradientStyle constants: GradientDiagonalDown, GradientDiagonalUp, GradientFromCenter, GradientFromCorner, GradientFromTitle, GradientHorizontal, or GradientVertical.variant- Required Integer. The gradient variant. Can be a value from 1through 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- RequiredPresetGradientType.
-
solid
void solid()Sets the specified line to a uniform color. -
patterned
Sets the specified line to a pattern color.- Parameters:
pattern- RequiredPatternType.
-