API Reference

Class

OdfDiagnostic

Namespace OfficeIMO.OpenDocument
Assembly OfficeIMO.OpenDocument
Modifiers sealed

Describes a package, XML, compatibility, or preservation finding.

Inheritance

  • Object
  • OdfDiagnostic

Usage

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

Constructors

public OdfDiagnostic(String id, OdfDiagnosticSeverity severity, String message, String partPath = null, Nullable<Int32> lineNumber = null, Nullable<Int32> linePosition = null) #

Creates a diagnostic.

Parameters

id System.String requiredposition: 0
severity OfficeIMO.OpenDocument.OdfDiagnosticSeverity requiredposition: 1
message System.String requiredposition: 2
partPath System.String = null optionalposition: 3
lineNumber System.Nullable{System.Int32} = null optionalposition: 4
linePosition System.Nullable{System.Int32} = null optionalposition: 5

Properties

public String Id { get; } #

Stable diagnostic identifier.

public OdfDiagnosticSeverity Severity { get; } #

Diagnostic severity.

public String Message { get; } #

Human-readable explanation.

public String PartPath { get; } #

Package part associated with the finding.

public Nullable<Int32> LineNumber { get; } #

One-based XML line number when available.

public Nullable<Int32> LinePosition { get; } #

One-based XML line position when available.