Class PageBreakCollection
Represents the page break collection class used by the spreadsheet model.
Inherited Members
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public class PageBreakCollection : IEnumerable<PageBreak>, IEnumerable
Constructors
PageBreakCollection()
Represents the page break collection class used by the spreadsheet model.
Declaration
public PageBreakCollection()
Properties
Count
Gets the number of page breaks in the collection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Provides indexed access to values in PageBreakCollection.
Declaration
public PageBreak this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| PageBreak |
Methods
Add(string)
Adds a page break at the specified row or column index.
Declaration
public void Add(string address)
Parameters
| Type | Name | Description |
|---|---|---|
| string | address | The address (e.g., "Y30") where the page break should be added. |
Clear()
Removes all page breaks from the collection.
Declaration
public void Clear()
GetEnumerator()
Retrieves the requested enumerator from PageBreakCollection.
Declaration
public IEnumerator<PageBreak> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<PageBreak> | The get enumerator returned by the operation. |
RemoveAt(int)
Removes the page break at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the page break to remove. |