FillFormat Class
Represents a base class for fills such as solid, gradient, pattern, etc.
- Inheritance:
- System.ObjectFillFormat
- Derived
Properties
FillType
Gets the type of the fill.
public abstract FillFormatType FillType { get; }
Public MustOverride ReadOnly Property FillType As FillFormatType
Property Value
The type of the fill.
Methods
SetNone()
Sets the fill to none, thus making the area transparent.
Returns
An instance of a FillFormat type that represents no fill that was set.
SetPattern(PatternFillType, DrawingColor, DrawingColor)
Sets the fill to the pattern fill.
public PatternFillFormat SetPattern(PatternFillType patternType, DrawingColor foregroundColor, DrawingColor backgroundColor)
Public Function SetPattern(patternType As PatternFillType, foregroundColor As DrawingColor, backgroundColor As DrawingColor) As PatternFillFormat
Parameters
patternType
- PatternFillType
Type of the pattern fill.
foregroundColor
- DrawingColor
Foreground color of the pattern fill.
backgroundColor
- DrawingColor
Background color of the pattern fill.
Returns
An instance of a PatternFillFormat type that was set.
SetSolid(DrawingColor)
Sets the fill to the solid fill.
public SolidFillFormat SetSolid(DrawingColor color)
Public Function SetSolid(color As DrawingColor) As SolidFillFormat
Parameters
color
- DrawingColor
The color of the solid fill.
Returns
An instance of a SolidFillFormat type that was set.