C# Class AppKit.TextKit.Formatter.XMLDescriptor

Defines how XML should be colorized using a AppKit.TextKit.Formatter.LanguageFormatter.
This is a simplified, sample format provided as an example only. The HighlightSyntaxRegion method of the AppKit.TextKit.Formatter.LanguageFormatter would need to be modified to properly format XML Keywords as the current version was designed for languages like C#, JavaScript or Visual Basic.
Inheritance: LanguageDescriptor
Datei anzeigen Open project: xamarin/mac-samples

Public Methods

Method Description
Define ( ) : void

Define this instance.

FormatForPreview ( string text ) : string

Formats the passed in string of text for previewing.

XMLDescriptor ( ) : System

Initializes a new instance of the AppKit.TextKit.Formatter.XMLDescriptor class.

Method Details

Define() public method

Define this instance.
public Define ( ) : void
return void

FormatForPreview() public method

Formats the passed in string of text for previewing.
public FormatForPreview ( string text ) : string
text string Text.
return string

XMLDescriptor() public method

Initializes a new instance of the AppKit.TextKit.Formatter.XMLDescriptor class.
public XMLDescriptor ( ) : System
return System