OSFeature.Themes 字段

表示操作系统的主题功能。此字段为只读。

**命名空间:**System.Windows.Forms
**程序集:**System.Windows.Forms(在 system.windows.forms.dll 中)

语法

声明
Public Shared ReadOnly Themes As Object
用法
Dim value As Object

value = OSFeature.Themes
public static readonly Object Themes
public:
static initonly Object^ Themes
public static final Object Themes
public static final var Themes : Object

备注

主题是一组可视界面设置,包括壁纸、光标、字体、声音和图标。这些是 Microsoft Plus! for Windows 95 最先引入的。.NET Framework 在 System.Windows.Forms.VisualStyles 命名空间中对视觉样式提供大量支持,但不直接支持对主题的操作。有关 Windows 主题的更多信息,请参见 Win32 SDK 中的主题“Themes and Visual Styles and Visual Styles Reference”(主题、视觉样式和视觉样式参考)。

若要确定是否安装了主题功能,请将 Themes 作为要查找的功能,调用基类方法 IsPresent

通过将 Themes 作为要查找的功能来调用 GetVersionPresent 方法,也可以检查是否安装了该功能。

平台

Windows 98、Windows 2000 SP4、Windows CE、Windows Millennium Edition、Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

OSFeature 类
OSFeature 成员
System.Windows.Forms 命名空间
IsPresent
GetVersionPresent
Feature