Share via


IManagementUIService.Styles Property

Definition

Gets a list of user interface (UI) styles.

public:
 property System::Collections::IDictionary ^ Styles { System::Collections::IDictionary ^ get(); };
public System.Collections.IDictionary Styles { get; }
member this.Styles : System.Collections.IDictionary
Public ReadOnly Property Styles As IDictionary

Property Value

A list of UI styles.

Examples

The following example implements this property.

IDictionary IManagementUIService.Styles {
    get {
        if (_styles == null) {
            _styles = new Hashtable();

            Font iconTltFont = SystemFonts.IconTitleFont;
            float fs = iconTltFont.Size;
            string fName = iconTltFont.FontFamily.Name;

            _styles["DialogFont"] = iconTltFont;
            _styles["BoldDialogFont"] = new Font(iconTltFont, FontStyle.Bold);
            _styles["HeadingFont"] = new Font(fName, fs + 1f, FontStyle.Bold);
            _styles["HeaderTitleFont"] = new Font(fName, fs + 5f);
            _styles["ProColourTable"] = new ColourTblFactory.CustomProColourTbl(this);
        }

        return _styles;
    }
} 

Applies to