Click or drag to resize

XmlFormattingInfo Class

Provides formatting info for XML documents.
Inheritance Hierarchy
SystemObject
  Ookii.FormatCXmlFormattingInfo

Namespace:  Ookii.FormatC
Assembly:  Ookii.FormatC (in Ookii.FormatC.dll) Version: 2.1.0
Syntax
public class XmlFormattingInfo : IFormattingInfo

The XmlFormattingInfo type exposes the following members.

Constructors
  NameDescription
Public methodXmlFormattingInfo
Initializes a new instance of the XmlFormattingInfo class.
Top
Properties
  NameDescription
Public propertyCaseSensitive
Gets a value that indicates whether the language to be formatted is case sensitive.
Public propertyPatterns
Gets a list of regular expression patterns used to identify elements of the code.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

Because the XML formatter is regular expression based, it has some limitations.

The most important is that use of the > character as text (not part of an XML tag) is not handled correctly. If the > character occurs within an attribute value, any further attributes of that element will not be colored correctly. If the > character occurs in the text content of the document, it will be colored as an element delimiter.

To avoid these issues, we recommend that you encode the > character as > in XML documents that you wish to process with FormatC.

Thread Safety
Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.
See Also