API Reference
Class
OdfDiagnostic
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.
Returned or exposed by
- Property OdfDocument.Diagnostics
- Property OdfValidationResult.Diagnostics
- Property OdpPresentation.Diagnostics
- Property OdsDocument.Diagnostics
- Property OdtDocument.Diagnostics
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
- severity OfficeIMO.OpenDocument.OdfDiagnosticSeverity
- message System.String
- partPath System.String = null
- lineNumber System.Nullable{System.Int32} = null
- linePosition System.Nullable{System.Int32} = null
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
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.