Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeAccessibilityReport

OfficeIMO

Namespace
OfficeIMO
Assembly
OfficeIMO.Core
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

Structured accessibility inspection result for a Word or PowerPoint document.

Inheritance

  • object
  • OfficeAccessibilityReport

Usage

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

Methods

public OfficeAccessibilityReport EnsureCompliant(bool includeWarnings = false) #

Throws OfficeAccessibilityException when the report contains errors, or warnings when requested.

Parameters

includeWarnings bool = false optional
public void SaveJson(string path, bool indented = true) #

Writes the JSON report to disk, creating the destination directory when needed.

Parameters

path string required
indented bool = true optional
public string ToJson(bool indented = true) #

Serializes the report as dependency-free JSON.

Parameters

indented bool = true optional

Returns

string

Properties

public int SchemaVersion { get; } #

Version of the OfficeAccessibilityReport.ToJson schema.

public string Format { get; } #

The inspected format, such as Word or PowerPoint.

public OfficeAccessibilityPolicyProfile Profile { get; } #

Policy profile used for inspection.

public IReadOnlyList<OfficeAccessibilityFinding> Findings { get; } #

Findings in document order, after the document-level findings.

public int ErrorCount { get; } #

Number of error findings.

public int WarningCount { get; } #

Number of warning findings.

public bool IsSuccessful { get; } #

Whether no policy errors were found.