Interface ILexemLine
Provides the functionality for lexem line.
Namespace: Syncfusion.Windows.Forms.Edit.Interfaces
Assembly: Syncfusion.Edit.Windows.dll
Syntax
public interface ILexemLine
Properties
IsValid
Gets or sets a value indicating whether the line is valid or not. If line was already disposed, it is no longer valid.
Declaration
bool IsValid { get; }
Property Value
Type |
---|
System.Boolean |
LineEndPoint
Gets the parse point at the end of the line.
Declaration
IParsePoint LineEndPoint { get; }
Property Value
Type |
---|
IParsePoint |
LineEndStack
Gets the stack at the end of the line. If line was not parsed, it will be reparsed.
Declaration
ConfigStack LineEndStack { get; }
Property Value
Type |
---|
ConfigStack |
LineIndex
Gets the index of the line.
Declaration
int LineIndex { get; }
Property Value
Type |
---|
System.Int32 |
Remarks
It can be different from the one, stored in m_point because it also includes data from collapsing.
LineLength
Gets the length of the line.
Declaration
int LineLength { get; }
Property Value
Type |
---|
System.Int32 |
LineLexems
Gets the collection of all lexems, that belong to current line. If line was not parsed, it will be reparsed.
Declaration
IList LineLexems { get; }
Property Value
Type |
---|
System.Collections.IList |
LineStartPoint
Gets the parse point at the beginning of the line.
Declaration
IParsePoint LineStartPoint { get; }
Property Value
Type |
---|
IParsePoint |
LineStartStack
Gets the stack at the beginning of the line.
Declaration
ConfigStack LineStartStack { get; }
Property Value
Type |
---|
ConfigStack |
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, then Parsed will be set to false.
Declaration
bool Parsed { get; set; }
Property Value
Type |
---|
System.Boolean |
Parser
Gets the parser, to which the line belongs to.
Declaration
ILexemParser Parser { get; }
Property Value
Type |
---|
ILexemParser |
Methods
DeleteSelf()
Deletes self and raises LineDeleted event.
Declaration
void DeleteSelf()
FindLexemByColumn(Int32)
Searches lexem, that contains given column index.
Declaration
ILexem FindLexemByColumn(int column)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | column | Needed column. |
Returns
Type | Description |
---|---|
ILexem | Found lexem, or null if needed column is in virtual space. |
GetStackByColumn(Int32)
Gets stack copy for the lexem at the specified column.
Declaration
ConfigStack GetStackByColumn(int column)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | column | Needed column. |
Returns
Type | Description |
---|---|
ConfigStack | Copy of the stack. |
Events
LineDeleted
Occurs when line is deleted. If position of the LineStartPoint is changed, then line is invalid and must be deleted or LineStartPoint was deleted.
Declaration
event EventHandler LineDeleted
Event Type
Type |
---|
System.EventHandler |