Finds and returns entry of specified regular expression along with formatting.

Namespace: Spire.Doc
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 9.6.1.0 (9.6.1.3020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public TextSelection FindPattern(
	Regex pattern
)
Public Function FindPattern ( 
	pattern As Regex
) As TextSelection
public:
virtual TextSelection^ FindPattern(
	Regex^ pattern
) sealed
abstract FindPattern : 
        pattern : Regex -> TextSelection 
override FindPattern : 
        pattern : Regex -> TextSelection 

Parameters

pattern
Regex
regex pattern

Return Value

TextSelection
Found text selection

Implements

IDocument..::..FindPattern(Regex)

See Also