# LatexSourcePosition

One-based position in decoded LaTeX source.

Struct 

`OfficeIMO.Latex`

**Namespace**

`OfficeIMO.Latex`

**Assembly**

`OfficeIMO.Latex`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[LatexSource.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Source/LatexSource.cs#L19)

**Base**

`ValueType`

**Implements**

`IEquatable<LatexSourcePosition>`

**Modifiers**

sealed

One-based position in decoded LaTeX source.

## Inheritance

- ValueType
- LatexSourcePosition

## Usage

Explore 4 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 3

- Property [LatexSourceSpan.End](/api/latex/officeimo-latex-latexsourcespan/#property-end)
- Property [LatexSourceSpan.Start](/api/latex/officeimo-latex-latexsourcespan/#property-start)
- Method [LatexSourceText.GetPosition](/api/latex/officeimo-latex-latexsourcetext/#method-getposition-int32)

### Accepted by parameters 1

- Method [LatexSourcePosition.Equals](/api/latex/officeimo-latex-latexsourceposition/#method-equals-officeimo-latex-latexsourceposition) parameter `other`

Filter members 

Show inherited

## Methods

Equals 2 overloads

`public bool Equals(LatexSourcePosition other)` [#](#method-equals-officeimo-latex-latexsourceposition)

[LatexSource.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Source/LatexSource.cs#L19)

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

Parameters

**other OfficeIMO.Latex.LatexSourcePosition 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)

[LatexSource.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Source/LatexSource.cs#L21)

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)

[LatexSource.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Source/LatexSource.cs#L23)

Returns the hash code for this instance.

Returns

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

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

[LatexSource.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Source/LatexSource.cs#L25)

Returns the fully qualified type name of this instance.

Returns

`string` The fully qualified type name.

## Inherited Methods

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

Inherited from object

Returns

`Type`

## Properties

`public int Offset { get; }` [#](#property-offset)

[LatexSource.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Source/LatexSource.cs#L12)

Zero-based UTF-16 offset.

`public int Line { get; }` [#](#property-line)

[LatexSource.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Source/LatexSource.cs#L14)

One-based line.

`public int Column { get; }` [#](#property-column)

[LatexSource.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Source/LatexSource.cs#L16)

One-based column.

<!-- PowerForge markdown artifact sha256:EB6863A8B4F3158640E25B831EDFF977AFAF1C1FEBAE8F3314B019D9D7EE896E -->
