# RtfConversionResult<T>

Pairs a converted value with its shared RTF conversion report.

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[RtfConversionResult.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Conversion/RtfConversionResult.cs#L9)

**Base**

`OfficeConversionResult<T>`

**Modifiers**

sealed

Pairs a converted value with its shared RTF conversion report.

## Inheritance

- OfficeConversionResult<T>
- RtfConversionResult<T>

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

- Method [RtfDocument.ToRtfResult](/api/rtf/officeimo-rtf-rtfdocument/#method-tortfresult-officeimo-rtf-rtfsaveoptions)

## Type Parameters

**T**

Filter members 

Show inherited

## Constructors

`public RtfConversionResult<T>(T value, RtfConversionReport report)` [#](#constructor-ctor-officeimo-rtf-rtfconversionreport)

[RtfConversionResult.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Conversion/RtfConversionResult.cs#L9)

Initializes a conversion result.

Parameters

**value T required**

**report OfficeIMO.Rtf.RtfConversionReport required**

## Methods

`public T RequireValue()` [#](#method-requirevalue)

[RtfConversionResult.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Conversion/RtfConversionResult.cs#L16)

Returns the value or throws when conversion reported an error.

Returns

`T`

## Inherited Methods

`public void Deconstruct(out T value, out OfficeConversionReport report)` [#](#method-deconstruct-t-officeconversionreport)

Parameters

**value T required**

**report OfficeConversionReport required**

`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 void ThrowIfLoss()` [#](#method-throwifloss)

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

Inherited from object

Returns

`string?`

## Properties

`public RtfConversionReport Report { get; }` [#](#property-report)

[RtfConversionResult.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Conversion/RtfConversionResult.cs#L6)

Gets the typed conversion report.

`public bool Succeeded { get; }` [#](#property-succeeded)

[RtfConversionResult.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Conversion/RtfConversionResult.cs#L12)

Whether conversion completed without an error diagnostic.

## Inherited Properties

`public T Value { get; }` [#](#property-value)

`public bool HasLoss { get; }` [#](#property-hasloss)

<!-- PowerForge markdown artifact sha256:05DEA58194F2697CF2C69B6CD000A171E82DB4300380392847847E467AAE7078 -->
