Class FormControlCollection
Represents a collection of form controls on a sheet.
Implements
Inherited Members
Namespace: DRIT.Spreadsheet.Forms
Assembly: DRIT.Spreadsheet.dll
Syntax
public class FormControlCollection : IReadOnlyList<FormControl>, IReadOnlyCollection<FormControl>, IEnumerable<FormControl>, IEnumerable
Remarks
Form controls does not have unique names. It is allowed to have multiple controls with the same name.
Properties
Count
Reports the number of items currently held by FormControlCollection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int | The count returned by the operation. |
Remarks
Form controls does not have unique names. It is allowed to have multiple controls with the same name.
this[int]
Provides indexed access to values in the FormControlCollection.
Declaration
public FormControl this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| FormControl | The this returned by the operation. |
Remarks
Form controls does not have unique names. It is allowed to have multiple controls with the same name.
Methods
GetEnumerator()
Retrieves the requested enumerator from the FormControlCollection.
Declaration
public IEnumerator<FormControl> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<FormControl> | The get enumerator returned by the operation. |
Remarks
Form controls does not have unique names. It is allowed to have multiple controls with the same name.
Get<TC>(string)
Retrieves the requested value from the FormControlCollection.
Declaration
public TC Get<TC>(string name) where TC : FormControl
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name used by the operation. |
Returns
| Type | Description |
|---|---|
| TC | The get returned by the operation. |
Type Parameters
| Name | Description |
|---|---|
| TC |
Remarks
Form controls does not have unique names. It is allowed to have multiple controls with the same name.