'Declaration
Public Class Fill Inherits Xceed.Workbooks.NET.StyleBase(Of IReadonlyFill) Implements IReadonlyFill
'Usage
Dim instance As Fill
public class Fill : Xceed.Workbooks.NET.StyleBase<IReadonlyFill>, IReadonlyFill
'Declaration
Public Class Fill Inherits Xceed.Workbooks.NET.StyleBase(Of IReadonlyFill) Implements IReadonlyFill
'Usage
Dim 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>) |
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2