Class Lexem
Represents a class that contains the rules for parsing text (one word/token).
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Edit.Implementation.Parser
Assembly: Syncfusion.Edit.Windows.dll
Syntax
public class Lexem : IEditableLexem, ILexem, IXMLDataProvider
Constructors
Lexem(String, IConfigLexem)
Initializes a new instance of the Lexem class.
Declaration
public Lexem(string text, IConfigLexem config)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | Text of the lexem. |
IConfigLexem | config | Configuration of the lexem. |
Properties
Collapser
Gets or sets the collapsible region, to which the lexems belongs to.
Declaration
public CollapsableRegion Collapser { get; set; }
Property Value
Type |
---|
CollapsableRegion |
Column
Gets or sets the column index whether the lexem starts in line.
Declaration
public int Column { get; set; }
Property Value
Type |
---|
System.Int32 |
Config
Gets or sets the configuration of the lexem. It also keeps it's format.
Declaration
public IConfigLexem Config { get; set; }
Property Value
Type |
---|
IConfigLexem |
Length
Gets the length of text.
Declaration
public virtual int Length { get; }
Property Value
Type |
---|
System.Int32 |
Text
Gets or sets the text of the lexem.
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |
Methods
AppendToXML(XmlElement)
Helps to append the lexem's data to xml.
Declaration
public void AppendToXML(XmlElement parent)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlElement | parent | Parent xml element, data must be written to. |
AppendToXML(XmlTextWriter)
Helps to append the lexem's data to xml.
Declaration
public void AppendToXML(XmlTextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlTextWriter | writer | XML writer, data must be written to. |