接口 ILineFormat
public interface ILineFormat
Represents line and arrowhead formatting.
-
方法概要
修饰符和类型方法说明Gets 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 theIColorFormat
object 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.double
Gets the angle of the gradient line for the specified line format.double
Returns 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.int
Returns the shade variant for the specified fill as an integer value from 1 through 4.boolean
Gets whether lines are drawn inside the specified shape's boundaries.Gets the corners style of two intersecting lines.Gets the line pattern.Returns theIColorFormat
object that represents the specified colorof patterns.getStyle()
Gets theLineStyle
object that represents theILineFormat
style.double
Gets 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.boolean
Gets whether the object is visible.double
Gets the weight of the line.void
oneColorGradient
(GradientStyle style, int variant, double degree) Sets the specified line to a one-color gradient.void
patterned
(PatternType pattern) Sets the specified line to a pattern color.void
presetGradient
(GradientStyle style, int variant, PresetGradientType presetGradientType) Sets the specified line to a preset gradient.void
Sets the length of the arrowhead at the beginning of the specified line.void
Sets the style of the arrowhead at the beginning of the specified line.void
Sets the width of the arrowhead at the beginning of the specified line.void
setCapStyle
(LineCapStyle value) Sets the cap style for the end of the line.void
setDashStyle
(LineDashStyle value) Sets the dash style for the specified line.void
Sets the length of the arrowhead at the end of the specified line.void
Sets the style of the arrowhead at the end of the specified line.void
Sets the width of the arrowhead at the end of the specified line.void
setGradientAngle
(double value) Sets the angle of the gradient line for the specified line format.void
setInsetPen
(boolean value) Sets whether lines are drawn inside the specified shape's boundaries.void
setJoinStyle
(LineJoinStyle value) Sets the corners style of two intersecting lines.void
Sets theLineStyle
object that represents theILineFormat
style.void
setTransparency
(double value) Sets the degree of transparency of the specified line as a value from 0.0 (opaque) through 1.0 (clear).void
setVisible
(boolean value) Sets whether the object is visible.void
setWeight
(double value) Sets the weight of the line.void
solid()
Sets the specified line to a uniform color.void
twoColorGradient
(GradientStyle style, int variant) Sets the specified line to a two-color gradient.
-
方法详细资料
-
getPatternColor
IColorFormat getPatternColor()Returns theIColorFormat
object that represents the specified colorof patterns. -
getColor
IColorFormat getColor()Returns theIColorFormat
object 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 theLineDashStyle
constants. -
setDashStyle
Sets the dash style for the specified line. Can be one of theLineDashStyle
constants. -
getCapStyle
LineCapStyle getCapStyle()Gets the cap style for the end of the line. Can be one of theLineCapStyle
constants. -
setCapStyle
Sets the cap style for the end of the line. Can be one of theLineCapStyle
constants. -
getJoinStyle
LineJoinStyle getJoinStyle()Gets the corners style of two intersecting lines. Can be one of theLineJoinStyle
constants. -
setJoinStyle
Sets the corners style of two intersecting lines. Can be one of theLineJoinStyle
constants. -
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 theLineStyle
object that represents theILineFormat
style. -
setStyle
Sets theLineStyle
object that represents theILineFormat
style. -
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.- 参数:
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.- 参数:
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.- 参数:
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.- 参数:
pattern
- RequiredPatternType
.
-