TextSearchResultExpandMode

Used with ITextSearchResultOptions, describing how the text in SearchResultItem.textBefore and the SearchResultItem.textAfter is computed.

Entries

Link copied to clipboard

Returns the exact number of characters (if available) as defined in numberOfCharactersAfter and numberOfCharactersBefore. This can result in words being sliced in the middle.

Link copied to clipboard

If text ends within a word, this mode expands to the nearest word boundary (whitespace).

Link copied to clipboard

This mode expands the text to the nearest IContentBlock boundary.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard