Class MsoFillFormatHelper

Class MsoFillFormatHelper

Namespace: Aspose.Cells.Drawing
Assembly: Aspose.Cells.dll (25.2.0)

Represents fill formatting for a shape.

public class MsoFillFormatHelper

Inheritance

objectMsoFillFormatHelper

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

BackColor

Gets and sets the file back color.

public Color BackColor { get; set; }

Property Value

Color

ForeColor

Gets and sets the fill fore color.

public Color ForeColor { get; set; }

Property Value

Color

ForeColorTransparency

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

public double ForeColorTransparency { get; set; }

Property Value

double

ImageData

Gets and sets the Texture and Picture fill data.

public byte[] ImageData { get; set; }

Property Value

byte[]

IsVisible

Indicates whether there is fill.

public bool IsVisible { get; set; }

Property Value

bool

Texture

Gets the texture fill type.

public TextureType Texture { get; }

Property Value

TextureType

Methods

SetOneColorGradient(Color, double, GradientStyleType, int)

Sets the specified fill to a one-color gradient.

public void SetOneColorGradient(Color color, double degree, GradientStyleType style, int variant)

Parameters

color Color

One gradient color.

degree double

The gradient degree. Can be a value from 0.0 (dark) through 1.0 (light).

style GradientStyleType

Gradient shading style.

variant int

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 style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.