Class LexemLine
Represents a class that contains the line of the lexems.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Edit.Implementation.Parser
Assembly: Syncfusion.Edit.Windows.dll
Syntax
public class LexemLine : UncachedLexemLine, IDisposable, IComparable, ILexemLine, IXMLDataProvider
Constructors
LexemLine(LexemParser, IParsePoint, ConfigStack)
Initializes a new instance of the LexemLine class.
Declaration
public LexemLine(LexemParser parser, IParsePoint pointLineStart, ConfigStack stack)
Parameters
Type | Name | Description |
---|---|---|
LexemParser | parser | Parent parser. |
IParsePoint | pointLineStart | ParsePoint of the line start. |
ConfigStack | stack | Stack at the beginning of the line. |
Properties
LineEndPoint
Gets ParsePoint at the end of the line.
Declaration
public override IParsePoint LineEndPoint { get; }
Property Value
Type |
---|
IParsePoint |
Overrides
Parsed
Gets or sets a value indicating whether line is parsed. If line is parsed, then LineEndStack property contains Stack for the end of the line and LineLexems collection contains all lexems, that belong to current line. If line was changed, than Parsed will be set to false.
Declaration
public override bool Parsed { get; set; }
Property Value
Type |
---|
System.Boolean |
Overrides
PointBeforeNewline
Gets ParsePoint that points to the position before newline.
Declaration
public IParsePoint PointBeforeNewline { get; }
Property Value
Type |
---|
IParsePoint |
Methods
AppendEndPartToXML(XmlTextWriter, Int32)
Helps to writes the end part of line to XML.
Declaration
public void AppendEndPartToXML(XmlTextWriter writer, int start)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlTextWriter | writer | XML writer, data must be written to. |
System.Int32 | start | Index of line column to start reading data from. |
AppendMiddlePartToXML(XmlTextWriter, Int32, Int32)
Helps to writes the middle part of line to XML.
Declaration
public void AppendMiddlePartToXML(XmlTextWriter writer, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlTextWriter | writer | XML writer, data must be written to. |
System.Int32 | start | Index of line column to start reading data from. |
System.Int32 | end | Index of line column to end reading data at. |
AppendStartPartToXML(XmlTextWriter, Int32)
Helps to writes the start part of line to XML.
Declaration
public void AppendStartPartToXML(XmlTextWriter writer, int end)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlTextWriter | writer | XML writer, data must be written to. |
System.Int32 | end | Index of line column to end reading data at. |
AppendToXML(XmlElement)
Helps to writes the 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 writes the data to xml.
Declaration
public void AppendToXML(XmlTextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlTextWriter | writer | XML writer, data must be written to. |
Dispose()
Clean up all the resources being used.
Declaration
public override void Dispose()
Overrides
DisposeEndPoint()
Frees LineEndPoint.
Declaration
protected void DisposeEndPoint()
DisposePointBeforeNewline()
Disposes m_positionBeforeNewLine: detaches all event handlers.
Declaration
protected void DisposePointBeforeNewline()
GetEndPoint()
Gets coordinate point that points to the end of the line.
Declaration
public CoordinatePoint GetEndPoint()
Returns
Type | Description |
---|---|
CoordinatePoint | Coordinate point of the end of the line. |
GetFirstNonWhitespaceLexem()
Gets first line lexem that is not whitespace.
Declaration
public Lexem GetFirstNonWhitespaceLexem()
Returns
Type | Description |
---|---|
Lexem | First line lexem that is not whitespace. |
GetFirstNonWitespaceLexem()
Gets first line lexem that is not whitespace.
Declaration
[Obsolete("GetFirstNonWitespaceLexem is deprecated, please use GetFirstNonWhitespaceLexem instead.")]
public Lexem GetFirstNonWitespaceLexem()
Returns
Type | Description |
---|---|
Lexem | First line lexem that is not whitespace. |
GetLineEndStack()
Gets stack at the end of line. Line will be reparsed.
Declaration
protected override ConfigStack GetLineEndStack()
Returns
Type | Description |
---|---|
ConfigStack | Stack at the end of line. It can be treated as start stack for the next line. |
Overrides
GetLineLexems()
Collection of all lexems, that belongs to the line. Line will be reparsed.
Declaration
protected IList GetLineLexems()
Returns
Type | Description |
---|---|
System.Collections.IList | List of line lexems. |
GetLineLexems(out Int64)
Collection of all lexems, that belongs to the line. Line will be reparsed.
Declaration
protected override IList GetLineLexems(out long lPositionBeforeNewLine)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | lPositionBeforeNewLine |
Returns
Type | Description |
---|---|
System.Collections.IList | List of line lexems. |
Overrides
GetStackByColumn(Int32)
Gets stack copy for the lexem at the specified column.
Declaration
public override ConfigStack GetStackByColumn(int column)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | column | Needed column. |
Returns
Type | Description |
---|---|
ConfigStack | Copy of the stack. |
Overrides
GetStartPoint()
Gets coordinate point that points to the start of the line.
Declaration
public CoordinatePoint GetStartPoint()
Returns
Type | Description |
---|---|
CoordinatePoint | Start point of line. |
WriteLexemsToXML(XmlTextWriter, Int32, Int32)
Helps to writes the specified lexems to XML.
Declaration
public void WriteLexemsToXML(XmlTextWriter writer, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlTextWriter | writer | XML writer, data must be written to. |
System.Int32 | start | Index of first lexem to write. |
System.Int32 | end | Index of last lexem to write. |
WriteStringToXML(XmlTextWriter, String, ISnippetFormat)
Helps to writes the string to XML.
Declaration
public void WriteStringToXML(XmlTextWriter writer, string text, ISnippetFormat format)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlTextWriter | writer | XML writer, data must be written to. |
System.String | text | string to write to XML. |
ISnippetFormat | format |