# AsciiDocDirectiveResult

Result from a custom directive processor.

Class 

`OfficeIMO.AsciiDoc`

**Namespace**

`OfficeIMO.AsciiDoc`

**Assembly**

`OfficeIMO.AsciiDoc`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[AsciiDocExtensions.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AsciiDoc/Processing/AsciiDocExtensions.cs#L58)

**Modifiers**

sealed

Result from a custom directive processor.

## Inheritance

- object
- AsciiDocDirectiveResult

## 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 4

- Method [AsciiDocDirectiveResult.Preserve](/api/ascii-doc/officeimo-asciidoc-asciidocdirectiveresult/#method-preserve)
- Method [AsciiDocDirectiveResult.Remove](/api/ascii-doc/officeimo-asciidoc-asciidocdirectiveresult/#method-remove)
- Method [AsciiDocDirectiveResult.Replace](/api/ascii-doc/officeimo-asciidoc-asciidocdirectiveresult/#method-replace-string)
- Method [IAsciiDocDirectiveProcessor.Process](/api/ascii-doc/officeimo-asciidoc-iasciidocdirectiveprocessor/#method-process-officeimo-asciidoc-asciidocdirectivecontext)

Filter members 

Show inherited

## Methods

`public static AsciiDocDirectiveResult Preserve()` [#](#method-preserve)

[AsciiDocExtensions.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AsciiDoc/Processing/AsciiDocExtensions.cs#L64)

Leaves the original directive untouched.

Returns

`AsciiDocDirectiveResult`

`public static AsciiDocDirectiveResult Remove()` [#](#method-remove)

[AsciiDocExtensions.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AsciiDoc/Processing/AsciiDocExtensions.cs#L61)

Removes the directive.

Returns

`AsciiDocDirectiveResult`

`public static AsciiDocDirectiveResult Replace(string source)` [#](#method-replace-string)

[AsciiDocExtensions.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AsciiDoc/Processing/AsciiDocExtensions.cs#L58)

Replaces the directive with source text.

Parameters

**source string required**

Returns

`AsciiDocDirectiveResult`

## 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 string? Replacement { get; }` [#](#property-replacement)

[AsciiDocExtensions.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AsciiDoc/Processing/AsciiDocExtensions.cs#L52)

Replacement AsciiDoc source.

`public bool PreserveOriginal { get; }` [#](#property-preserveoriginal)

[AsciiDocExtensions.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AsciiDoc/Processing/AsciiDocExtensions.cs#L55)

True when the original directive should remain.

<!-- PowerForge markdown artifact sha256:992FEB9A9EAC13D338FB6C1F6022CA8EB0CD2256518F548DBA121ACB5269334A -->
