# ExcelTemplateInspection

Template marker inspection result for a workbook or worksheet.

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[ExcelTemplateInspection.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelTemplateInspection.cs#L52)

**Modifiers**

sealed

Template marker inspection result for a workbook or worksheet.

## Inheritance

- object
- ExcelTemplateInspection

## Usage

Explore 4 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 4

- Method [ExcelDocument.InspectTemplate](/api/excel/officeimo-excel-exceldocument/#method-inspecttemplate)
- Method [ExcelSheet.InspectTemplate](/api/excel/officeimo-excel-excelsheet/#method-inspecttemplate)
- Property [ExcelTemplateBindingReport.Inspection](/api/excel/officeimo-excel-exceltemplatebindingreport/#property-inspection)
- Method [ExcelTemplateInspection.EnsureAllMarkersBound](/api/excel/officeimo-excel-exceltemplateinspection/#method-ensureallmarkersbound)

Filter members 

Show inherited

## Methods

`public ExcelTemplateInspection EnsureAllMarkersBound()` [#](#method-ensureallmarkersbound)

[ExcelTemplateInspection.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelTemplateInspection.cs#L52)

Throws when this inspection was created without bindings or when any marker is missing.

Returns

`ExcelTemplateInspection`

`public string ToMarkdown()` [#](#method-tomarkdown)

[ExcelTemplateInspection.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelTemplateInspection.cs#L67)

Returns a compact Markdown report of discovered template markers and binding status.

Returns

`string`

## 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 IReadOnlyList<ExcelTemplateMarkerInfo> Markers { get; }` [#](#property-markers)

[ExcelTemplateInspection.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelTemplateInspection.cs#L28)

Template markers discovered in workbook order.

`public bool HasBindingInfo { get; }` [#](#property-hasbindinginfo)

[ExcelTemplateInspection.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelTemplateInspection.cs#L31)

True when the inspection was performed with a values/model binding source.

`public int TotalMarkers { get; }` [#](#property-totalmarkers)

[ExcelTemplateInspection.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelTemplateInspection.cs#L34)

Total marker occurrences.

`public IReadOnlyList<string> UniqueMarkers { get; }` [#](#property-uniquemarkers)

[ExcelTemplateInspection.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelTemplateInspection.cs#L37)

Distinct marker names discovered in the template.

`public IReadOnlyList<ExcelTemplateMarkerInfo> MissingMarkers { get; }` [#](#property-missingmarkers)

[ExcelTemplateInspection.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelTemplateInspection.cs#L40)

Marker occurrences missing from the supplied values/model. Empty when binding info was not supplied.

`public IReadOnlyList<string> MissingMarkerNames { get; }` [#](#property-missingmarkernames)

[ExcelTemplateInspection.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelTemplateInspection.cs#L43)

Distinct missing marker names. Empty when binding info was not supplied.

`public bool AllMarkersBound { get; }` [#](#property-allmarkersbound)

[ExcelTemplateInspection.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelTemplateInspection.cs#L46)

True when every marker was supplied by the inspected values/model.

<!-- PowerForge markdown artifact sha256:AA3A923EA6B5F4B14112246715284A1976A1C72C7FCABA5390CDC74402455F97 -->
