menu

WinForms

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

    Show / Hide Table of Contents

    Class AutoFormattingManager

    Represents a class that helps to manage text autoformatting in EditControl.

    Inheritance
    System.Object
    AutoFormattingManager
    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.Utils.AutoFormatting
    Assembly: Syncfusion.Edit.Windows.dll
    Syntax
    public class AutoFormattingManager

    Constructors

    AutoFormattingManager()

    Initializes a new instance of the AutoFormattingManager class.

    Declaration
    public AutoFormattingManager()

    AutoFormattingManager(LexemParser)

    Initializes a new instance of the AutoFormattingManager class.

    Declaration
    public AutoFormattingManager(LexemParser parser)
    Parameters
    Type Name Description
    LexemParser parser

    Underlying lexem parser.

    Properties

    Parser

    Gets or sets instance of the underlying parser.

    Declaration
    public LexemParser Parser { get; set; }
    Property Value
    Type
    LexemParser

    Methods

    FormatText(IParsePoint, IParsePoint)

    Formats the given range of text using registered language formatter. Range limits can be changed. If there's no formatter registered for the language, throws an exception.

    Declaration
    public string FormatText(IParsePoint startPoint, IParsePoint endPoint)
    Parameters
    Type Name Description
    IParsePoint startPoint

    Start point of text range to format.

    IParsePoint endPoint

    End point of text range to format.

    Returns
    Type Description
    System.String

    String with formatted text.

    RegisterFormatter(KnownLanguages, IAutoFormatter)

    Registers a new formatter for specified language in EditControl.

    Declaration
    public void RegisterFormatter(KnownLanguages lang, IAutoFormatter formatter)
    Parameters
    Type Name Description
    KnownLanguages lang

    Language to register formatter for.

    IAutoFormatter formatter

    IAutoFormatter instance.

    UnregisterFormatter(KnownLanguages)

    Unregisters formatter for specified language in EditControl.

    Declaration
    public void UnregisterFormatter(KnownLanguages lang)
    Parameters
    Type Name Description
    KnownLanguages lang

    Language to unregister formatter for.

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