Class FormatManager
Class which is responsible for creating formats.
Inheritance
System.Object
FormatManager
Implements
System.IDisposable
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.HTMLUI
Assembly: Syncfusion.HTMLUI.Windows.dll
Syntax
public class FormatManager : IDisposable
Constructors
FormatManager(HTMLUIControl)
Initializes a new instance of the FormatManager class
Declaration
public FormatManager(HTMLUIControl control)
Parameters
Type | Name | Description |
---|---|---|
HTMLUIControl | control | HTMLUI control |
Fields
DEF_STYLE_ATTR_FORMAT
Suffix name of the CSS in style attribute in HTML elements.
Declaration
public const string DEF_STYLE_ATTR_FORMAT = "_style"
Field Value
Type |
---|
System.String |
Properties
Control
Gets an instance of the control.
Declaration
public HTMLUIControl Control { get; }
Property Value
Type |
---|
HTMLUIControl |
DefaultFormat
Gets the default format of the control.
Declaration
public IHTMLFormat DefaultFormat { get; }
Property Value
Type |
---|
IHTMLFormat |
Document
Gets the XML storage of the CSS elements.
Declaration
public XmlDocument Document { get; }
Property Value
Type |
---|
System.Xml.XmlDocument |
Formats
Gets the collection of formats.
Declaration
public HTMLFormatsCollection Formats { get; }
Property Value
Type |
---|
HTMLFormatsCollection |
Methods
AppendCss(Stream)
Builds formats from specified Stream and merges XML documents.
Declaration
public void AppendCss(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | Source stream. |
AppendCss(String)
Overloaded. Builds formats from file with specified FileName and appends XML nodes to the existing XML document.
Declaration
public void AppendCss(string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | Path to the file with CSS. |
Dispose()
Clears all resources.
Declaration
public void Dispose()
LoadCss(Stream)
Builds formats from specified Stream.
Declaration
public void LoadCss(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | Source stream. |
LoadCss(String)
Overloaded. Builds formats from file with specified FileName.
Declaration
public void LoadCss(string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | Path to the file with CSS. |
MergeFormatsCollections(IList)
Merges formats.
Declaration
protected void MergeFormatsCollections(IList formats)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IList | formats | Collection of formats for merging. |
Implements
System.IDisposable