Syncfusion.XlsIO.Base
Example 


Clear Method (IChartFrameFormat)

Clears the plot area.
Syntax
'Declaration
 
Sub Clear() 
'Usage
 
Dim instance As IChartFrameFormat
 
instance.Clear()
void Clear()
Remarks
To know more about charts refer this link.
Example
The following code illustrates how to use the Clear method.
using Syncfusion.XlsIO;
            
class Example
{
   static void Main()
   {
      using (ExcelEngine excelEngine = new ExcelEngine())
      {
        //Create a worksheet.        
        IApplication application = excelEngine.Excel;
        application.DefaultVersion = ExcelVersion.Excel2013;
        IWorkbook workbook = application.Workbooks.Open("Sample.xlsx");
        IWorksheet sheet = workbook.Worksheets[0];
        
        //Clears the plot area
        sheet.Charts[0].PlotArea.Clear();
            
        workbook.SaveAs("Charts.xlsx");
        workbook.Close();
      }
   }
}
AssemblyVersion

Syncfusion.XlsIO.Base: 17.1460.0.32

See Also