Syncfusion.XlsIO.Base
Example 


Item's index to get.

Item(Int32) Property

Returns single IOptionButtonShape from the IOptionButtons collection.
Syntax
'Declaration
 
Overloads ReadOnly Property Item( _
   ByVal index As Integer _
) As IOptionButtonShape
'Usage
 
Dim instance As IOptionButtons
Dim index As Integer
Dim value As IOptionButtonShape
 
value = instance.Item(index)
IOptionButtonShape Item( 
   int index
) {get;}

Parameters

index
Item's index to get.

Property Value

Single item from the 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.1460.0.38

See Also