menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Lexem - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Lexem

    Represents a class that contains the rules for parsing text (one word/token).

    Inheritance
    System.Object
    Lexem
    RenderedLexem
    Implements
    ILexem
    IXMLDataProvider
    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.

    Implements

    ILexem
    IXMLDataProvider
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved