WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FormatManager - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FormatManager

    Class which is responsible for creating formats.

    Inheritance
    System.Object
    FormatManager
    Implements
    System.IDisposable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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 Description
    System.String

    Properties

    Control

    Gets an instance of the control.

    Declaration
    public HTMLUIControl Control { get; }
    Property Value
    Type Description
    HTMLUIControl

    DefaultFormat

    Gets the default format of the control.

    Declaration
    public IHTMLFormat DefaultFormat { get; }
    Property Value
    Type Description
    IHTMLFormat

    Document

    Gets the XML storage of the CSS elements.

    Declaration
    public XmlDocument Document { get; }
    Property Value
    Type Description
    System.Xml.XmlDocument

    Formats

    Gets the collection of formats.

    Declaration
    public HTMLFormatsCollection Formats { get; }
    Property Value
    Type Description
    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
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved