# OdsUsedRange

A zero-based rectangular range containing used spreadsheet cells.

Struct 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OdsUsedRange.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/OdsUsedRange.cs#L7)

**Base**

`ValueType`

**Implements**

`IEquatable<OdsUsedRange>`

**Modifiers**

sealed

A zero-based rectangular range containing used spreadsheet cells.

## Inheritance

- ValueType
- OdsUsedRange

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Create and Read ODT, ODS and ODP Files](/docs/open-document/create-read/) Guide
  
  Create OpenDocument text, spreadsheet and presentation files, read their content, edit them in place, and open password-protected files.

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [OdsSheet.UsedRange](/api/open-document/officeimo-opendocument-odssheet/#property-usedrange)

### Accepted by parameters 1

- Method [OdsUsedRange.Equals](/api/open-document/officeimo-opendocument-odsusedrange/#method-equals-officeimo-opendocument-odsusedrange) parameter `other`

Filter members 

Show inherited

## Constructors

`public OdsUsedRange(long firstRow, long firstColumn, long lastRow, long lastColumn)` [#](#constructor-ctor-int64-int64-int64-int64)

[OdsUsedRange.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/OdsUsedRange.cs#L7)

Creates a used range.

Parameters

**firstRow long required**

**firstColumn long required**

**lastRow long required**

**lastColumn long required**

## Methods

Equals 2 overloads

`public bool Equals(OdsUsedRange other)` [#](#method-equals-officeimo-opendocument-odsusedrange)

[OdsUsedRange.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/OdsUsedRange.cs#L23)

Indicates whether the current object is equal to another object of the same type.

Parameters

**other OfficeIMO.OpenDocument.OdsUsedRange required**

An object to compare with this object.

Returns

`bool` true if the current object is equal to the other parameter; otherwise, false.

`public override bool Equals(object? obj)` [#](#method-equals-object)

[OdsUsedRange.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/OdsUsedRange.cs#L25)

Indicates whether this instance and a specified object are equal.

Parameters

**obj object? required**

The object to compare with the current instance.

Returns

`bool` true if obj and this instance are the same type and represent the same value; otherwise, false.

`public override int GetHashCode()` [#](#method-gethashcode)

[OdsUsedRange.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/OdsUsedRange.cs#L27)

Returns the hash code for this instance.

Returns

`int` A 32-bit signed integer that is the hash code for this instance.

## Inherited Methods

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public override string? ToString()` [#](#method-tostring)

Inherited from ValueType

Returns

`string?`

## Properties

`public long FirstRow { get; }` [#](#property-firstrow)

[OdsUsedRange.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/OdsUsedRange.cs#L11)

First row, zero-based.

`public long FirstColumn { get; }` [#](#property-firstcolumn)

[OdsUsedRange.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/OdsUsedRange.cs#L13)

First column, zero-based.

`public long LastRow { get; }` [#](#property-lastrow)

[OdsUsedRange.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/OdsUsedRange.cs#L15)

Last row, zero-based and inclusive.

`public long LastColumn { get; }` [#](#property-lastcolumn)

[OdsUsedRange.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/OdsUsedRange.cs#L17)

Last column, zero-based and inclusive.

`public long RowCount { get; }` [#](#property-rowcount)

[OdsUsedRange.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/OdsUsedRange.cs#L19)

Logical row count.

`public long ColumnCount { get; }` [#](#property-columncount)

[OdsUsedRange.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/OdsUsedRange.cs#L21)

Logical column count.

<!-- PowerForge markdown artifact sha256:6A7553AF2DB196938464688E981577D97802E3D01DD23DFE22EF95C6F9FD0364 -->
