FillFormat

FillFormat class

Encapsulates the object that represents fill formatting for a shape.

Properties

NameTypeDescription
TypeintGets and sets the fill type. The value of the property is FillType integer constant. NOTE: This member is now obsolete.
FillTypeintGets and sets fill type The value of the property is FillType integer constant.
TransparencyfloatReturns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).
SetTypeintGets the fill format set type. The value of the property is FormatSetType integer constant. NOTE: This member is now obs
GradientFillGradientFillGets GradientFill object.
TextureFillTextureFillGets TextureFill object.
SolidFillSolidFillGets SolidFill object.
PatternFillPatternFillGets PatternFill object.
GradientColorTypeintReturns the gradient color type for the specified fill. The value of the property is GradientColorType integer constant.
GradientStyleintReturns the gradient style for the specified fill. The value of the property is GradientStyleType integer constant.
GradientColor1ColorReturns the gradient color 1 for the specified fill.
GradientColor2ColorReturns the gradient color 2 for the specified fill. Only when the gradient color type is GradientColorType.TwoColors, t
GradientDegreefloatReturns the gradient degree for the specified fill. Only applies for Excel 2007. Can only be a value from 0.0 (dark) thr
GradientVariantintReturns the gradient variant for the specified fill. Only applies for Excel 2007. Can only be a value from 1 through 4,
PresetColorintReturns the gradient preset color for the specified fill. The value of the property is GradientPresetType integer consta
TextureintRepresents the texture type for the specified fill. The value of the property is TextureType integer constant.
PatternintRepresents an area’s display pattern. The value of the property is FillPattern integer constant.
PictureFormatTypeintGets and sets the picture format type. The value of the property is FillPictureType integer constant.
ScalefloatGets and sets the picture format scale.
ImageDatabyte[]Gets and sets the picture image data. If the fill format is not custom texture format, returns null.

Methods

NameDescription
setOneColorGradientSets the specified fill to a one-color gradient. Only applies for Excel 2007.
setTwoColorGradientSets the specified fill to a two-color gradient. Only applies for Excel 2007.
setPresetColorGradientSets the specified fill to a preset-color gradient. Only applies for Excel 2007.
equals
hashCodeGets the hash code.

FillFormat.Type property

Gets and sets the fill type. The value of the property is FillType integer constant. NOTE: This member is now obsolete. Instead, please use FillFormat.FillType property instead. This property will be removed 12 months later since July 2016. Aspose apologizes for any inconvenience you may have experienced.

Type: int

FillFormat.FillType property

Gets and sets fill type The value of the property is FillType integer constant.

Type: int

FillFormat.Transparency property

Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).

Type: float

FillFormat.SetType property

Gets the fill format set type. The value of the property is FormatSetType integer constant. NOTE: This member is now obsolete. Instead, please use FillFormat.FillType property instead. This property will be removed 12 months later since July 2016. Aspose apologizes for any inconvenience you may have experienced.

Type: int

FillFormat.GradientFill property

Gets GradientFill object.

Type: GradientFill

FillFormat.TextureFill property

Gets TextureFill object.

Type: TextureFill

FillFormat.SolidFill property

Gets SolidFill object.

Type: SolidFill

FillFormat.PatternFill property

Gets PatternFill object.

Type: PatternFill

FillFormat.GradientColorType property

Returns the gradient color type for the specified fill. The value of the property is GradientColorType integer constant.

Type: int

FillFormat.GradientStyle property

Returns the gradient style for the specified fill. The value of the property is GradientStyleType integer constant.

Type: int

FillFormat.GradientColor1 property

Returns the gradient color 1 for the specified fill.

Type: Color

FillFormat.GradientColor2 property

Returns the gradient color 2 for the specified fill. Only when the gradient color type is GradientColorType.TwoColors, this property is meaningful.

Type: Color

FillFormat.GradientDegree property

Returns the gradient degree for the specified fill. Only applies for Excel 2007. Can only be a value from 0.0 (dark) through 1.0 (light).

Type: float

FillFormat.GradientVariant property

Returns the gradient variant for the specified fill. Only applies for Excel 2007. Can only 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 style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.

Type: int

FillFormat.PresetColor property

Returns the gradient preset color for the specified fill. The value of the property is GradientPresetType integer constant.

Type: int

FillFormat.Texture property

Represents the texture type for the specified fill. The value of the property is TextureType integer constant.

Type: int

FillFormat.Pattern property

Represents an area’s display pattern. The value of the property is FillPattern integer constant.

Type: int

FillFormat.PictureFormatType property

Gets and sets the picture format type. The value of the property is FillPictureType integer constant.

Type: int

FillFormat.Scale property

Gets and sets the picture format scale.

Type: float

FillFormat.ImageData property

Gets and sets the picture image data. If the fill format is not custom texture format, returns null.

Type: byte[]

setOneColorGradient(color, degree, style, variant)

Sets the specified fill to a one-color gradient. Only applies for Excel 2007.

ParameterTypeDescription
colorColorOne gradient color.
degreefloatThe gradient degree. Can be a value from 0.0 (dark) through 1.0 (light).
styleintA GradientStyleType value. Gradient shading style.
variantintThe 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 style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.

setTwoColorGradient(color1, color2, style, variant) (1 of 2)

Sets the specified fill to a two-color gradient. Only applies for Excel 2007.

ParameterTypeDescription
color1ColorOne gradient color.
color2ColorTwo gradient color.
styleintA GradientStyleType value. Gradient shading style.
variantintThe 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 style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.

setTwoColorGradient(color1, transparency1, color2, transparency2, style, variant) (2 of 2)

Sets the specified fill to a two-color gradient. Only applies for Excel 2007.

ParameterTypeDescription
color1ColorOne gradient color.
transparency1floatThe degree of transparency of the color1 as a value from 0.0 (opaque) through 1.0 (clear).
color2ColorTwo gradient color.
transparency2floatThe degree of transparency of the color2 as a value from 0.0 (opaque) through 1.0 (clear).
styleintA GradientStyleType value. Gradient shading style.
variantintThe 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 style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.

setPresetColorGradient(presetColor, style, variant)

Sets the specified fill to a preset-color gradient. Only applies for Excel 2007.

ParameterTypeDescription
presetColorintA GradientPresetType value. Preset color type
styleintA GradientStyleType value. Gradient shading style.
variantintThe 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 style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.

equals(obj)

ParameterTypeDescription
objObject

hashCode()

Gets the hash code.