接口 IFillFormat
public interface IFillFormat
Represents fill formatting for a shape.
-
方法概要
修饰符和类型方法说明getColor()
Returns theIColorFormat
object that represents the specifiedforeground fill or solid color.double
Gets the angle of the gradient fill for the specified fill format.double
Returns the gradient degree of the specified one-color shaded fill as a floating-point value from 0.0 (dark) through 1.0 (light).Gets the path type for the gradient fill.Returns the end point for the gradient fill.Returns the gradient style for the specified fill.int
Returns the shade variant for the specified fill as an integer value from 1 through 4.Returns the fill pattern.Returns theIColorFormat
object that represents the specified patterncolor.Returns the preset gradient type for the specified fill.Returns the preset texture for the specified fill.boolean
Gets if the fill style should rotate with the object.Gets the text alignment for the specifiedIFillFormat
.double
Gets the value for horizontally scaling the text for theIFillFormat
.double
Returns the offset X value for the specified fill.double
Returns the offset Y value for the specified fill.double
Returns the texture vertical scale for the specified fill.double
Gets the degree of transparency of the specified fill as a value from 0.0 (opaque) through 1.0 (clear).getType()
Returns the fill type.boolean
Determines whether the object is visible.void
oneColorGradient
(GradientStyle style, int variant, double degree) Sets the specified fill to a one-color gradient.void
patterned
(PatternType pattern) Sets the specified fill to a pattern.void
presetGradient
(GradientStyle style, int variant, PresetGradientType presetGradientType) Sets the specified fill to a preset gradient.void
presetTextured
(PresetTexture presetTexture) Sets the specified fill format to a preset texture.void
setGradientAngle
(double value) Sets the angle of the gradient fill for the specified fill format.void
setGradientPathType
(PathShapeType value) Sets the path type for the gradient fill.void
setRotateWithObject
(boolean value) Sets if the fill style should rotate with the object.void
Sets the text alignment for the specifiedIFillFormat
.void
setTextureHorizontalScale
(double value) Sets the value for horizontally scaling the text for theIFillFormat
.void
setTextureOffsetX
(double value) Sets the offset X value for the specified fill.void
setTextureOffsetY
(double value) Sets the offset Y value for the specified fill.void
setTextureVerticalScale
(double value) Sets the texture vertical scale for the specified fill.void
setTransparency
(double value) Sets the degree of transparency of the specified fill as a value from 0.0 (opaque) through 1.0 (clear).void
setVisible
(boolean value) Determines whether the object is visible.void
solid()
Sets the specified fill to a uniform color.void
twoColorGradient
(GradientStyle style, int variant) Sets the specified fill to a two-color gradient.void
userPicture
(InputStream stream, ImageType type) Fills the specified shape with an image.void
userPicture
(String fileName) Fills the specified shape with an image.void
userTextured
(InputStream stream, ImageType type) Fills the specified shape with small tiles of an image.void
userTextured
(String fileName) Fills the specified shape with small tiles of an image.
-
方法详细资料
-
getPatternColor
IColorFormat getPatternColor()Returns theIColorFormat
object that represents the specified patterncolor. -
getColor
IColorFormat getColor()Returns theIColorFormat
object that represents the specifiedforeground fill or solid color. -
getVisible
boolean getVisible()Determines whether the object is visible. -
setVisible
void setVisible(boolean value) Determines whether the object is visible. -
getGradientAngle
double getGradientAngle()Gets the angle of the gradient fill for the specified fill format. -
setGradientAngle
void setGradientAngle(double value) Sets the angle of the gradient fill for the specified fill format. -
getGradientPathType
PathShapeType getGradientPathType()Gets the path type for the gradient fill. -
setGradientPathType
Sets the path type for the gradient fill. -
getGradientDegree
double getGradientDegree()Returns the gradient degree of the specified one-color shaded fill as a floating-point value from 0.0 (dark) through 1.0 (light). -
getGradientStops
IGradientStops getGradientStops()Returns the end point for the gradient fill. -
getGradientStyle
GradientStyle getGradientStyle()Returns the gradient style for the specified fill. -
getGradientVariant
int getGradientVariant()Returns the shade variant for the specified fill as an integer value from 1 through 4. -
getPattern
PatternType getPattern()Returns the fill pattern. -
getPresetGradientType
PresetGradientType getPresetGradientType()Returns the preset gradient type for the specified fill. -
getPresetTexture
PresetTexture getPresetTexture()Returns the preset texture for the specified fill. -
getRotateWithObject
boolean getRotateWithObject()Gets if the fill style should rotate with the object. -
setRotateWithObject
void setRotateWithObject(boolean value) Sets if the fill style should rotate with the object. -
getTextureAlignment
TextureAlignment getTextureAlignment()Gets the text alignment for the specifiedIFillFormat
. -
setTextureAlignment
Sets the text alignment for the specifiedIFillFormat
. -
getTextureHorizontalScale
double getTextureHorizontalScale()Gets the value for horizontally scaling the text for theIFillFormat
. -
setTextureHorizontalScale
void setTextureHorizontalScale(double value) Sets the value for horizontally scaling the text for theIFillFormat
. -
getTextureOffsetX
double getTextureOffsetX()Returns the offset X value for the specified fill. -
setTextureOffsetX
void setTextureOffsetX(double value) Sets the offset X value for the specified fill. -
getTextureOffsetY
double getTextureOffsetY()Returns the offset Y value for the specified fill. -
setTextureOffsetY
void setTextureOffsetY(double value) Sets the offset Y value for the specified fill. -
getTextureVerticalScale
double getTextureVerticalScale()Returns the texture vertical scale for the specified fill. -
setTextureVerticalScale
void setTextureVerticalScale(double value) Sets the texture vertical scale for the specified fill. -
getTransparency
double getTransparency()Gets the degree of transparency of the specified fill as a value from 0.0 (opaque) through 1.0 (clear). -
setTransparency
void setTransparency(double value) Sets the degree of transparency of the specified fill as a value from 0.0 (opaque) through 1.0 (clear). -
getType
FillType getType()Returns the fill type. -
oneColorGradient
Sets the specified fill to a one-color gradient.- 参数:
style
- TheGradientStyle
to be set.variant
- The gradient variant. Can be a value from 1 through 4,corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If GradientStyle is GradientFromCenter, the Variant argument can only be 1 or 2.degree
- The gradient degree. Can be a value from 0.0 (dark) through 1.0(light).
-
patterned
Sets the specified fill to a pattern.- 参数:
pattern
- ThePatternType
object.
-
presetGradient
Sets the specified fill to a preset gradient.- 参数:
style
- TheGradientStyle
object to be set.variant
- The gradient variant. Can be a value from 1 through 4,corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If GradientStyle is GradientFromCenter, the Variant argument can only be 1 or 2.presetGradientType
- ThePresetGradientType
object.
-
presetTextured
Sets the specified fill format to a preset texture.- 参数:
presetTexture
- ThePresetTexture
.
-
solid
void solid()Sets the specified fill to a uniform color. -
twoColorGradient
Sets the specified fill to a two-color gradient.- 参数:
style
- TheGradientStyle
object.variant
- The gradient variant. Can be a value from 1 through 4,corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If GradientStyle is GradientFromCenter, the Variant argument can only be 1 or 2.
-
userPicture
Fills the specified shape with an image.- 参数:
fileName
- The name of the picture file.- 抛出:
IOException
-
userPicture
Fills the specified shape with an image.- 参数:
stream
- The stream of the picture file.type
- TheImageType
of the stream.- 抛出:
IOException
-
userTextured
Fills the specified shape with small tiles of an image.- 参数:
fileName
- The name of the picture file.- 抛出:
IOException
-
userTextured
Fills the specified shape with small tiles of an image.- 参数:
stream
- The stream of the picture file.type
- TheImageType
of the stream.
-