Udostępnij za pośrednictwem


Options Page, Fonts and Colors Node Properties

This dialog box includes options that set the fonts and colors for a tool window that is registered to appear in the Fonts and Colorable Items dialog box. These windows are modeled this way rather than in the properties dialog box accessed from DTE.Properties("Environment", "FontsAndColors"). This supports the dynamic nature of groups of colorable items, which can change if Visual Studio packages are installed or uninstalled from the system.

The following section shows an example of a registered window type and the properties that you will see for each window.

Text Editor

DTE.Properties("FontsAndColors", "TextEditor")

-or-

DTE.Properties("FontsAndColors", "<SomeRegisteredWindowOrEditor>")

Where <SomeRegisteredWindowOrEditor> is the name of an alternative code editor.

Property Item Name

Value

Description

FontFamily

Get/Set (String)

The font name to use, such as "Courier New."

FontCharacterSet

Get/Set (vsFontCharSet)

A vsFontCharSet value, specifying the type of character set to use, such as Hebrew or Russian.

FontSize

Get/Set (Short)

The size of font to use, in points. For example, 10 or 12.

FontsAndColorsItems

Get (FontsAndColorsItems)

FontsAndColorsItems collection contains the ColorableItems objects and has the read-only property, Name, and read/write properties, Foreground (OLE.Color), Background (OLE.Color), and Bold (Boolean).

See Also

Concepts

Controlling Options Settings

Determining the Names of Property Items in Options Pages

Options Page, Environment Node Properties

Options Page, Text Editor Node Properties