File Formats

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IFill

    Show / Hide Table of Contents

    Interface IFill

    Represents fill format.

    Namespace: Syncfusion.XlsIO
    Assembly: Syncfusion.XlsIO.Base.dll
    Syntax
    public interface IFill

    Properties

    BackColor

    Represents background color.

    Declaration
    Color BackColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    BackColorIndex

    Represents background color index.

    Declaration
    ExcelKnownColors BackColorIndex { get; set; }
    Property Value
    Type Description
    ExcelKnownColors

    FillType

    Represents shape fill type.

    Declaration
    ExcelFillType FillType { get; set; }
    Property Value
    Type Description
    ExcelFillType

    ForeColor

    Represents foreground color.

    Declaration
    Color ForeColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    ForeColorIndex

    Represents foreground color index.

    Declaration
    ExcelKnownColors ForeColorIndex { get; set; }
    Property Value
    Type Description
    ExcelKnownColors

    GradientColorType

    Represents gradient style.

    Declaration
    ExcelGradientColor GradientColorType { get; set; }
    Property Value
    Type Description
    ExcelGradientColor

    GradientDegree

    Returns the gradient degree of the specified one-color shaded fill as a floating-point value from 0.0 (dark) through 1.0 (light)

    Declaration
    double GradientDegree { get; set; }
    Property Value
    Type Description
    System.Double

    GradientStyle

    Represents gradient shading style.

    Declaration
    ExcelGradientStyle GradientStyle { get; set; }
    Property Value
    Type Description
    ExcelGradientStyle

    GradientVariant

    Represents current shading variant.

    Declaration
    ExcelGradientVariants GradientVariant { get; set; }
    Property Value
    Type Description
    ExcelGradientVariants

    Pattern

    Represents gradient pattern

    Declaration
    ExcelGradientPattern Pattern { get; set; }
    Property Value
    Type Description
    ExcelGradientPattern

    Picture

    Represents user defined picture or texture. Read-only.

    Declaration
    Image Picture { get; }
    Property Value
    Type Description
    System.Drawing.Image

    PictureName

    Returns user defined picture of texture name. Read-only.

    Declaration
    string PictureName { get; }
    Property Value
    Type Description
    System.String

    PresetGradientType

    Represents preset gradient type.

    Declaration
    ExcelGradientPreset PresetGradientType { get; set; }
    Property Value
    Type Description
    ExcelGradientPreset

    Texture

    Represents gradient texture

    Declaration
    ExcelTexture Texture { get; set; }
    Property Value
    Type Description
    ExcelTexture

    TextureHorizontalScale

    Gets or Sets the TextureHorizontalScale for specified fill

    Declaration
    float TextureHorizontalScale { get; set; }
    Property Value
    Type Description
    System.Single

    TextureOffsetX

    Represents the offset X for the texture fill

    Declaration
    float TextureOffsetX { get; set; }
    Property Value
    Type Description
    System.Single

    TextureOffsetY

    Represents the offset Y for the texture fill

    Declaration
    float TextureOffsetY { get; set; }
    Property Value
    Type Description
    System.Single

    TextureVerticalScale

    Gets or Sets the TextureVerticalScale for specified fill

    Declaration
    float TextureVerticalScale { get; set; }
    Property Value
    Type Description
    System.Single

    Transparency

    Returns the transparency level of the specified Solid color shaded fill as a floating-point value from 0.0 (Clear) through 1.0(Opaque)

    Declaration
    double Transparency { get; set; }
    Property Value
    Type Description
    System.Double

    TransparencyColor

    Gets or Sets the Transparency for specified picture_only.

    Declaration
    float TransparencyColor { get; set; }
    Property Value
    Type Description
    System.Single

    TransparencyFrom

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

    Declaration
    double TransparencyFrom { get; set; }
    Property Value
    Type Description
    System.Double

    TransparencyTo

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

    Declaration
    double TransparencyTo { get; set; }
    Property Value
    Type Description
    System.Double

    Visible

    Represents if fill style visible.

    Declaration
    bool Visible { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    OneColorGradient()

    Sets the specified fill to a one-color gradient.

    Declaration
    void OneColorGradient()

    OneColorGradient(ExcelGradientStyle)

    Sets the specified fill to a one-color gradient.

    Declaration
    void OneColorGradient(ExcelGradientStyle style)
    Parameters
    Type Name Description
    ExcelGradientStyle style

    Represents shading shading style.

    OneColorGradient(ExcelGradientStyle, ExcelGradientVariants)

    Sets the specified fill to a one-color gradient.

    Declaration
    void OneColorGradient(ExcelGradientStyle style, ExcelGradientVariants variant)
    Parameters
    Type Name Description
    ExcelGradientStyle style

    Represents shading shading style.

    ExcelGradientVariants variant

    Represents shading variant.

    Patterned(ExcelGradientPattern)

    Sets the specified fill to a pattern.

    Declaration
    void Patterned(ExcelGradientPattern pattern)
    Parameters
    Type Name Description
    ExcelGradientPattern pattern

    Pattern to set.

    PresetGradient(ExcelGradientPreset)

    Sets the specified fill to a preset gradient.

    Declaration
    void PresetGradient(ExcelGradientPreset grad)
    Parameters
    Type Name Description
    ExcelGradientPreset grad

    Represents preset gradient type.

    PresetGradient(ExcelGradientPreset, ExcelGradientStyle)

    Sets the specified fill to a preset gradient.

    Declaration
    void PresetGradient(ExcelGradientPreset grad, ExcelGradientStyle shadStyle)
    Parameters
    Type Name Description
    ExcelGradientPreset grad

    Represents preset gradient type.

    ExcelGradientStyle shadStyle

    Represents gradient style, for preset gradient.

    PresetGradient(ExcelGradientPreset, ExcelGradientStyle, ExcelGradientVariants)

    Sets the specified fill to a preset gradient.

    Declaration
    void PresetGradient(ExcelGradientPreset grad, ExcelGradientStyle shadStyle, ExcelGradientVariants shadVar)
    Parameters
    Type Name Description
    ExcelGradientPreset grad

    Represents preset gradient type.

    ExcelGradientStyle shadStyle

    Represents gradient style, for preset gradient.

    ExcelGradientVariants shadVar

    Represents gradient variant for preset gradient.

    PresetTextured(ExcelTexture)

    Sets the specified fill format to a preset texture.

    Declaration
    void PresetTextured(ExcelTexture texture)
    Parameters
    Type Name Description
    ExcelTexture texture

    Represents texture to set.

    Solid()

    Sets the specified fill to a uniform color.

    Declaration
    void Solid()

    TwoColorGradient()

    Sets the specified fill to a two-color gradient.

    Declaration
    void TwoColorGradient()

    TwoColorGradient(ExcelGradientStyle)

    Sets the specified fill to a two-color gradient.

    Declaration
    void TwoColorGradient(ExcelGradientStyle style)
    Parameters
    Type Name Description
    ExcelGradientStyle style

    Represents shading shading style.

    TwoColorGradient(ExcelGradientStyle, ExcelGradientVariants)

    Sets the specified fill to a two-color gradient.

    Declaration
    void TwoColorGradient(ExcelGradientStyle style, ExcelGradientVariants variant)
    Parameters
    Type Name Description
    ExcelGradientStyle style

    Represents shading shading style.

    ExcelGradientVariants variant

    Represents shading variant.

    UserPicture(Image, String)

    Sets user defined picture.

    Declaration
    void UserPicture(Image im, string name)
    Parameters
    Type Name Description
    System.Drawing.Image im

    Represents user defined image.

    System.String name

    Represents name of user defined image.

    UserPicture(String)

    Sets user defined picture.

    Declaration
    void UserPicture(string path)
    Parameters
    Type Name Description
    System.String path

    Path to image.

    UserTexture(Image, String)

    Sets user defined texture.

    Declaration
    void UserTexture(Image im, string name)
    Parameters
    Type Name Description
    System.Drawing.Image im

    Represents user defined texture.

    System.String name

    Represents name of user defined texture.

    UserTexture(String)

    Sets user defined texture.

    Declaration
    void UserTexture(string path)
    Parameters
    Type Name Description
    System.String path

    Path to image.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved