Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OdfDiagnostic

OfficeIMO.OpenDocument

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

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

Inheritance

  • object
  • OdfDiagnostic

Usage

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

Constructors

public OdfDiagnostic(string id, OdfDiagnosticSeverity severity, string message, string? partPath = null, int? lineNumber = null, int? linePosition = null) #

Creates a diagnostic.

Parameters

id string required
severity OfficeIMO.OpenDocument.OdfDiagnosticSeverity required
message string required
partPath string? = null optional
lineNumber int? = null optional
linePosition int? = null optional

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 int? LineNumber { get; } #

One-based XML line number when available.

public int? LinePosition { get; } #

One-based XML line position when available.