API Reference

Class

OdfConversionResult`1

Namespace OfficeIMO.OpenDocument
Assembly OfficeIMO.OpenDocument
Modifiers sealed

Converted document together with the feature mapping evidence for that conversion.

Inheritance

  • Object
  • OdfConversionResult`1

Usage

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

Returned or exposed by

Type Parameters

TDocument

Constructors

public OdfConversionResult<TDocument>(TDocument value, OdfConversionReport report) #

Creates a conversion result.

Parameters

value `0 requiredposition: 0
report OfficeIMO.OpenDocument.OdfConversionReport requiredposition: 1

Methods

public OdfConversionResult<TDocument> ApplyPolicy(OdfConversionLossPolicy policy) #
Returns: OdfConversionResult<TDocument>

Applies a loss policy and returns this result for fluent adapter composition. A rejected disposable conversion value is disposed before the policy exception is rethrown.

Parameters

policy OfficeIMO.OpenDocument.OdfConversionLossPolicy requiredposition: 0
public TDocument GetValue(OdfConversionLossPolicy policy) #
Returns: TDocument

Returns the converted document after applying an explicit loss policy.

Parameters

policy OfficeIMO.OpenDocument.OdfConversionLossPolicy requiredposition: 0
public TDocument RequireNoLoss() #
Returns: TDocument

Returns the converted document or throws when the conversion was lossy.

public TDocument RequireValue() #
Returns: TDocument

Returns the converted document.

Properties

public TDocument Value { get; } #

The converted in-memory document.

public OdfConversionReport Report { get; } #

Feature-level conversion report.

public Boolean HasLoss { get; } #

True when at least one feature was approximated, skipped, or unsupported.