[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Collapse]Office File API
  Demo Application
  Redistribution and Deployment
 [Expand]Spreadsheet Document API
 [Expand]Word Processing Document API
 [Expand]PDF Document API
 [Expand]Excel Export Library
 [Expand]Snap Report API
 [Expand]Zip Compression and Archive API
 [Expand]Barcode Generation API
 [Expand]Unit Conversion API
 [Collapse]API Reference
  [Expand]DevExpress.BarCodes
  [Expand]DevExpress.Compression
  [Expand]DevExpress.Docs.Text
  [Expand]DevExpress.Office
  [Expand]DevExpress.Office.Drawing
  [Expand]DevExpress.Office.Export
  [Expand]DevExpress.Office.Export.Html
  [Expand]DevExpress.Office.Import
  [Expand]DevExpress.Office.Localization
  [Expand]DevExpress.Office.Options
  [Expand]DevExpress.Office.Services
  [Expand]DevExpress.Office.Utils
  [Expand]DevExpress.Pdf
  [Expand]DevExpress.Pdf.Localization
  [Expand]DevExpress.Snap
  [Expand]DevExpress.Spreadsheet
  [Expand]DevExpress.Spreadsheet.Charts
  [Collapse]DevExpress.Spreadsheet.Drawings
   [Expand]GradientStopInfo Structure
   [Expand]ShapeComplexFill Interface
   [Collapse]ShapeFill Interface
     ShapeFill Members
    [Expand]ShapeFill Properties
    [Expand]ShapeFill Methods
    ShapeFillPatternType Enumeration
    ShapeFillType Enumeration
   [Expand]ShapeGradientFill Interface
    ShapeGradientType Enumeration
    ShapeLineCompoundType Enumeration
    ShapeLineDashing Enumeration
    ShapeLineEndCapStyle Enumeration
    ShapeLineJoinStyle Enumeration
   [Expand]ShapeOutline Interface
   [Expand]ShapeOutlineFill Interface
   [Expand]ShapePatternFill Interface
   [Expand]ShapePictureFill Interface
   [Expand]ShapeRectangleOffset Interface
   [Expand]ShapeSolidFill Interface
    ShapeTextCapsType Enumeration
   [Expand]ShapeTextFont Interface
    ShapeTextStrikeType Enumeration
    ShapeTextUnderlineType Enumeration
    TileAlignType Enumeration
  [Expand]DevExpress.Spreadsheet.Export
  [Expand]DevExpress.Spreadsheet.Formulas
  [Expand]DevExpress.Spreadsheet.Functions
  [Expand]DevExpress.UnitConversion
  [Expand]DevExpress.XtraPrinting
  [Expand]DevExpress.XtraPrintingLinks
  [Expand]DevExpress.XtraRichEdit
  [Expand]DevExpress.XtraRichEdit.API.Layout
  [Expand]DevExpress.XtraRichEdit.API.Native
  [Expand]DevExpress.XtraRichEdit.API.Native.Implementation
  [Expand]DevExpress.XtraRichEdit.Commands
  [Expand]DevExpress.XtraRichEdit.Export
  [Expand]DevExpress.XtraRichEdit.Export.Html
  [Expand]DevExpress.XtraRichEdit.Export.PlainText
  [Expand]DevExpress.XtraRichEdit.Export.Rtf
  [Expand]DevExpress.XtraRichEdit.Forms
  [Expand]DevExpress.XtraRichEdit.Import
  [Expand]DevExpress.XtraRichEdit.Localization
  [Expand]DevExpress.XtraRichEdit.Services
  [Expand]DevExpress.XtraRichEdit.Utils
  [Expand]DevExpress.XtraSpreadsheet
  [Expand]DevExpress.XtraSpreadsheet.Export
  [Expand]DevExpress.XtraSpreadsheet.Export.Html
  [Expand]DevExpress.XtraSpreadsheet.Import
  [Expand]DevExpress.XtraSpreadsheet.Localization
  [Expand]DevExpress.XtraSpreadsheet.Services
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

ShapeFill Interface

Defines the fill formatting for a drawing object.

Namespace:DevExpress.Spreadsheet.Drawings
Assembly:DevExpress.Spreadsheet.v19.1.Core.dll

Expanded Syntax

Expanded Remarks

Use the ShapeFormatBase.Fill property to get access to the ShapeFill object that enables you to specify fill options for a drawing object (a shape or chart). You can fill a drawing object with the solid color (by using the ShapeOutlineFill.SetSolidFill method), apply the gradient effect (by utilizing the ShapeOutlineFill.SetGradientFill method), set the pattern (SetPatternFill) or picture (SetPictureFill) fill.

Expanded Example

The example below demonstrates how to create a clustered column chart and adjust its appearance. First, add the chart title and change the font color via the ShapeTextFont.Color property. Make the plot area transparent by using the ShapeOutlineFill.SetNoFill method, and then apply the gradient fill to the chart area by utilizing the ShapeOutlineFill.SetGradientFill method. To set the picture fill for all columns in a chart, call the SetPictureFill method for a series object. Finally, change the color of the primary axes by utilizing the ShapeOutlineFill.SetSolidFill method and specify the axis width via the ShapeOutline.Width property.

Note

A complete sample project is available in the DevExpress-Examples/spreadsheet-chart-api-examples-t132724 repository on GitHub.

Expanded Inheritance Hierarchy

Expanded See Also

Is this topic helpful?​​​​​​​