SystemInformation SystemInformation SystemInformation SystemInformation Class

定义

提供当前系统环境的有关信息。Provides information about the current system environment.

public ref class SystemInformation
public class SystemInformation
type SystemInformation = class
Public Class SystemInformation
继承
SystemInformationSystemInformationSystemInformationSystemInformation

示例

下面的代码示例列出了SystemInformation ListBox中的类的所有属性, 并在选定列表项TextBox时显示中的属性的当前值。The following code example lists all properties of the SystemInformation class in a ListBox and displays the current value of the property in a TextBox when a list item selected.

#using <System.Windows.Forms.dll>
#using <System.Drawing.dll>
#using <System.dll>

using namespace System;
using namespace System::Collections;
using namespace System::ComponentModel;
using namespace System::Drawing;
using namespace System::Reflection;
using namespace System::Windows::Forms;
public ref class SystemInfoBrowserForm: public System::Windows::Forms::Form
{
private:
   System::Windows::Forms::ListBox^ listBox1;
   System::Windows::Forms::TextBox^ textBox1;

public:
   SystemInfoBrowserForm()
   {
      this->SuspendLayout();
      InitForm();
      
      // Add each property of the SystemInformation class to the list box.
      Type^ t = System::Windows::Forms::SystemInformation::typeid;
      array<PropertyInfo^>^pi = t->GetProperties();
      for ( int i = 0; i < pi->Length; i++ )
         listBox1->Items->Add( pi[ i ]->Name );
      textBox1->Text = String::Format( "The SystemInformation class has {0} properties.\r\n", pi->Length );
      
      // Configure the list item selected handler for the list box to invoke a 
      // method that displays the value of each property.
      listBox1->SelectedIndexChanged += gcnew EventHandler( this, &SystemInfoBrowserForm::listBox1_SelectedIndexChanged );
      this->ResumeLayout( false );
   }


private:
   void listBox1_SelectedIndexChanged( Object^ /*sender*/, EventArgs^ /*e*/ )
   {
      
      // Return if no list item is selected.
      if ( listBox1->SelectedIndex == -1 )
            return;

      
      // Get the property name from the list item.
      String^ propname = listBox1->Text;
      if ( propname->Equals( "PowerStatus" ) )
      {
         
         // Cycle and display the values of each property of the PowerStatus property.
         textBox1->Text = String::Concat( textBox1->Text, "\r\nThe value of the PowerStatus property is:" );
         Type^ t = System::Windows::Forms::PowerStatus::typeid;
         array<PropertyInfo^>^pi = t->GetProperties();
         for ( int i = 0; i < pi->Length; i++ )
         {
            Object^ propval = pi[ i ]->GetValue( SystemInformation::PowerStatus, nullptr );
            textBox1->Text = String::Format( "{0}\r\n    PowerStatus.{1} is: {2}", textBox1->Text, pi[ i ]->Name, propval );

         }
      }
      else
      {
         
         // Display the value of the selected property of the SystemInformation type.
         Type^ t = System::Windows::Forms::SystemInformation::typeid;
         array<PropertyInfo^>^pi = t->GetProperties();
         PropertyInfo^ prop = nullptr;
         for ( int i = 0; i < pi->Length; i++ )
            if ( pi[ i ]->Name == propname )
            {
               prop = pi[ i ];
               break;
            }
         Object^ propval = prop->GetValue( nullptr, nullptr );
         textBox1->Text = String::Format( "{0}\r\nThe value of the {1} property is: {2}", textBox1->Text, propname, propval );
      }
   }

   void InitForm()
   {
      
      // Initialize the form settings
      this->listBox1 = gcnew System::Windows::Forms::ListBox;
      this->textBox1 = gcnew System::Windows::Forms::TextBox;
      this->listBox1->Anchor = (System::Windows::Forms::AnchorStyles)(System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left | System::Windows::Forms::AnchorStyles::Right);
      this->listBox1->Location = System::Drawing::Point( 8, 16 );
      this->listBox1->Size = System::Drawing::Size( 172, 496 );
      this->listBox1->TabIndex = 0;
      this->textBox1->Anchor = (System::Windows::Forms::AnchorStyles)(System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Right);
      this->textBox1->Location = System::Drawing::Point( 188, 16 );
      this->textBox1->Multiline = true;
      this->textBox1->ScrollBars = System::Windows::Forms::ScrollBars::Vertical;
      this->textBox1->Size = System::Drawing::Size( 420, 496 );
      this->textBox1->TabIndex = 1;
      this->ClientSize = System::Drawing::Size( 616, 525 );
      this->Controls->Add( this->textBox1 );
      this->Controls->Add( this->listBox1 );
      this->Text = "Select a SystemInformation property to get the value of";
   }

};


[STAThread]
int main()
{
   Application::Run( gcnew SystemInfoBrowserForm );
}

using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Reflection;
using System.Windows.Forms;

namespace SystemInfoBrowser
{
    public class SystemInfoBrowserForm : System.Windows.Forms.Form
    {
        private System.Windows.Forms.ListBox listBox1;
        private System.Windows.Forms.TextBox textBox1;        
        
        public SystemInfoBrowserForm()
	    {
            this.SuspendLayout();
            InitForm();
            
            // Add each property of the SystemInformation class to the list box.
            Type t = typeof(System.Windows.Forms.SystemInformation);            
            PropertyInfo[] pi = t.GetProperties();            
            for( int i=0; i<pi.Length; i++ )
                listBox1.Items.Add( pi[i].Name );            
            textBox1.Text = "The SystemInformation class has "+pi.Length.ToString()+" properties.\r\n";

            // Configure the list item selected handler for the list box to invoke a 
            // method that displays the value of each property.
            listBox1.SelectedIndexChanged += new EventHandler(listBox1_SelectedIndexChanged);
            this.ResumeLayout(false);
	    }
		
        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            // Return if no list item is selected.
            if( listBox1.SelectedIndex == -1 ) return;
            // Get the property name from the list item.
            string propname = listBox1.Text;
            
            if( propname == "PowerStatus" )
            {
                // Cycle and display the values of each property of the PowerStatus property.
                textBox1.Text += "\r\nThe value of the PowerStatus property is:";                                
                Type t = typeof(System.Windows.Forms.PowerStatus);
                PropertyInfo[] pi = t.GetProperties();            
                for( int i=0; i<pi.Length; i++ )
                {
                    object propval = pi[i].GetValue(SystemInformation.PowerStatus, null);            
                    textBox1.Text += "\r\n    PowerStatus."+pi[i].Name+" is: "+propval.ToString();
                }
            }
            else
            {
                // Display the value of the selected property of the SystemInformation type.
                Type t = typeof(System.Windows.Forms.SystemInformation);
                PropertyInfo[] pi = t.GetProperties();            
                PropertyInfo prop = null;
                for( int i=0; i<pi.Length; i++ )
                    if( pi[i].Name == propname )
                    {
                        prop = pi[i];
                        break;           
                    }
                object propval = prop.GetValue(null, null);            
                textBox1.Text += "\r\nThe value of the "+propname+" property is: "+propval.ToString();
            }
        }

        private void InitForm()
        {
            // Initialize the form settings
            this.listBox1 = new System.Windows.Forms.ListBox();
            this.textBox1 = new System.Windows.Forms.TextBox();            
            this.listBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
                | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
            this.listBox1.Location = new System.Drawing.Point(8, 16);
            this.listBox1.Size = new System.Drawing.Size(172, 496);
            this.listBox1.TabIndex = 0;            
            this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
                | System.Windows.Forms.AnchorStyles.Right)));
            this.textBox1.Location = new System.Drawing.Point(188, 16);
            this.textBox1.Multiline = true;
            this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;           
            this.textBox1.Size = new System.Drawing.Size(420, 496);
            this.textBox1.TabIndex = 1;            
            this.ClientSize = new System.Drawing.Size(616, 525);            
            this.Controls.Add(this.textBox1);
            this.Controls.Add(this.listBox1);            
            this.Text = "Select a SystemInformation property to get the value of";                   
        }

        [STAThread]
        static void Main() 
        {
            Application.Run(new SystemInfoBrowserForm());
        }
    }
}
Imports Microsoft.VisualBasic
Imports System
Imports System.Collections
Imports System.ComponentModel
Imports System.Drawing
Imports System.Reflection
Imports System.Windows.Forms

Public Class SystemInfoBrowserForm
    Inherits System.Windows.Forms.Form
    
    Private listBox1 As System.Windows.Forms.ListBox
    Private textBox1 As System.Windows.Forms.TextBox  
    
    Public Sub New()
        Me.SuspendLayout()
        InitForm()
        
        ' Add each property of the SystemInformation class to the list box.
        Dim t As Type = GetType(System.Windows.Forms.SystemInformation)
        Dim pi As PropertyInfo() = t.GetProperties()
        Dim i As Integer
        For i = 0 To pi.Length - 1
            listBox1.Items.Add(pi(i).Name)
        Next i
        textBox1.Text = "The SystemInformation class has " + pi.Length.ToString() + " properties." + ControlChars.CrLf
        
        ' Configure the list item selected handler for the list box to invoke a 
        ' method that displays the value of each property.
        AddHandler listBox1.SelectedIndexChanged, AddressOf listBox1_SelectedIndexChanged
        
        Me.ResumeLayout(False)
    End Sub    
    
    Private Sub listBox1_SelectedIndexChanged(sender As Object, e As EventArgs)
        ' Return if no list item is selected.
        If listBox1.SelectedIndex = - 1 Then
            Return
        End If         
        ' Get the property name from the list item.
        Dim propname As String = listBox1.Text
        
        If propname = "PowerStatus" Then
            ' Cycle and display the values of each property of the PowerStatus property.
            textBox1.Text += ControlChars.CrLf + "The value of the PowerStatus property is:"
            Dim t As Type = GetType(System.Windows.Forms.PowerStatus)
            Dim pi As PropertyInfo() = t.GetProperties()
            Dim i As Integer
            For i = 0 To pi.Length - 1
                Dim propval As Object = pi(i).GetValue(SystemInformation.PowerStatus, Nothing)
                textBox1.Text += ControlChars.CrLf + "    PowerStatus." + pi(i).Name + " is: " + propval.ToString()
            Next i
        Else
            ' Display the value of the selected property of the SystemInformation type.
            Dim t As Type = GetType(System.Windows.Forms.SystemInformation)
            Dim pi As PropertyInfo() = t.GetProperties()
            Dim prop As PropertyInfo = Nothing
            Dim i As Integer
            For i = 0 To pi.Length - 1
                If pi(i).Name = propname Then
                    prop = pi(i)
                    Exit For
                End If
            Next i
            Dim propval As Object = prop.GetValue(Nothing, Nothing)
            textBox1.Text += ControlChars.CrLf + "The value of the " + propname + " property is: " + propval.ToString()
        End If
    End Sub    
    
    Private Sub InitForm()
        ' Initialize the form settings
        Me.listBox1 = New System.Windows.Forms.ListBox()
        Me.textBox1 = New System.Windows.Forms.TextBox()
        Me.listBox1.Anchor = CType(System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left Or System.Windows.Forms.AnchorStyles.Right, System.Windows.Forms.AnchorStyles)
        Me.listBox1.Location = New System.Drawing.Point(8, 16)
        Me.listBox1.Size = New System.Drawing.Size(172, 496)
        Me.listBox1.TabIndex = 0
        Me.textBox1.Anchor = CType(System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right, System.Windows.Forms.AnchorStyles)
        Me.textBox1.Location = New System.Drawing.Point(188, 16)
        Me.textBox1.Multiline = True
        Me.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
        Me.textBox1.Size = New System.Drawing.Size(420, 496)
        Me.textBox1.TabIndex = 1
        Me.ClientSize = New System.Drawing.Size(616, 525)
        Me.Controls.Add(Me.textBox1)
        Me.Controls.Add(Me.listBox1)
        Me.Text = "Select a SystemInformation property to get the value of"
    End Sub
        
    <STAThread()>  _
    Shared Sub Main()
        Application.Run(New SystemInfoBrowserForm())
    End Sub

End Class

注解

SystemInformation类提供static的属性可用于获取有关当前系统环境的信息。The SystemInformation class provides static properties that can be used to get information about the current system environment. 类提供对信息的访问, 例如 Windows 显示元素大小、操作系统设置、网络可用性以及系统上安装的硬件功能。The class provides access to information such as Windows display element sizes, operating system settings, network availability, and the capabilities of hardware installed on the system. 此类无法实例化。This class cannot be instantiated.

有关系统范围内参数的详细信息, 请参阅中的平台 SDK 文档http://msdn.microsoft.com中的 "SystemParametersInfo"。For more information about system-wide parameters, see "SystemParametersInfo" in the Platform SDK documentation at http://msdn.microsoft.com.

属性

ActiveWindowTrackingDelay ActiveWindowTrackingDelay ActiveWindowTrackingDelay ActiveWindowTrackingDelay

获取活动窗口跟踪延迟。Gets the active window tracking delay.

ArrangeDirection ArrangeDirection ArrangeDirection ArrangeDirection

获取一个值,该值指示操作系统排列最小化窗口的方向。Gets a value that indicates the direction in which the operating system arranges minimized windows.

ArrangeStartingPosition ArrangeStartingPosition ArrangeStartingPosition ArrangeStartingPosition

获取一个 ArrangeStartingPosition 值,该值指示操作系统排列最小化窗口的起始位置。Gets an ArrangeStartingPosition value that indicates the starting position from which the operating system arranges minimized windows.

BootMode BootMode BootMode BootMode

获取一个 BootMode 值,该值指示系统启动的启动模式。Gets a BootMode value that indicates the boot mode the system was started in.

Border3DSize Border3DSize Border3DSize Border3DSize

获取三维 (3-D) 样式窗口或系统控件边框的粗细(以像素为单位)。Gets the thickness, in pixels, of a three-dimensional (3-D) style window or system control border.

BorderMultiplierFactor BorderMultiplierFactor BorderMultiplierFactor BorderMultiplierFactor

获取边框倍数因子,该倍数因子在确定窗口的大小调整边框的粗细时使用。Gets the border multiplier factor that is used when determining the thickness of a window's sizing border.

BorderSize BorderSize BorderSize BorderSize

获取平面样式窗口边框或系统控件边框的粗细(以像素为单位)。Gets the thickness, in pixels, of a flat-style window or system control border.

CaptionButtonSize CaptionButtonSize CaptionButtonSize CaptionButtonSize

取窗口标题栏中按钮的标准尺寸(以像素为单位)。Gets the standard size, in pixels, of a button in a window's title bar.

CaptionHeight CaptionHeight CaptionHeight CaptionHeight

获取窗口的标准标题栏区域的高度(以像素为单位)。Gets the height, in pixels, of the standard title bar area of a window.

CaretBlinkTime CaretBlinkTime CaretBlinkTime CaretBlinkTime

获取插入符号闪烁时间。Gets the caret blink time.

CaretWidth CaretWidth CaretWidth CaretWidth

获取编辑控件中插入符号的宽度,以像素为单位。Gets the width, in pixels, of the caret in edit controls.

ComputerName ComputerName ComputerName ComputerName

获取本地计算机的 NetBIOS 计算机名称。Gets the NetBIOS computer name of the local computer.

CursorSize CursorSize CursorSize CursorSize

获取光标能够占用的最大大小(以像素为单位)。Gets the maximum size, in pixels, that a cursor can occupy.

DbcsEnabled DbcsEnabled DbcsEnabled DbcsEnabled

获取一个值,该值指示操作系统能否处理双字节字符集 (DBCS) 的字符。Gets a value indicating whether the operating system is capable of handling double-byte character set (DBCS) characters.

DebugOS DebugOS DebugOS DebugOS

获取一个值,该值指示是否已安装调试版本的 USER.EXE。Gets a value indicating whether the debug version of USER.EXE is installed.

DoubleClickSize DoubleClickSize DoubleClickSize DoubleClickSize

获取如下区域的尺寸(以像素为单位):用户必须在此区域内单击两次,操作系统才将这两次单击视为一次双击。Gets the dimensions, in pixels, of the area within which the user must click twice for the operating system to consider the two clicks a double-click.

DoubleClickTime DoubleClickTime DoubleClickTime DoubleClickTime

获取要使操作系统将鼠标操作视为双击,第一次单击与第二次单击之间可以经过的最大毫秒数。Gets the maximum number of milliseconds that can elapse between a first click and a second click for the OS to consider the mouse action a double-click.

DragFullWindows DragFullWindows DragFullWindows DragFullWindows

获取一个值,该值指示用户是否已启用全窗口拖动。Gets a value indicating whether the user has enabled full window drag.

DragSize DragSize DragSize DragSize

获取以鼠标按钮的按下点为中心的矩形的宽度和高度,在该矩形内不会开始拖动操作。Gets the width and height of a rectangle centered on the point the mouse button was pressed, within which a drag operation will not begin.

FixedFrameBorderSize FixedFrameBorderSize FixedFrameBorderSize FixedFrameBorderSize

获取具有标题但不可调整大小的窗口的边框粗细(以像素为单位)。Gets the thickness, in pixels, of the frame border of a window that has a caption and is not resizable.

FontSmoothingContrast FontSmoothingContrast FontSmoothingContrast FontSmoothingContrast

获取 ClearType 平滑设置中使用的字体平滑显示对比度值。Gets the font smoothing contrast value used in ClearType smoothing.

FontSmoothingType FontSmoothingType FontSmoothingType FontSmoothingType

获取当前的字体平滑显示类型。Gets the current type of font smoothing.

FrameBorderSize FrameBorderSize FrameBorderSize FrameBorderSize

获取在正拖动调整大小的窗口周围绘制的大小调整边框的粗细(以像素为单位)。Gets the thickness, in pixels, of the resizing border that is drawn around the perimeter of a window that is being drag resized.

HighContrast HighContrast HighContrast HighContrast

获取一个值,该值指示用户是否已启用高对比度模式辅助功能。Gets a value indicating whether the user has enabled the high-contrast mode accessibility feature.

HorizontalFocusThickness HorizontalFocusThickness HorizontalFocusThickness HorizontalFocusThickness

获取系统聚焦框的左右边缘的粗细,以像素为单位。Gets the thickness of the left and right edges of the system focus rectangle, in pixels.

HorizontalResizeBorderThickness HorizontalResizeBorderThickness HorizontalResizeBorderThickness HorizontalResizeBorderThickness

获取被调整窗口的外围调整边框左右边缘的粗细(以像素为单位)。Gets the thickness of the left and right edges of the sizing border around the perimeter of a window being resized, in pixels.

HorizontalScrollBarArrowWidth HorizontalScrollBarArrowWidth HorizontalScrollBarArrowWidth HorizontalScrollBarArrowWidth

获取水平滚动条上箭头位图的宽度(以像素为单位)。Gets the width, in pixels, of the arrow bitmap on the horizontal scroll bar.

HorizontalScrollBarHeight HorizontalScrollBarHeight HorizontalScrollBarHeight HorizontalScrollBarHeight

获取水平滚动条的默认高度(以像素为单位)。Gets the default height, in pixels, of the horizontal scroll bar.

HorizontalScrollBarThumbWidth HorizontalScrollBarThumbWidth HorizontalScrollBarThumbWidth HorizontalScrollBarThumbWidth

获取水平滚动条中滚动框的宽度(以像素为单位)。Gets the width, in pixels, of the scroll box in a horizontal scroll bar.

IconHorizontalSpacing IconHorizontalSpacing IconHorizontalSpacing IconHorizontalSpacing

获取大图标视图中图标排列单元格的宽度,以像素为单位。Gets the width, in pixels, of an icon arrangement cell in large icon view.

IconSize IconSize IconSize IconSize

获取 Windows 默认程序图标大小的尺寸(以像素为单位)。Gets the dimensions, in pixels, of the Windows default program icon size.

IconSpacingSize IconSpacingSize IconSpacingSize IconSpacingSize

获取用于在大图标视图中排列图标的网格方形的尺寸(以像素为单位)。Gets the size, in pixels, of the grid square used to arrange icons in a large-icon view.

IconVerticalSpacing IconVerticalSpacing IconVerticalSpacing IconVerticalSpacing

获取大图标视图中图标排列单元格的高度,以像素为单位。Gets the height, in pixels, of an icon arrangement cell in large icon view.

IsActiveWindowTrackingEnabled IsActiveWindowTrackingEnabled IsActiveWindowTrackingEnabled IsActiveWindowTrackingEnabled

获取一个值,该值指示是否启用活动窗口跟踪。Gets a value indicating whether active window tracking is enabled.

IsComboBoxAnimationEnabled IsComboBoxAnimationEnabled IsComboBoxAnimationEnabled IsComboBoxAnimationEnabled

获取一个值,该值指示是否启用组合框的滑动打开效果。Gets a value indicating whether the slide-open effect for combo boxes is enabled.

IsDropShadowEnabled IsDropShadowEnabled IsDropShadowEnabled IsDropShadowEnabled

获取一个值,该值指示是否已启用投影效果。Gets a value indicating whether the drop shadow effect is enabled.

IsFlatMenuEnabled IsFlatMenuEnabled IsFlatMenuEnabled IsFlatMenuEnabled

获取一个值,该值指示本机用户菜单是否具有平面菜单外观。Gets a value indicating whether native user menus have a flat menu appearance.

IsFontSmoothingEnabled IsFontSmoothingEnabled IsFontSmoothingEnabled IsFontSmoothingEnabled

获取一个值,该值指示是否已启用字体平滑。Gets a value indicating whether font smoothing is enabled.

IsHotTrackingEnabled IsHotTrackingEnabled IsHotTrackingEnabled IsHotTrackingEnabled

获取一个值,该值指示是否启用对用户界面元素(如菜单栏上的菜单名)的热跟踪。Gets a value indicating whether hot tracking of user-interface elements, such as menu names on menu bars, is enabled.

IsIconTitleWrappingEnabled IsIconTitleWrappingEnabled IsIconTitleWrappingEnabled IsIconTitleWrappingEnabled

获取一个值,该值指示是否已启用图标标题换行。Gets a value indicating whether icon-title wrapping is enabled.

IsKeyboardPreferred IsKeyboardPreferred IsKeyboardPreferred IsKeyboardPreferred

获取一个值,该值指示用户是否依赖键盘而不是依赖鼠标,以及是否更希望应用程序显示在其他情况下隐藏的键盘界面。Gets a value indicating whether the user relies on the keyboard instead of the mouse, and prefers applications to display keyboard interfaces that would otherwise be hidden.

IsListBoxSmoothScrollingEnabled IsListBoxSmoothScrollingEnabled IsListBoxSmoothScrollingEnabled IsListBoxSmoothScrollingEnabled

获取一个值,该值指示是否启用列表框的平滑滚动效果。Gets a value indicating whether the smooth-scrolling effect for list boxes is enabled.

IsMenuAnimationEnabled IsMenuAnimationEnabled IsMenuAnimationEnabled IsMenuAnimationEnabled

获取一个值,该值指示是否启用菜单淡出或滑动动画功能。Gets a value indicating whether menu fade or slide animation features are enabled.

IsMenuFadeEnabled IsMenuFadeEnabled IsMenuFadeEnabled IsMenuFadeEnabled

获取一个值,该值指示是否启用菜单淡出动画。Gets a value indicating whether menu fade animation is enabled.

IsMinimizeRestoreAnimationEnabled IsMinimizeRestoreAnimationEnabled IsMinimizeRestoreAnimationEnabled IsMinimizeRestoreAnimationEnabled

获取一个值,该值指示是否启用窗口最小化和还原动画。Gets a value indicating whether window minimize and restore animation is enabled.

IsSelectionFadeEnabled IsSelectionFadeEnabled IsSelectionFadeEnabled IsSelectionFadeEnabled

获取一个值,该值指示是否启用选择淡出效果。Gets a value indicating whether the selection fade effect is enabled.

IsSnapToDefaultEnabled IsSnapToDefaultEnabled IsSnapToDefaultEnabled IsSnapToDefaultEnabled

获取一个值,该值指示是否启用转至默认按钮功能。Gets a value indicating whether the snap-to-default-button feature is enabled.

IsTitleBarGradientEnabled IsTitleBarGradientEnabled IsTitleBarGradientEnabled IsTitleBarGradientEnabled

获取一个值,该值指示是否启用窗口标题栏的渐变效果。Gets a value indicating whether the gradient effect for window title bars is enabled.

IsToolTipAnimationEnabled IsToolTipAnimationEnabled IsToolTipAnimationEnabled IsToolTipAnimationEnabled

获取一个值,该值指示是否已启用 ToolTip 动画。Gets a value indicating whether ToolTip animation is enabled.

KanjiWindowHeight KanjiWindowHeight KanjiWindowHeight KanjiWindowHeight

为 Windows 的双字节字符集 (DBCS) 版本获取屏幕底部的 Kanji 窗口的高度(以像素为单位)。Gets the height, in pixels, of the Kanji window at the bottom of the screen for double-byte character set (DBCS) versions of Windows.

KeyboardDelay KeyboardDelay KeyboardDelay KeyboardDelay

获取键盘重复延迟设置。Gets the keyboard repeat-delay setting.

KeyboardSpeed KeyboardSpeed KeyboardSpeed KeyboardSpeed

获取键盘重复速度设置。Gets the keyboard repeat-speed setting.

MaxWindowTrackSize MaxWindowTrackSize MaxWindowTrackSize MaxWindowTrackSize

获取窗口的默认最大尺寸(以像素为单位),该窗口具有标题和可调整大小的边框。Gets the default maximum dimensions, in pixels, of a window that has a caption and sizing borders.

MenuAccessKeysUnderlined MenuAccessKeysUnderlined MenuAccessKeysUnderlined MenuAccessKeysUnderlined

获取一个值,该值指示菜单访问键是否始终带下划线。Gets a value indicating whether menu access keys are always underlined.

MenuBarButtonSize MenuBarButtonSize MenuBarButtonSize MenuBarButtonSize

获取菜单栏按钮的默认宽度和菜单栏的高度,均以像素为单位。Gets the default width, in pixels, for menu-bar buttons and the height, in pixels, of a menu bar.

MenuButtonSize MenuButtonSize MenuButtonSize MenuButtonSize

获取菜单栏按钮的默认尺寸(以像素为单位)。Gets the default dimensions, in pixels, of menu-bar buttons.

MenuCheckSize MenuCheckSize MenuCheckSize MenuCheckSize

获取菜单选中标记区域的默认大小的尺寸(以像素为单位)。Gets the dimensions, in pixels, of the default size of a menu check mark area.

MenuFont MenuFont MenuFont MenuFont

获取用于在菜单上显示文本的字体。Gets the font used to display text on menus.

MenuHeight MenuHeight MenuHeight MenuHeight

获取一个菜单行的高度(以像素为单位)。Gets the height, in pixels, of one line of a menu.

MenuShowDelay MenuShowDelay MenuShowDelay MenuShowDelay

获取鼠标光标位于子菜单项上时系统等待显示一个层叠快捷菜单的时间,以毫秒为单位。Gets the time, in milliseconds, that the system waits before displaying a cascaded shortcut menu when the mouse cursor is over a submenu item.

MidEastEnabled MidEastEnabled MidEastEnabled MidEastEnabled

获取一个值,该值指示操作系统是否可使用希伯来语和阿拉伯语。Gets a value indicating whether the operating system is enabled for the Hebrew and Arabic languages.

MinimizedWindowSize MinimizedWindowSize MinimizedWindowSize MinimizedWindowSize

获取正常的最小化窗口的尺寸(以像素为单位)。Gets the dimensions, in pixels, of a normal minimized window.

MinimizedWindowSpacingSize MinimizedWindowSpacingSize MinimizedWindowSpacingSize MinimizedWindowSpacingSize

获取排列最小化窗口时分配给每个最小化窗口的区域的尺寸(以像素为单位)。Gets the dimensions, in pixels, of the area each minimized window is allocated when arranged.

MinimumWindowSize MinimumWindowSize MinimumWindowSize MinimumWindowSize

获取窗口的最小宽度和高度(以像素为单位)。Gets the minimum width and height for a window, in pixels.

MinWindowTrackSize MinWindowTrackSize MinWindowTrackSize MinWindowTrackSize

获取在拖动调整大小过程中窗口可能占用的默认最小尺寸(以像素为单位)。Gets the default minimum dimensions, in pixels, that a window may occupy during a drag resize.

MonitorCount MonitorCount MonitorCount MonitorCount

获取桌面上显示监视器的数目。Gets the number of display monitors on the desktop.

MonitorsSameDisplayFormat MonitorsSameDisplayFormat MonitorsSameDisplayFormat MonitorsSameDisplayFormat

获取一个值,该值指示是否所有显示监视器都使用相同的像素颜色格式。Gets a value indicating whether all the display monitors are using the same pixel color format.

MouseButtons MouseButtons MouseButtons MouseButtons

获取鼠标上的按钮数。Gets the number of buttons on the mouse.

MouseButtonsSwapped MouseButtonsSwapped MouseButtonsSwapped MouseButtonsSwapped

获取一个值,该值指示是否已交换鼠标左右按钮的功能。Gets a value indicating whether the functions of the left and right mouse buttons have been swapped.

MouseHoverSize MouseHoverSize MouseHoverSize MouseHoverSize

获取特定矩形的尺寸(以像素为单位),鼠标指针必须在该矩形范围内停留达到鼠标悬停时间后,才会生成鼠标悬停消息。Gets the dimensions, in pixels, of the rectangle within which the mouse pointer has to stay for the mouse hover time before a mouse hover message is generated.

MouseHoverTime MouseHoverTime MouseHoverTime MouseHoverTime

获取一个以毫秒为单位的时间,鼠标指针必须在悬停矩形中停留该时间后,才会生成鼠标悬停消息。Gets the time, in milliseconds, that the mouse pointer has to stay in the hover rectangle before a mouse hover message is generated.

MousePresent MousePresent MousePresent MousePresent

获取一个值,该值指示是否已安装指点设备。Gets a value indicating whether a pointing device is installed.

MouseSpeed MouseSpeed MouseSpeed MouseSpeed

获取当前鼠标的速度。Gets the current mouse speed.

MouseWheelPresent MouseWheelPresent MouseWheelPresent MouseWheelPresent

获取一个值,该值指示是否安装了带有鼠标轮的鼠标。Gets a value indicating whether a mouse with a mouse wheel is installed.

MouseWheelScrollDelta MouseWheelScrollDelta MouseWheelScrollDelta MouseWheelScrollDelta

获取单次鼠标轮旋转增量的增量值。Gets the amount of the delta value of a single mouse wheel rotation increment.

MouseWheelScrollLines MouseWheelScrollLines MouseWheelScrollLines MouseWheelScrollLines

获取滚动鼠标轮时所滚动过的行数。Gets the number of lines to scroll when the mouse wheel is rotated.

NativeMouseWheelSupport NativeMouseWheelSupport NativeMouseWheelSupport NativeMouseWheelSupport

获取一个值,该值指示是否安装了带有鼠标轮的鼠标。Gets a value indicating whether a mouse with a mouse wheel is installed.

Network Network Network Network

获取一个值,该值指示是否存在网络连接。Gets a value indicating whether a network connection is present.

PenWindows PenWindows PenWindows PenWindows

获取一个值,该值指示是否已安装 Microsoft Windows for Pen Computing 扩展。Gets a value indicating whether the Microsoft Windows for Pen Computing extensions are installed.

PopupMenuAlignment PopupMenuAlignment PopupMenuAlignment PopupMenuAlignment

获取与相应菜单栏项对齐的弹出菜单的边。Gets the side of pop-up menus that are aligned to the corresponding menu-bar item.

PowerStatus PowerStatus PowerStatus PowerStatus

获取当前的系统电源状态。Gets the current system power status.

PrimaryMonitorMaximizedWindowSize PrimaryMonitorMaximizedWindowSize PrimaryMonitorMaximizedWindowSize PrimaryMonitorMaximizedWindowSize

获取主监视器上最大化窗口的默认尺寸(以像素为单位)。Gets the default dimensions, in pixels, of a maximized window on the primary display.

PrimaryMonitorSize PrimaryMonitorSize PrimaryMonitorSize PrimaryMonitorSize

获取主显示器的当前视频模式的尺寸(以像素为单位)。Gets the dimensions, in pixels, of the current video mode of the primary display.

RightAlignedMenus RightAlignedMenus RightAlignedMenus RightAlignedMenus

获取一个值,该值指示下拉菜单是否与相应的菜单栏项右对齐。Gets a value indicating whether drop-down menus are right-aligned with the corresponding menu-bar item.

ScreenOrientation ScreenOrientation ScreenOrientation ScreenOrientation

获取屏幕的方向。Gets the orientation of the screen.

Secure Secure Secure Secure

获取一个值,该值指示当前操作系统上是否存在安全管理器。Gets a value indicating whether a Security Manager is present on this operating system.

ShowSounds ShowSounds ShowSounds ShowSounds

获取一个值,该值指示用户是否希望应用程序在以音频形式表示信息时以可视形式表示信息。Gets a value indicating whether the user prefers that an application present information in visual form in situations when it would present the information in audible form.

SizingBorderWidth SizingBorderWidth SizingBorderWidth SizingBorderWidth

获取被调整窗口的外围调整边框的宽度,以像素为单位。Gets the width, in pixels, of the sizing border drawn around the perimeter of a window being resized.

SmallCaptionButtonSize SmallCaptionButtonSize SmallCaptionButtonSize SmallCaptionButtonSize

获取小标题按钮的宽度和小标题的高度,均以像素为单位。Gets the width, in pixels, of small caption buttons, and the height, in pixels, of small captions.

SmallIconSize SmallIconSize SmallIconSize SmallIconSize

获取小图标的尺寸(以像素为单位)。Gets the dimensions, in pixels, of a small icon.

TerminalServerSession TerminalServerSession TerminalServerSession TerminalServerSession

获取一个值,该值指示调用进程是否与终端服务客户端会话相关联。Gets a value indicating whether the calling process is associated with a Terminal Services client session.

ToolWindowCaptionButtonSize ToolWindowCaptionButtonSize ToolWindowCaptionButtonSize ToolWindowCaptionButtonSize

获取小标题按钮的尺寸(以像素为单位)。Gets the dimensions, in pixels, of small caption buttons.

ToolWindowCaptionHeight ToolWindowCaptionHeight ToolWindowCaptionHeight ToolWindowCaptionHeight

获取工具窗口标题的高度(以像素为单位)。Gets the height, in pixels, of a tool window caption.

UIEffectsEnabled UIEffectsEnabled UIEffectsEnabled UIEffectsEnabled

获取一个值,该值指示是已启用还是已禁用用户界面 (UI) 效果。Gets a value indicating whether user interface (UI) effects are enabled or disabled.

UserDomainName UserDomainName UserDomainName UserDomainName

获取用户所属的域的名称。Gets the name of the domain the user belongs to.

UserInteractive UserInteractive UserInteractive UserInteractive

获取一个值,该值指示当前进程是否在用户交互模式中运行。Gets a value indicating whether the current process is running in user-interactive mode.

UserName UserName UserName UserName

获取与当前线程相关联的用户名。Gets the user name associated with the current thread.

VerticalFocusThickness VerticalFocusThickness VerticalFocusThickness VerticalFocusThickness

获取系统聚焦框上下边缘的粗细,以像素为单位。Gets the thickness, in pixels, of the top and bottom edges of the system focus rectangle.

VerticalResizeBorderThickness VerticalResizeBorderThickness VerticalResizeBorderThickness VerticalResizeBorderThickness

获取在正调整大小的窗口周围的大小调整边框的上边缘和下边缘的粗细(以像素为单位)。Gets the thickness, in pixels, of the top and bottom edges of the sizing border around the perimeter of a window being resized.

VerticalScrollBarArrowHeight VerticalScrollBarArrowHeight VerticalScrollBarArrowHeight VerticalScrollBarArrowHeight

获取垂直滚动条上箭头位图的高度(以像素为单位)。Gets the height, in pixels, of the arrow bitmap on the vertical scroll bar.

VerticalScrollBarThumbHeight VerticalScrollBarThumbHeight VerticalScrollBarThumbHeight VerticalScrollBarThumbHeight

获取垂直滚动条中滚动框的高度(以像素为单位)。Gets the height, in pixels, of the scroll box in a vertical scroll bar.

VerticalScrollBarWidth VerticalScrollBarWidth VerticalScrollBarWidth VerticalScrollBarWidth

获取垂直滚动条的默认宽度(以像素为单位)。Gets the default width, in pixels, of the vertical scroll bar.

VirtualScreen VirtualScreen VirtualScreen VirtualScreen

获取虚拟屏幕的界限。Gets the bounds of the virtual screen.

WorkingArea WorkingArea WorkingArea WorkingArea

获取屏幕的工作区域的大小(以像素为单位)。Gets the size, in pixels, of the working area of the screen.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetBorderSizeForDpi(Int32) GetBorderSizeForDpi(Int32) GetBorderSizeForDpi(Int32) GetBorderSizeForDpi(Int32)

获取给定 DPI 值的平面样式窗口边框或系统控件边框的粗细(以像素为单位)。Gets the thickness, in pixels, of a flat-style window or system control border for a given DPI value.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetHorizontalScrollBarArrowWidthForDpi(Int32) GetHorizontalScrollBarArrowWidthForDpi(Int32) GetHorizontalScrollBarArrowWidthForDpi(Int32) GetHorizontalScrollBarArrowWidthForDpi(Int32)

获取水平滚动条上箭头位图的宽度(以像素为单位)。Gets the width of the horizontal scroll bar arrow bitmap in pixels.

GetHorizontalScrollBarHeightForDpi(Int32) GetHorizontalScrollBarHeightForDpi(Int32) GetHorizontalScrollBarHeightForDpi(Int32) GetHorizontalScrollBarHeightForDpi(Int32)

获取给定 DPI 值的水平滚动条的默认高度(以像素为单位)。Gets the default height, in pixels, of the horizontal scroll bar for a given DPI value.

GetMenuFontForDpi(Int32) GetMenuFontForDpi(Int32) GetMenuFontForDpi(Int32) GetMenuFontForDpi(Int32)

获取字体,该字体用于显示更改给定显示设备的 DPI 的菜单上的文本。Gets the font used to display text on menus for use in changing the DPI for a given display device.

GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
GetVerticalScrollBarWidthForDpi(Int32) GetVerticalScrollBarWidthForDpi(Int32) GetVerticalScrollBarWidthForDpi(Int32) GetVerticalScrollBarWidthForDpi(Int32)

获取给定 DPI 值的垂直滚动条的默认高度(以像素为单位)。Gets the default height, in pixels, of the vertical scroll bar for a given DPI value.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)
VerticalScrollBarArrowHeightForDpi(Int32) VerticalScrollBarArrowHeightForDpi(Int32) VerticalScrollBarArrowHeightForDpi(Int32) VerticalScrollBarArrowHeightForDpi(Int32)

获取垂直滚动条箭头位图的高度(以像素为单位)。Gets the height of the vertical scroll bar arrow bitmap in pixels.

适用于

另请参阅