[]
Represents fill formatting for a shape.
public interface IFillFormat
Returns the IColorFormat object that represents the specified foreground fill or solid color.
IColorFormat Color { get; }
Gets or sets the angle of the gradient fill for the specified fill format.
double GradientAngle { get; set; }
Returns the gradient degree of the specified one-color shaded fill as a floating-point value from 0.0 (dark) through 1.0 (light).
double GradientDegree { get; }
Returns or sets the path type for the gradient fill.
PathShapeType GradientPathType { get; set; }
Returns the end point for the gradient fill.
IGradientStops GradientStops { get; }
Returns the gradient style for the specified fill.
GradientStyle GradientStyle { get; }
Returns the shade variant for the specified fill as an integer value from 1 through 4.
int GradientVariant { get; }
Returns the fill pattern.
PatternType Pattern { get; }
Returns the IColorFormat object that represents the specified pattern color.
IColorFormat PatternColor { get; }
Returns the preset gradient type for the specified fill.
PresetGradientType PresetGradientType { get; }
Returns the preset texture for the specified fill.
PresetTexture PresetTexture { get; }
Gets or sets if the fill style should rotate with the object.
bool RotateWithObject { get; set; }
Gets or sets the text alignment for the specified IFillFormat.
TextureAlignment TextureAlignment { get; set; }
Gets or sets the value for horizontally scaling the text for the IFillFormat.
double TextureHorizontalScale { get; set; }
Returns or sets the offset X value for the specified fill.
double TextureOffsetX { get; set; }
Returns or sets the offset Y value for the specified fill.
double TextureOffsetY { get; set; }
Returns the texture vertical scale for the specified fill.
double TextureVerticalScale { get; set; }
Gets or sets the degree of transparency of the specified fill as a value from 0.0 (opaque) through 1.0 (clear).
double Transparency { get; set; }
Returns the fill type.
FillType Type { get; }
Determines whether the object is visible.
bool Visible { get; set; }
Sets the specified fill to a one-color gradient.
void OneColorGradient(GradientStyle style, int variant, double degree)
style
GradientStyleThe GradientStyle to be set.
variant
intThe 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
doubleThe gradient degree. Can be a value from 0.0 (dark) through 1.0 (light).
Sets the specified fill to a pattern.
void Patterned(PatternType pattern)
pattern
PatternTypeThe PatternType object.
Sets the specified fill to a preset gradient.
void PresetGradient(GradientStyle style, int variant, PresetGradientType presetGradientType)
style
GradientStyleThe GradientStyle object to be set.
variant
intThe 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
PresetGradientTypeThe PresetGradientType object.
Sets the specified fill format to a preset texture.
void PresetTextured(PresetTexture presetTexture)
presetTexture
PresetTextureThe PresetTexture.
Sets the specified fill to a uniform color.
void Solid()
Sets the specified fill to a two-color gradient.
void TwoColorGradient(GradientStyle style, int variant)
style
GradientStyleThe GradientStyle object.
variant
intThe 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.
Fills the specified shape with an image.
void UserPicture(Stream stream, ImageType type)
Fills the specified shape with an image.
void UserPicture(string fileName)
fileName
stringThe name of the picture file.
Fills the specified shape with small tiles of an image.
void UserTextured(Stream stream, ImageType type)
Fills the specified shape with small tiles of an image.
void UserTextured(string fileName)
fileName
stringThe name of the picture file.