Interface ICollapsableConfigLexem
Provides the functionality for lexem configurations. It describes behaviour of the lexem, that can be collapsed. It describes behaviour of the lexem, that can be collapsed.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Edit.Interfaces
Assembly: Syncfusion.Edit.Windows.dll
Syntax
public interface ICollapsableConfigLexem : IConfigLexem
Properties
AutoNameExpression
Gets the expression for auto-naming.
Declaration
string AutoNameExpression { get; }
Property Value
Type |
---|
System.String |
Remarks
When parsing collapsed region, parser reads text from stream until text matches given expression. You can specifie different named groups here to use them later in AutoNameTemplate.
AutoNameRegex
Gets the regular expression instance for AutoNameExpression.
Declaration
Regex AutoNameRegex { get; }
Property Value
Type |
---|
System.Text.RegularExpressions.Regex |
AutoNameTemplate
Gets the template of resulting text for auto-naming of collapse.
Declaration
string AutoNameTemplate { get; }
Property Value
Type |
---|
System.String |
Remarks
To specifie "$" symbol you must use $$. To use result of some named group, use ${name}.
CollapseName
Gets the name of the collapsed region.
Declaration
string CollapseName { get; }
Property Value
Type |
---|
System.String |
Remarks
If IsCollapseAutoNamed is true, then this property`s value will be used just when found name is empty.
IsCollapsable
Gets a value indicating whether this configuration supports collapsing or not.
Declaration
bool IsCollapsable { get; }
Property Value
Type |
---|
System.Boolean |
Remarks
If lexem is not collapsabe, all other properties does not have any influence to it`s behaviour.
IsCollapseAutoNamed
Gets a value indicating whether lexem can read it`s text from sub-lexems or not.
Declaration
bool IsCollapseAutoNamed { get; }
Property Value
Type |
---|
System.Boolean |
Remarks
If this property is false, then CollapseName will be used to name the region.
Note: you should know that is this property is true, then on by-lexem reading you`ll have to wait while sub-lexems will be loaded, then processed by RegEx and only then you`ll have your collapsible lexem.