# YamlLintFix

A replacement of a range of the linted text. Edits touch only the lines they repair; everything else, comments and spellings included, stays as it was.

Class 

`OfficeIMO.Yaml`

**Namespace**

`OfficeIMO.Yaml`

**Assembly**

`OfficeIMO.Yaml`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[YamlLintFinding.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintFinding.cs#L55)

**Modifiers**

sealed

A replacement of a range of the linted text. Edits touch only the lines they repair; everything else, comments and spellings included, stays as it was.

## Inheritance

- object
- YamlLintFix

## Usage

Explore 1 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 [YamlLintFinding.Fix](/api/yaml/officeimo-yaml-yamllintfinding/#property-fix)

Filter members 

Show inherited

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from object

Returns

`int`

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

Inherited from object

Returns

`Type`

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

Inherited from object

Returns

`string?`

## Properties

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

[YamlLintFinding.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintFinding.cs#L55)

Gets the zero-based offset of the replaced range, in UTF-16 code units of the linted text.

`public int Length { get; }` [#](#property-length)

[YamlLintFinding.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintFinding.cs#L58)

Gets the length of the replaced range; 0 for an insertion.

`public string Replacement { get; }` [#](#property-replacement)

[YamlLintFinding.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Lint/YamlLintFinding.cs#L61)

Gets the text that replaces the range; empty for a deletion.

<!-- PowerForge markdown artifact sha256:3D28F42B0DD6C3F5C5319F8CDF520E81F3FC5CFE0997215C4FBFD601DC73E2FC -->
