

'DeclarationPublic Class Fill Inherits Xceed.Workbooks.NET.StyleBase(Of IReadonlyFill) Implements IReadonlyFill
'UsageDim instance As Fill
public class Fill : Xceed.Workbooks.NET.StyleBase<IReadonlyFill>, IReadonlyFill
using( var workbook = Workbook.Create( "test.xlsx" ) ) { // Get the first worksheet. A workbook contains at least 1 worksheet. var cellWorksheet = workbook.Worksheets[ 0 ]; // Set fill style for cell C12. cellWorksheet.Cells[ "C12" ].Style.Fill = new Fill() { PatternStyle = FillPattern.ThinDiagonalCrosshatch, PatternColor = Color.Green, BackgroundColor = Color.Blue }; // Set Cell C12 content. cellWorksheet.Cells[ "C12" ].Value = "Testing Fill Pattern"; // Save workbook to disk. workbook.Save(); }
System.Object
Xceed.Workbooks.NET.StyleBase<T>
Xceed.Workbooks.NET.Fill
| Name | Description | |
|---|---|---|
![]() | Fill Constructor | Creates an empty Fill object. |
| Name | Description | |
|---|---|---|
![]() | BackgroundColor | Gets or sets the Color used for filling the background of a Cell, Row, Column or range. |
![]() | BackgroundThemeColor | Gets or sets the ThemeColor used for filling the background of a Cell, Row, Column or range. |
![]() | PatternColor | Gets or sets the Color of the pattern used for filling a Cell, Row, Column or range. |
![]() | PatternStyle | Gets or sets the Style of the pattern used for filling a Cell, Row, Column or range. |
![]() | PatternThemeColor | Gets or sets the ThemeColor of the pattern used for filling a Cell, Row, Column or range. |
| Name | Description | |
|---|---|---|
![]() | Equals | Determines whether the specified System.Object is equal to the current System.Object. |
![]() | GetHashCode | Serves as a hash function for a particular type. |
| Name | Description | |
|---|---|---|
![]() | OnPropertyChanged | (Inherited from Xceed.Workbooks.NET.StyleBase<IReadonlyFill>) |
.NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.
.NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.