Click or drag to resize
TextRangeFindTextEnd Method (String, RangeMatchType)
Searches to the end of the story for text, starting from the range's end.

Namespace: TextObjectModel
Assembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax
public int FindTextEnd(
	string text,
	[OptionalAttribute] RangeMatchType flags
)

Parameters

text
Type: SystemString
String to find.
flags (Optional)
Type: TextObjectModelRangeMatchType
Flags governing comparisons.

Return Value

Type: Int32
The length of string matched.
Remarks
The search is subject to the comparison parameter, flags. If the string is found, the end is changed to be the end of the matched string, and the length of the string is returned. If the string is not found, the range is unchanged and zero is returned.
See Also