Partilhar via


Theme Class

Applies to v2.

Represents the theme used in the editor.

Inheritance Hierarchy

System.Object
  Microsoft.WebMatrix.Extensibility.Editor.Theme

Namespace:  Microsoft.WebMatrix.Extensibility.Editor
Assembly:  Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)

Syntax

'Declaration
Public Class Theme _
    Implements ITheme
'Usage
Dim instance As Theme
public class Theme : ITheme
public ref class Theme : ITheme
type Theme =  
    class 
        interface ITheme 
    end
public class Theme implements ITheme

The Theme type exposes the following members.

Constructors

  Name Description
Public method Theme Initializes a new instance of the Theme class.

Top

Properties

  Name Description
Public property CollapsedTextBackgroundBrush Gets or sets the color for the text background of the theme.
Public property DefaultFormat Gets or sets the format data which is the default format for the theme.
Public property Formats Gets or sets the theme formats with specified format data.
Public propertyStatic member GlobalSettingKeys Gets or sets the global setting keys used in the theme.
Protected property InactiveSelectionFormat Gets the inactive selection format for the theme with specified format data.
Public property Name Gets or sets the name of the theme.
Protected property SelectionFormat Gets the selection format for the theme with specified format data.
Public property SurfaceBackgroundBrush Gets or sets the color for the surface background of the theme.
Protected property VisibleWhiteSpace Gets or sets the visibility of the objects in the theme.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetFormatData Gets the format data for the theme.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Load Loads a theme.
Public method LoadFromFile Load a theme from a specified file.
Protected method MemberwiseClone (Inherited from Object.)
Public method SaveToFile Saves a theme to a specified file.
Public method ToString (Inherited from Object.)
Public method ToXml Returns the XML representation of a theme.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate property ITheme.Formats Gets the theme formats with specified format data.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.WebMatrix.Extensibility.Editor Namespace