TreeView for WinForms | ComponentOne
C1.Framework Namespace / Theme Class
Members

In This Topic
    Theme Class
    In This Topic
    Class that contains a keyed collection of Style objects and methods to serialize the styles into Xml files and streams.
    Object Model
    Theme ClassStyle Class
    Syntax
    'Declaration
     
    
    <d()>
    <DefaultMemberAttribute("Item")>
    <DebuggerTypeProxyAttribute(System.Collections.Generic.Mscorlib_KeyedCollectionDebugView`2)>
    <DebuggerDisplayAttribute("Count = {Count}")>
    Public Class Theme 
       Inherits System.Collections.ObjectModel.KeyedCollection(Of String,Style)
    [d()]
    [DefaultMember("Item")]
    [DebuggerTypeProxy(System.Collections.Generic.Mscorlib_KeyedCollectionDebugView`2)]
    [DebuggerDisplay("Count = {Count}")]
    public class Theme : System.Collections.ObjectModel.KeyedCollection<string,Style> 
    Remarks

    The Theme class is a named/keyed collection of Style objects.

    The class is designed to be used as a base class for components that need to add custom elements to themes in addition to a style collection.

    Inheritors should override the following methods:

    // specify the name of the component that will use this theme protected virtual string ComponentType // save component-specific elements to xml protected virtual void WriteCustomData(XmlWriter writer) // load component-specific elements from xml protected virtual void ReadCustomData(XmlNode node)
    Inheritance Hierarchy
    See Also