Syncfusion.XlsIO.Base
Example 


IsAutoColor Property (IFont)

Indicates whether color is automatically selected. Read-only.
Syntax
'Declaration
 
ReadOnly Property IsAutoColor As Boolean
'Usage
 
Dim instance As IFont
Dim value As Boolean
 
value = instance.IsAutoColor
bool IsAutoColor {get;}
Example
The following code illustrates how to access IsAutoColor property.
using Syncfusion.XlsIO;
using System;
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";
            
            //Add style
            IStyle style = workbook.Styles.Add("CustomStyle");
            
            //Set style
            worksheet["C2"].CellStyle = style;
            
            //Set font
            IFont font = style.Font;
            
            //Set color
            font.Color = ExcelKnownColors.Red;
            
            //Check IsAutoColor
            Console.Write(font.IsAutoColor);
            
            //Save and dispose
            workbook.SaveAs("CellFormats.xlsx");
            workbook.Close();
            Console.ReadKey();
        }
    }
}
//Output will be
//False
AssemblyVersion

Syncfusion.XlsIO.Base: 17.2460.0.34

See Also