Class RangeBuilder
Class used for Range Builder.
Inheritance
System.Object
RangeBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.XlsIO.Implementation.TemplateMarkers
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class RangeBuilder
Constructors
RangeBuilder()
Initializes a new instance of the RangeBuilder class.
Declaration
public RangeBuilder()
Properties
Count
Gets number of elements in the collection. Read-only.
Declaration
public int Count { get; }
Property Value
Type |
---|
System.Int32 |
Item[Int32]
Returns single entry from the collection by its index. Read-only.
Declaration
public Rectangle this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
System.Drawing.Rectangle |
Methods
Add(Int32, Int32)
Adds cell to the collection for the specified row and column.
Declaration
public void Add(int iRow, int iColumn)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | iRow | One-based row index of the cell to add. |
System.Int32 | iColumn | One-based column index of the cell to add. |
Clear()
Clears collection.
Declaration
public void Clear()
GetRectangle(Int32, Int32)
Creates rectangle for the specified row and column.
Declaration
public static Rectangle GetRectangle(int iRow, int iColumn)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | iRow | One-based row index of the cell. |
System.Int32 | iColumn | One-based column index of the cell. |
Returns
Type | Description |
---|---|
System.Drawing.Rectangle | Created rectangle. |
ToRange(IWorksheet)
Returns range object that was built by the current instance.
Declaration
public IRange ToRange(IWorksheet parentWorksheet)
Parameters
Type | Name | Description |
---|---|---|
IWorksheet | parentWorksheet | Parent worksheet object. |
Returns
Type | Description |
---|---|
IRange | Range object that was built by this instance. |