Class OptionButtonCollection
Represents worksheet's OptionButton collection.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation.Collections
Assembly: Syncfusion.XlsIO.Portable.dll
Syntax
public class OptionButtonCollection : CollectionBaseEx<object>, IList<object>, ICollection<object>, IEnumerable<object>, IEnumerable, IParentApplication, ICloneParent, IOptionButtons
  Constructors
OptionButtonCollection(IApplication, Object)
Initializes new instance of the collection.
Declaration
public OptionButtonCollection(IApplication application, object parent)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IApplication | application | Application object for the new instance.  | 
      
| System.Object | parent | Parent object for the new instance.  | 
      
Fields
AverageHeight
Average height
Declaration
public const int AverageHeight = 20
  Field Value
| Type | 
|---|
| System.Int32 | 
AverageWidth
Average width
Declaration
public const int AverageWidth = 140
  Field Value
| Type | 
|---|
| System.Int32 | 
Properties
Item[Int32]
Returns single item from the collection.
Declaration
public IOptionButtonShape this[int index] { get; }
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | index | Index of the item to get.  | 
      
Property Value
| Type | Description | 
|---|---|
| IOptionButtonShape | Single item from the collection.  | 
      
Item[String]
Gets single item from the collection.
Declaration
public IOptionButtonShape this[string name] { get; }
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | Name of the item to get.  | 
      
Property Value
| Type | Description | 
|---|---|
| IOptionButtonShape | Single item from the collection.  | 
      
Methods
AddOptionButton()
Adds Option button default Dimension
Declaration
public IOptionButtonShape AddOptionButton()
  Returns
| Type | Description | 
|---|---|
| IOptionButtonShape | returns option button shape  | 
      
AddOptionButton(IOptionButtonShape)
Adds new item to the collection.
Declaration
public void AddOptionButton(IOptionButtonShape optionButton)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IOptionButtonShape | optionButton | OptionButton to add.  | 
      
AddOptionButton(Int32, Int32)
Adds the Shape with default size
Declaration
public IOptionButtonShape AddOptionButton(int row, int column)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | row | Top row for the new shape.  | 
      
| System.Int32 | column | Left column for the new shape  | 
      
Returns
| Type | 
|---|
| IOptionButtonShape | 
AddOptionButton(Int32, Int32, Int32, Int32)
Adds new OptionButton to the collection.
Declaration
public IOptionButtonShape AddOptionButton(int row, int column, int height, int width)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | row | Top row for the new shape.  | 
      
| System.Int32 | column | Left column for the new shape.  | 
      
| System.Int32 | height | Height in pixels of the new shape.  | 
      
| System.Int32 | width | Width in pixels of the new shape.  | 
      
Returns
| Type | Description | 
|---|---|
| IOptionButtonShape | Newly created TextBox object.  |