Share via


ThemeResourceKey Class

Represents a key used in a Resource Dictionary for accessing theme color resources. Theme color resources include brushes and colors associated with a given color category and color name.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Shell.ThemeResourceKey

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.Immutable.11.0 (in Microsoft.VisualStudio.Shell.Immutable.11.0.dll)

Syntax

'Declaration
Public NotInheritable Class ThemeResourceKey
public sealed class ThemeResourceKey
public ref class ThemeResourceKey sealed
[<Sealed>]
type ThemeResourceKey =  class end
public final class ThemeResourceKey

The ThemeResourceKey type exposes the following members.

Constructors

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

Top

Properties

  Name Description
Public property Category Gets the category associated with this key. A combination of the name, category, and key type uniquely identify the resource being referenced by this key.
Public property KeyType Gets the type of resource specified by this key. A combination of the name, category, and key type uniquely identify the resource being referenced by this key.
Public property Name Gets the name associated with this key. A combination of the name, category, and key type uniquely identify the resource being referenced by this key.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Overrides Object.Equals(Object).)
Public method GetHashCode Serves as a hash function for a particular type. (Overrides Object.GetHashCode.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

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.VisualStudio.Shell Namespace