Syncfusion.XlsIO.Base
Example 


Item Property (IOptionButtons)

Returns single IOptionButtonShape from the IOptionButtons collection.
Overload List
OverloadDescription
Returns single IOptionButtonShape from the IOptionButtons collection.  
Gets single IOptionButtonShape from the IOptionButtons collection.  
Example
The following code illustrates how to access a IOptionButtonShape from the IOptionButtons collection.
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];
            
            //Add option button
            worksheet.OptionButtons.AddOptionButton(1, 1, 20, 100);
            
            //Set text
            worksheet.OptionButtons[0].Text = "Option";
            
            //Save and dispose
            workbook.SaveAs("Shapes.xlsx");
            workbook.Close();
        }
    }
}
AssemblyVersion

Syncfusion.XlsIO.Base: 17.2460.0.34

See Also