GetFragment Method (String, RegexOptions)

Fast Colored Text Box

Collapse imageExpand ImageCopy imageCopyHover image
Get fragment of text around Start place. Returns maximal mathed to pattern fragment.

Namespace: FastColoredTextBoxNS
Assembly: FastColoredTextBox (in FastColoredTextBox.dll) Version: 2.9.3.0 (2.9.3.0)

Syntax

C#
public Range GetFragment(
	string allowedSymbolsPattern,
	RegexOptions options
)
Visual Basic
Public Function GetFragment ( _
	allowedSymbolsPattern As String, _
	options As RegexOptions _
) As Range
Visual C++
public:
Range^ GetFragment(
	String^ allowedSymbolsPattern, 
	RegexOptions options
)

Parameters

allowedSymbolsPattern
Type: System..::..String
Allowed chars pattern for fragment
options
Type: System.Text.RegularExpressions..::..RegexOptions

Return Value

Range of found fragment

See Also