Class Lexem
Lexem class holds values related to a lexical element used in a Language configuration
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Edit
Assembly: Syncfusion.Edit.Wpf.dll
Syntax
public class Lexem : ILexem, IBlock
Remarks
Lexem class has Starttext, Endtext, Multiline, type, format properties of a Lexem.
Examples
// Initializing lexem
Lexem Lexem1 = new Lexem();
Lexem1.StartText = "/*";
Lexem1.EndText = "*/";
Lexem1.FormatName = "CommentType";
Constructors
Lexem()
Initializes a new instance of the Lexem class.
Declaration
public Lexem()
Properties
CheckParentLexemType
Declaration
public bool CheckParentLexemType { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ContainsEndText
Gets or sets a value indicating whether the ContainsEndText is true or false. This denotes whether this lexical element contains end value to be captured. By default it is set to false.
Declaration
public bool ContainsEndText { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | Type: System.Boolean |
EndBlockOnRecurrence
Declaration
public bool EndBlockOnRecurrence { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
EndText
Gets or sets the end text of a lexical element
Declaration
public string EndText { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | Type: System.String |
ExcludeItemInIntellisense
Declaration
public bool ExcludeItemInIntellisense { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
FormatName
Gets or sets the name of EditFormat object to be applied when this lexical element is captured
Declaration
public string FormatName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | Type: System.String |
Indent
Declaration
public bool Indent { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
IntellisenseDisplayText
Declaration
public string IntellisenseDisplayText { get; set; }
Property Value
| Type |
|---|
| System.String |
IsCollapsible
Declaration
public bool IsCollapsible { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
IsMultiline
Gets or sets a value indicating whether the IsMultiline is true or false. This property denotes whether this lexical element can last for multiple lines. By default it is set to false.
Declaration
public bool IsMultiline { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | Type: System.Boolean |
IsRegex
Gets or sets a value indicating whether the IsRegex is true or false. This denotes the Start and EndText properties contains Regex patterns. By default it is set to false.
Declaration
public bool IsRegex { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | Type: System.Boolean |
LexemType
Gets or sets type of lexem.
Declaration
public EditTokenType LexemType { get; set; }
Property Value
| Type | Description |
|---|---|
| EditTokenType | Type: Syncfusion.Windows.Edit.EditTokenType |
ParentLexemType
Declaration
public EditTokenType ParentLexemType { get; set; }
Property Value
| Type |
|---|
| EditTokenType |
ScopeLevel
Declaration
public ScopeLevel ScopeLevel { get; set; }
Property Value
| Type |
|---|
| ScopeLevel |
ShowAlternateIntellisenseText
Declaration
public bool ShowAlternateIntellisenseText { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
StartText
Gets or sets the start text of a lexical element.
Declaration
public string StartText { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | Type: System.String |
SubLexems
Gets the SubLexems collection for applying nested coloring of lexical elements
Declaration
public IEnumerable SubLexems { get; set; }
Property Value
| Type |
|---|
| System.Collections.IEnumerable |