TX Text Control .NET for Windows Forms Documentation

HeaderFooter.Find Method

Finds a text string in a header or footer.

Introduced: 16.0.

Syntax

[C#] public int Find(string text, int start, FindOptions options);
[Visual Basic] Public Function Find(ByVal text As String, ByVal start As Integer, ByVal options As FindOptions) As Integer
ParameterDescription
text

Specifies the text to search for.

start

Specifies the text position where the search starts, beginning with 0. If this value is -1, the search begins at the current text input position.

options

Specifies search options. A combination of the following values are possible:


ValueMeaning
NoHighlightThe search text, if found, is not highlighted.
NoMessageBoxDoes not display message boxes to inform about search results.
MatchCaseLocates only instances of the search text that have the exact casing.
ReverseThe search starts at the end of the control's document and searches to the beginning of the document.

Return Value

If the text searched for is found, the method returns the index (zero-based) of the first character of the search string. If the specified text is not found the method returns -1.

See Also

 
 
 

Products

Support

Downloads

Corporate

Buy Now