Syncfusion.XlsIO.Base
Example 


Syncfusion.XlsIO Namespace > IRange Interface : BuiltInStyle Property

BuiltInStyle Property (IRange)

Gets or sets built in style in the Range.
Syntax
'Declaration
 
Property BuiltInStyle As Nullable(Of BuiltInStyles)
'Usage
 
Dim instance As IRange
Dim value As Nullable(Of BuiltInStyles)
 
instance.BuiltInStyle = value
 
value = instance.BuiltInStyle
Nullable<BuiltInStyles> BuiltInStyle {get; set;}
Example
The following code illustrates how to set BuiltInStyle to a range.
using Syncfusion.XlsIO;
            
class Program
{
    static void Main()
    {
        using (ExcelEngine excelEngine = new ExcelEngine())
        {
            //Create worksheet
            IApplication application = excelEngine.Excel;
            application.DefaultVersion = ExcelVersion.Excel2013;
            IWorkbook workbook = application.Workbooks.Create(1);
            IWorksheet worksheet = workbook.Worksheets[0];
            
            //Set text
            worksheet["C2"].Text = "Sample";
            
            //Set built in style
            worksheet["C2"].BuiltInStyle = BuiltInStyles.Accent3;
            
            //Save and dispose
            workbook.SaveAs("CellFormats.xlsx");
            workbook.Close();
        }
    }
}
AssemblyVersion

Syncfusion.XlsIO.Base: 17.1460.0.32

See Also