MsoFillFormatHelper

MsoFillFormatHelper class

Represents fill formatting for a shape.

Properties

NameTypeDescription
ForeColorColorGets and sets the fill fore color.
ForeColorTransparencyfloatReturns or sets the degree of fore color of the specified fill as a value from 0.0 (opaque) through 1.0 (clear).
BackColorColorGets and sets the file back color.
ImageDatabyte[]Gets and sets the Texture and Picture fill data.
TextureintGets the texture fill type. The value of the property is TextureType integer constant.
IsVisiblebooleanIndicates whether there is fill.

Methods

NameDescription
setOneColorGradientSets the specified fill to a one-color gradient.

MsoFillFormatHelper.ForeColor property

Gets and sets the fill fore color.

Type: Color

MsoFillFormatHelper.ForeColorTransparency property

Returns or sets the degree of fore color of the specified fill as a value from 0.0 (opaque) through 1.0 (clear).

Type: float

MsoFillFormatHelper.BackColor property

Gets and sets the file back color.

Type: Color

MsoFillFormatHelper.ImageData property

Gets and sets the Texture and Picture fill data.

Type: byte[]

MsoFillFormatHelper.Texture property

Gets the texture fill type. The value of the property is TextureType integer constant.

Type: int

MsoFillFormatHelper.IsVisible property

Indicates whether there is fill.

Type: boolean

setOneColorGradient(color, degree, style, variant)

Sets the specified fill to a one-color gradient.

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.