Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeTextSnippet

OfficeIMO.TextAnalysis

Namespace
OfficeIMO.TextAnalysis
Assembly
OfficeIMO.Core
Source revision
ac7e6e1bad8a with working tree changes
Modifiers
sealed

A window of field text around the matches of a hit.

Inheritance

  • object
  • OfficeTextSnippet

Usage

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

Properties

public string Text { get; } #

Snippet text, cut at grapheme cluster boundaries.

public int SourceStart { get; } #

Offset of the snippet in the field text.

public bool StartsMidText { get; } #

True when field text precedes the snippet.

public bool EndsMidText { get; } #

True when field text follows the snippet.

public IReadOnlyList<OfficeTextHighlight> Highlights { get; } #

Highlights inside the snippet, with offsets relative to OfficeTextSnippet.Text.