Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OdfConversionReport

OfficeIMO.OpenDocument

Namespace
OfficeIMO.OpenDocument
Assembly
OfficeIMO.OpenDocument
Source revision
be6c300e4ab1 with working tree changes
Base
OfficeConversionReport
Modifiers
sealed

Feature mapping report for one explicit conversion between OpenDocument and another Office format.

Inheritance

  • OfficeConversionReport
  • OdfConversionReport

Usage

Explore 7 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.

Accepted by parameters 4

Constructors

public OdfConversionReport(string sourceFormat, string targetFormat) #

Creates an empty conversion report.

Parameters

sourceFormat string required
targetFormat string required

Methods

public OdfConversionReport Add(string feature, OdfConversionMappingStatus status, int count = 1, string? message = null) #

Adds one feature-level result and returns this report.

Parameters

feature string required
status OfficeIMO.OpenDocument.OdfConversionMappingStatus required
count int = 1 optional
message string? = null optional
public void ApplyPolicy(OdfConversionLossPolicy policy) #

Applies an explicit conversion loss policy.

Parameters

policy OfficeIMO.OpenDocument.OdfConversionLossPolicy required
public IReadOnlyList<OdfConversionMapping> ForFeature(string feature) #

Returns all results for one stable feature identifier.

Parameters

feature string required

Returns

IReadOnlyList<OdfConversionMapping>
public void RequireNoSkippedOrUnsupported() #

Throws when any feature was skipped or unsupported; approximations are accepted.

Properties

public string SourceFormat { get; } #

Source format identifier.

public string TargetFormat { get; } #

Target format identifier.

public IReadOnlyList<OdfConversionMapping> Mappings { get; } #

Feature results in the order reported by the adapter.

public override bool HasLoss { get; } #

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

public bool HasSkippedOrUnsupported { get; } #

True when at least one feature was skipped or unsupported.