Class RenderedLexem
Represents a class that contains Lexem, that can be used for rendering.
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 RenderedLexem : Lexem, IEditableLexem, IXMLDataProvider, IRenderedLexem, ILexem
Constructors
RenderedLexem(String, IConfigLexem)
Initializes a new instance of the RenderedLexem class.
Declaration
public RenderedLexem(string text, IConfigLexem config)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | Text of the lexem. |
IConfigLexem | config | Config of the lexem. |
Properties
IsPartOfCharWrap
Get or set a value indicating whether the lexem is not independent, but is a part of lexem wrapped by char wrapping.
Declaration
public bool IsPartOfCharWrap { get; set; }
Property Value
Type |
---|
System.Boolean |
SubLine
Gets or sets zero-based index of the sub line, where lexem is drawn.
Declaration
public int SubLine { get; set; }
Property Value
Type |
---|
System.Int32 |
Width
Gets or sets width of the lexem.
Declaration
public float Width { get; set; }
Property Value
Type |
---|
System.Single |
XOffset
Gets or sets X offset of the lexem. Relative to the lexem's sub line.
Declaration
public float XOffset { get; set; }
Property Value
Type |
---|
System.Single |
YOffset
Gets or sets Y offset of the lexem.
Declaration
public float YOffset { get; set; }
Property Value
Type |
---|
System.Single |
Methods
Unite(RenderedLexem)
Helps to unites two lexems (adds 'lexem' to current).
Declaration
public ILexem Unite(RenderedLexem lexem)
Parameters
Type | Name | Description |
---|---|---|
RenderedLexem | lexem | Lexem that has to be added. |
Returns
Type | Description |
---|---|
ILexem | Result lexem. |