Class OptionButtonCollection
Represents worksheet's OptionButton collection.
Implements
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation.Collections
Assembly: Syncfusion.XlsIO.NET.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. |
| object | parent | Parent object for the new instance. |
Fields
AverageHeight
Average height
Declaration
public const int AverageHeight = 20
Field Value
| Type |
|---|
| int |
AverageWidth
Average width
Declaration
public const int AverageWidth = 140
Field Value
| Type |
|---|
| int |
Properties
this[int]
Returns single item from the collection.
Declaration
public IOptionButtonShape this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | Index of the item to get. |
Property Value
| Type | Description |
|---|---|
| IOptionButtonShape | Single item from the collection. |
this[string]
Gets single item from the collection.
Declaration
public IOptionButtonShape this[string name] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| 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(int, int)
Adds the Shape with default size
Declaration
public IOptionButtonShape AddOptionButton(int row, int column)
Parameters
| Type | Name | Description |
|---|---|---|
| int | row | Top row for the new shape. |
| int | column | Left column for the new shape |
Returns
| Type |
|---|
| IOptionButtonShape |
AddOptionButton(int, int, int, int)
Adds new OptionButton to the collection.
Declaration
public IOptionButtonShape AddOptionButton(int row, int column, int height, int width)
Parameters
| Type | Name | Description |
|---|---|---|
| int | row | Top row for the new shape. |
| int | column | Left column for the new shape. |
| int | height | Height in pixels of the new shape. |
| int | width | Width in pixels of the new shape. |
Returns
| Type | Description |
|---|---|
| IOptionButtonShape | Newly created TextBox object. |