# ExcelAccessibilityOptions

Options controlling Excel workbook accessibility inspection.

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[ExcelAccessibilityOptions.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel/ExcelAccessibilityOptions.cs#L8)

**Modifiers**

sealed

Options controlling Excel workbook accessibility inspection.

## Inheritance

- object
- ExcelAccessibilityOptions

## Remarks

The rules follow the Excel checks in Microsoft's Office Accessibility Checker: alternative text, table header rows, merged cells, default sheet names, hidden sheets, hyperlink text, text contrast and blank cells used for layout.

## 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.

### Returned or exposed by 1

- Method [ExcelAccessibilityOptions.ForProfile](/api/excel/officeimo-excel-excelaccessibilityoptions/#method-forprofile-officeimo-officeaccessibilitypolicyprofile)

### Accepted by parameters 1

- Method [ExcelDocument.InspectAccessibility](/api/excel/officeimo-excel-exceldocument/#method-inspectaccessibility-officeimo-excel-excelaccessibilityoptions) parameter `options`

Filter members 

Show inherited

## Constructors

`public ExcelAccessibilityOptions()` [#](#constructor-ctor)

[ExcelAccessibilityOptions.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel/ExcelAccessibilityOptions.cs#L8)

## Methods

`public static ExcelAccessibilityOptions ForProfile(OfficeAccessibilityPolicyProfile profile)` [#](#method-forprofile-officeimo-officeaccessibilitypolicyprofile)

[ExcelAccessibilityOptions.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel/ExcelAccessibilityOptions.cs#L56)

Creates options initialized for a built-in profile.

Parameters

**profile OfficeIMO.OfficeAccessibilityPolicyProfile required**

Returns

`ExcelAccessibilityOptions`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public OfficeAccessibilityPolicyProfile Profile { get; set; }` [#](#property-profile)

[ExcelAccessibilityOptions.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel/ExcelAccessibilityOptions.cs#L13)

Selected policy profile. Strict turns structural warnings into errors; heuristic findings stay warnings.

`public bool RequireDocumentTitle { get; set; }` [#](#property-requiredocumenttitle)

[ExcelAccessibilityOptions.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel/ExcelAccessibilityOptions.cs#L15)

Whether the workbook must define a document title. Defaults to false; the Strict profile turns it on.

`public bool RequireAlternativeText { get; set; }` [#](#property-requirealternativetext)

[ExcelAccessibilityOptions.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel/ExcelAccessibilityOptions.cs#L17)

Whether pictures, charts and shapes need alternative text unless marked decorative. Defaults to true.

`public bool RequireTableHeaders { get; set; }` [#](#property-requiretableheaders)

[ExcelAccessibilityOptions.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel/ExcelAccessibilityOptions.cs#L19)

Whether Excel tables need a header row. Defaults to true.

`public bool CheckMergedCells { get; set; }` [#](#property-checkmergedcells)

[ExcelAccessibilityOptions.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel/ExcelAccessibilityOptions.cs#L21)

Whether merged cell ranges are reported. Defaults to true.

`public bool CheckDefaultSheetNames { get; set; }` [#](#property-checkdefaultsheetnames)

[ExcelAccessibilityOptions.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel/ExcelAccessibilityOptions.cs#L23)

Whether worksheets with content that keep a default name such as Sheet1 are reported. Defaults to true.

`public bool CheckHiddenSheets { get; set; }` [#](#property-checkhiddensheets)

[ExcelAccessibilityOptions.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel/ExcelAccessibilityOptions.cs#L25)

Whether hidden or very hidden worksheets that contain cell values are reported. Defaults to true.

`public bool CheckMeaningfulLinks { get; set; }` [#](#property-checkmeaningfullinks)

[ExcelAccessibilityOptions.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel/ExcelAccessibilityOptions.cs#L27)

Whether cell hyperlinks need meaningful visible text. Defaults to true.

`public bool CheckContrast { get; set; }` [#](#property-checkcontrast)

[ExcelAccessibilityOptions.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel/ExcelAccessibilityOptions.cs#L29)

Whether cell font colours are checked against the cell fill. Defaults to true.

`public bool CheckBlankCellLayout { get; set; }` [#](#property-checkblankcelllayout)

[ExcelAccessibilityOptions.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel/ExcelAccessibilityOptions.cs#L31)

Whether blank rows and columns inside a sheet's data area are reported as likely spacing. Defaults to true.

`public double MinimumTextContrastRatio { get; set; }` [#](#property-minimumtextcontrastratio)

[ExcelAccessibilityOptions.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel/ExcelAccessibilityOptions.cs#L35)

Minimum contrast ratio for normal text. Defaults to the WCAG AA value 4.5.

`public double MinimumLargeTextContrastRatio { get; set; }` [#](#property-minimumlargetextcontrastratio)

[ExcelAccessibilityOptions.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel/ExcelAccessibilityOptions.cs#L41)

Minimum contrast ratio for large text (18 pt, or 14 pt bold). Defaults to the WCAG AA value 3.

`public int MaximumCellCount { get; set; }` [#](#property-maximumcellcount)

[ExcelAccessibilityOptions.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel/ExcelAccessibilityOptions.cs#L47)

Maximum number of cells read per worksheet by the contrast, content and blank-layout checks. Defaults to 1,000,000.

<!-- PowerForge markdown artifact sha256:03CBCF60194BC10EA2CC4ABE5D73BDFF578AC569D2D2671ED2C69135449195B6 -->
