OdfConversionReport
OfficeIMO.OpenDocument
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.
Returned or exposed by 3
- Property OdfConversionLossException.Report
- Method OdfConversionReport.Add
- Property OdfConversionResult<T>.Report
Accepted by parameters 4
Constructors
public OdfConversionReport(string sourceFormat, string targetFormat) #Creates an empty conversion report.
Parameters
- sourceFormat string
- targetFormat string
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
- status OfficeIMO.OpenDocument.OdfConversionMappingStatus
- count int = 1
- message string? = null
Returns
OdfConversionReportpublic void ApplyPolicy(OdfConversionLossPolicy policy) #Applies an explicit conversion loss policy.
Parameters
- policy OfficeIMO.OpenDocument.OdfConversionLossPolicy
public IReadOnlyList<OdfConversionMapping> ForFeature(string feature) #Returns all results for one stable feature identifier.
Parameters
- feature string
Returns
IReadOnlyList<OdfConversionMapping>public void RequireNoSkippedOrUnsupported() #Throws when any feature was skipped or unsupported; approximations are accepted.
Inherited Methods
public void ThrowIfLoss() #Properties
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.
Inherited Properties
public string Source { get; } #public string Target { get; } #public string? OutputPath { get; } #public long ItemsWritten { get; } #public TimeSpan Elapsed { get; } #public IReadOnlyList<OfficeDiagnostic> Diagnostics { get; } #