Skip to main content
A newer version of this page is available. .

XlPatternType Enum

Lists the types of patterns available for cell shading.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v18.1.Core.dll

Declaration

public enum XlPatternType

Members

Name Description
None

No background (solid color or fill pattern) is applied to a cell.

Solid

Specifies that a cell is filled with a solid color.

MediumGray

Specifies the 50% gray pattern.

PatternType_MediumGray

DarkGray

Specifies the 75% gray pattern.

PatternType_DarkGray

LightGray

Specifies the 25% gray pattern.

PatternType_LightGray

DarkHorizontal

Specifies a pattern that is a series of thick horizontal stripes.

PatternType_DarkHorizontal

DarkVertical

Specifies a pattern that is a series of thick vertical stripes.

PatternType_DarkVertical

DarkDown

Specifies a pattern that is a series of thick downward diagonal stripes.

PatternType_DarkDown

DarkUp

Specifies a pattern that is a series of thick upward diagonal stripes.

PatternType_DarkUp

DarkGrid

Specifies the thick grid pattern.

PatternType_DarkGrid

DarkTrellis

Specifies the thick diagonal trellis pattern.

PatternType_DarkTrellis

LightHorizontal

Specifies a pattern that is a series of thin horizontal stripes.

PatternType_LightHorizontal

LightVertical

Specifies a pattern that is a series of thin vertical stripes.

PatternType_LightVertical

LightDown

Specifies a pattern that is a series of thin downward diagonal stripes.

PatternType_LightDown

LightUp

Specifies a pattern that is a series of thin upward diagonal stripes.

PatternType_LightUp

LightGrid

Specifies the thin grid pattern.

PatternType_LightGrid

LightTrellis

Specifies the thin diagonal trellis pattern.

PatternType_LightTrellis

Gray125

Specifies the 12.5% gray pattern.

PatternType_Gray125

Gray0625

Specifies the 6.25% gray pattern.

PatternType_Gray0625

Related API Members

The following properties accept/return XlPatternType values:

Remarks

To apply the pattern fill to a cell, call the XlFill.PatternFill method with the XlPatternType enumeration value passed as a parameter. To obtain or change the type of the applied pattern fill, use the XlFill.PatternType property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the XlPatternType enum.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also