Class AutoFormattingManager
Represents a class that helps to manage text autoformatting in EditControl.
Inheritance
Inherited Members
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. |