Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

#Declaration

[DefaultValue(128)]
public int RegExResultMaxGuaranteedLength { get; set; }

#Property Value

Type Default Description
Int32 128

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:

Object Type Path to RegExResultMaxGuaranteedLength
RichEditControlOptionsBase
.Search .RegExResultMaxGuaranteedLength

#Remarks

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