'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
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