[]
Gets the used range.
IRange GetUsedRange(UsedRangeType type = UsedRangeType.All)
Function GetUsedRange(Optional type As UsedRangeType = UsedRangeType.All) As IRange
| Type | Name | Description |
|---|---|---|
| UsedRangeType | type | The feature type. |
| Type | Description |
|---|---|
| IRange | The used range for the specified feature type. |
worksheet.Range["B2"].Value = "Used cell";
IRange usedRange = worksheet.GetUsedRange(UsedRangeType.Data);
string address = usedRange.Address;