.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

DocumentSearchOptions.RegExResultMaxGuaranteedLength Property

Gets or sets the maximum length of a string that can be obtained in a regular expression search.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v21.2.Core.dll


public int RegExResultMaxGuaranteedLength { get; set; }

Property Value

Type Description

An integer specifying the maximum number of characters in a string. Default is 128.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to RegExResultMaxGuaranteedLength
WinForms Controls SnapControlOptions
WPF Controls RichEditControlOptions
Office File API RichEditControlOptionsBase


The RegExResultMaxGuaranteedLength property specifies the size of a buffer allocated for a search using regular expressions. A string that exceeds this length cannot be compared with the pattern to check for a match, therefore only strings shorter than the RegExResultMaxGuaranteedLength can definitely be found. The RegExResultMaxGuaranteedLength property determines the maximum guaranteed length of a resulting string.

See Also