Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ShapePatternFill.ForegroundColor Property

Gets or sets the foreground color of the pattern fill applied to a chart element.

Namespace: DevExpress.Spreadsheet.Drawings

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

Color ForegroundColor { get; set; }

#Property Value

Type Description
Color

A Color object that specifies the foreground color.

#Remarks

To apply the pattern fill to a chart element, call the ShapeFill.SetPatternFill method. To change the foreground color of the specified pattern fill, access the ShapePatternFill object by utilizing the ShapeFill.PatternFill property and then assign another value to the ForegroundColor property.

See Also