SystemInformation Класс
Определение
Предоставляет сведения о текущей системной среде.Provides information about the current system environment.
public ref class SystemInformation abstract sealed
public ref class SystemInformation
public static class SystemInformation
public class SystemInformation
type SystemInformation = class
Public Class SystemInformation
- Наследование
-
SystemInformation
Примеры
В следующем примере кода перечисляются все свойства 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 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.
Дополнительные сведения о параметрах на уровне системы см. в разделе системпараметерсинфо.For more information about system-wide parameters, see SystemParametersInfo.
Свойства
ActiveWindowTrackingDelay |
Возвращает задержку отслеживания активного окна.Gets the active window tracking delay. |
ArrangeDirection |
Возвращает значение, указывающее направление, в котором операционная система располагает свернутые окна.Gets a value that indicates the direction in which the operating system arranges minimized windows. |
ArrangeStartingPosition |
Возвращает значение ArrangeStartingPosition, указывающее позицию, начиная с которой операционная система выстраивает свернутые окна.Gets an ArrangeStartingPosition value that indicates the starting position from which the operating system arranges minimized windows. |
BootMode |
Возвращает значение BootMode, указывающее режим загрузки, в котором была запущена система.Gets a BootMode value that indicates the boot mode the system was started in. |
Border3DSize |
Возвращает толщину (в пикселях) объемной границы окна или системного элемента управления.Gets the thickness, in pixels, of a three-dimensional (3-D) style window or system control border. |
BorderMultiplierFactor |
Возвращает множитель границы, который используется при определении толщины границы для изменения размера окна.Gets the border multiplier factor that is used when determining the thickness of a window's sizing border. |
BorderSize |
Возвращает толщину (в пикселях) плоской границы окна или системного элемента управления.Gets the thickness, in pixels, of a flat-style window or system control border. |
CaptionButtonSize |
Возвращает стандартный размер кнопки в заголовке окна в пикселях.Gets the standard size, in pixels, of a button in a window's title bar. |
CaptionHeight |
Возвращает высоту (в пикселях) стандартной области заголовка окна.Gets the height, in pixels, of the standard title bar area of a window. |
CaretBlinkTime |
Возвращает время мерцания курсора.Gets the caret blink time. |
CaretWidth |
Возвращает ширину курсора (в пикселях) в элементах управления для редактирования.Gets the width, in pixels, of the caret in edit controls. |
ComputerName |
Возвращает имя NetBIOS локального компьютера.Gets the NetBIOS computer name of the local computer. |
CursorSize |
Возвращает максимальный размер (в пикселях), который может иметь курсор.Gets the maximum size, in pixels, that a cursor can occupy. |
DbcsEnabled |
Возвращает значение, показывающее, может ли операционная система обрабатывать символы двухбайтовой кодировки (DBCS).Gets a value indicating whether the operating system is capable of handling double-byte character set (DBCS) characters. |
DebugOS |
Возвращает значение, показывающее, установлена ли отладочная версия USER.EXE.Gets a value indicating whether the debug version of USER.EXE is installed. |
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 |
Возвращает максимальное число миллисекунд, которое может пройти между первым и вторым щелчком, чтобы операционная система рассматривала эти действия как двойной щелчок.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 |
Возвращает значение, показывающее, включено ли перетаскивание окон с содержимым.Gets a value indicating whether the user has enabled full window drag. |
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 |
Возвращает толщину (в пикселях) границы рамки окна, которую имеет заголовок и размеры которого не изменяются.Gets the thickness, in pixels, of the frame border of a window that has a caption and is not resizable. |
FontSmoothingContrast |
Возвращает значение контрастности сглаживания шрифтов, используемое в сглаживании ClearType.Gets the font smoothing contrast value used in ClearType smoothing. |
FontSmoothingType |
Возвращает текущий тип сглаживания шрифтов.Gets the current type of font smoothing. |
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 |
Возвращает значение, показывающее, включен ли режим высокой контрастности в специальных возможностях.Gets a value indicating whether the user has enabled the high-contrast mode accessibility feature. |
HorizontalFocusThickness |
Возвращает толщину (в пикселях) левой и правой границ прямоугольника системного фокуса ввода.Gets the thickness of the left and right edges of the system focus rectangle, in pixels. |
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 |
Возвращает ширину (в пикселях) изображения стрелки на горизонтальной полосе прокрутки.Gets the width, in pixels, of the arrow bitmap on the horizontal scroll bar. |
HorizontalScrollBarHeight |
Возвращает высоту (в пикселях) по умолчанию для горизонтальной полосы прокрутки.Gets the default height, in pixels, of the horizontal scroll bar. |
HorizontalScrollBarThumbWidth |
Возвращает ширину (в пикселях) ползунка горизонтальной полосы прокрутки.Gets the width, in pixels, of the scroll box in a horizontal scroll bar. |
IconHorizontalSpacing |
Возвращает ширину (в пикселях) ячейки упорядочения значков в режиме больших значков.Gets the width, in pixels, of an icon arrangement cell in large icon view. |
IconSize |
Возвращает размеры (в пикселях) стандартного значка программы Windows.Gets the dimensions, in pixels, of the Windows default program icon size. |
IconSpacingSize |
Возвращает размер (в пикселях) элемента сетки, используемой для размещения значков в режиме крупных значков.Gets the size, in pixels, of the grid square used to arrange icons in a large-icon view. |
IconVerticalSpacing |
Возвращает высоту (в пикселях) ячейки упорядочения значков в режиме больших значков.Gets the height, in pixels, of an icon arrangement cell in large icon view. |
IsActiveWindowTrackingEnabled |
Возвращает значение, показывающее, включено ли отслеживание активного окна.Gets a value indicating whether active window tracking is enabled. |
IsComboBoxAnimationEnabled |
Получает значение, показывающее, включен ли эффект скольжения при раскрытии поля со списком.Gets a value indicating whether the slide-open effect for combo boxes is enabled. |
IsDropShadowEnabled |
Получает значение, показывающее, включен ли эффект тени.Gets a value indicating whether the drop shadow effect is enabled. |
IsFlatMenuEnabled |
Возвращает значение, указывающее, имеют ли пользовательские меню плоский вид.Gets a value indicating whether native user menus have a flat menu appearance. |
IsFontSmoothingEnabled |
Возвращает значение, показывающее, включено ли сглаживание шрифтов.Gets a value indicating whether font smoothing is enabled. |
IsHotTrackingEnabled |
Возвращает значение, показывающее, включен ли выбор элементов интерфейса пользователя, таких как названия меню в панели меню, при наведении на них указателя.Gets a value indicating whether hot tracking of user-interface elements, such as menu names on menu bars, is enabled. |
IsIconTitleWrappingEnabled |
Получает значение, показывающее, включен ли перенос подписи значка.Gets a value indicating whether icon-title wrapping is enabled. |
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 |
Получает значение, показывающее, включен ли эффект плавной прокрутки для списков.Gets a value indicating whether the smooth-scrolling effect for list boxes is enabled. |
IsMenuAnimationEnabled |
Возвращает значение, показывающее, включены ли затухание и покадровая анимация.Gets a value indicating whether menu fade or slide animation features are enabled. |
IsMenuFadeEnabled |
Получает значение, показывающее, включена ли анимация исчезания меню.Gets a value indicating whether menu fade animation is enabled. |
IsMinimizeRestoreAnimationEnabled |
Возвращает значение, показывающее, включена ли анимация сворачивания и восстановления окна.Gets a value indicating whether window minimize and restore animation is enabled. |
IsSelectionFadeEnabled |
Получает значение, показывающее, включен ли эффект исчезания выделения.Gets a value indicating whether the selection fade effect is enabled. |
IsSnapToDefaultEnabled |
Возвращает значение, показывающее, включена ли возможность кнопка возврата к значениям, установленным по умолчанию.Gets a value indicating whether the snap-to-default-button feature is enabled. |
IsTitleBarGradientEnabled |
Получает значение, показывающее, включен ли эффект градиента для заголовков окна.Gets a value indicating whether the gradient effect for window title bars is enabled. |
IsToolTipAnimationEnabled |
Получает значение, показывающее, включена ли анимация ToolTip.Gets a value indicating whether ToolTip animation is enabled. |
KanjiWindowHeight |
Возвращает высоту (в пикселях) окна кандзи, расположенного в нижней части экрана для версий Windows, использующих двухбайтовую кодировку (DBCS).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 |
Возвращает параметр задержки перед повторением для клавиатуры.Gets the keyboard repeat-delay setting. |
KeyboardSpeed |
Возвращает параметр скорости повтора для клавиатуры.Gets the keyboard repeat-speed setting. |
MaxWindowTrackSize |
Возвращает стандартные максимальные размеры (в пикселях) для окна, которое имеет заголовок и границы, позволяющие изменять размеры окна.Gets the default maximum dimensions, in pixels, of a window that has a caption and sizing borders. |
MenuAccessKeysUnderlined |
Получает значение, показывающее, всегда ли подчеркиваются клавиши доступа в меню.Gets a value indicating whether menu access keys are always underlined. |
MenuBarButtonSize |
Возвращает ширину по умолчанию (в пикселях) для кнопок строки меню и высоту (в пикселях) строки меню.Gets the default width, in pixels, for menu-bar buttons and the height, in pixels, of a menu bar. |
MenuButtonSize |
Возвращает размеры по умолчанию (в пикселях) для кнопок строки меню.Gets the default dimensions, in pixels, of menu-bar buttons. |
MenuCheckSize |
Возвращает размеры по умолчанию (в пикселях) для области флажка меню.Gets the dimensions, in pixels, of the default size of a menu check mark area. |
MenuFont |
Возвращает шрифт, используемый для отображения текста в меню.Gets the font used to display text on menus. |
MenuHeight |
Возвращает высоту (в пикселях) для одной строки меню.Gets the height, in pixels, of one line of a menu. |
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 |
Возвращает значение, показывающее, поддерживает ли операционная система иврит и арабский язык.Gets a value indicating whether the operating system is enabled for the Hebrew and Arabic languages. |
MinimizedWindowSize |
Возвращает размеры (в пикселях) обычного свернутого окна.Gets the dimensions, in pixels, of a normal minimized window. |
MinimizedWindowSpacingSize |
Возвращает размеры (в пикселях) области, которая выделяется для размещения каждого свернутого окна.Gets the dimensions, in pixels, of the area each minimized window is allocated when arranged. |
MinimumWindowSize |
Возвращает минимальную ширину и высоту (в пикселях) для окна.Gets the minimum width and height for a window, in pixels. |
MinWindowTrackSize |
Возвращает стандартные минимальные размеры (в пикселях), которые может принимать окно, изменяющее размеры.Gets the default minimum dimensions, in pixels, that a window may occupy during a drag resize. |
MonitorCount |
Возвращает число мониторов на рабочем столе.Gets the number of display monitors on the desktop. |
MonitorsSameDisplayFormat |
Возвращает значение, показывающее, используется ли для всех мониторов одинаковый цветовой формат пикселей.Gets a value indicating whether all the display monitors are using the same pixel color format. |
MouseButtons |
Возвращает число кнопок мыши.Gets the number of buttons on the mouse. |
MouseButtonsSwapped |
Возвращает значение, указывающее, могут ли меняться местами функции левой и правой кнопок мыши.Gets a value indicating whether the functions of the left and right mouse buttons have been swapped. |
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 |
Возвращает интервал времени (в миллисекундах), в течение которого указатель мыши должен оставаться в прямоугольнике наведения перед тем, как вызывается сообщение о наведении мыши.Gets the time, in milliseconds, that the mouse pointer has to stay in the hover rectangle before a mouse hover message is generated. |
MousePresent |
Возвращает значение, указывающее, установлено ли указывающее устройство.Gets a value indicating whether a pointing device is installed. |
MouseSpeed |
Возвращает текущую скорость мыши.Gets the current mouse speed. |
MouseWheelPresent |
Возвращает значение, указывающее, установлена ли мышь с колесом прокрутки.Gets a value indicating whether a mouse with a mouse wheel is installed. |
MouseWheelScrollDelta |
Возвращает значение смещения, вызываемого поворотом колесика мыши на одно деление.Gets the amount of the delta value of a single mouse wheel rotation increment. |
MouseWheelScrollLines |
Возвращает число строк, прокручиваемых при вращении колесика мыши.Gets the number of lines to scroll when the mouse wheel is rotated. |
NativeMouseWheelSupport |
Возвращает значение, указывающее, установлена ли мышь с колесом прокрутки.Gets a value indicating whether a mouse with a mouse wheel is installed. |
Network |
Возвращает значение, указывающее, присутствует ли сетевое подключение.Gets a value indicating whether a network connection is present. |
PenWindows |
Возвращает значение, показывающее, установлены ли расширения Microsoft Windows для компьютеров с перьевым вводом.Gets a value indicating whether the Microsoft Windows for Pen Computing extensions are installed. |
PopupMenuAlignment |
Возвращает сторону всплывающих меню, которые выравниваются по соответствующему элементу панели меню.Gets the side of pop-up menus that are aligned to the corresponding menu-bar item. |
PowerStatus |
Возвращает текущее состояние системного питания.Gets the current system power status. |
PrimaryMonitorMaximizedWindowSize |
Возвращает стандартные размеры (в пикселях) для развернутого окна на основном мониторе.Gets the default dimensions, in pixels, of a maximized window on the primary display. |
PrimaryMonitorSize |
Возвращает размеры (в пикселях) для текущего видеорежима основного монитора.Gets the dimensions, in pixels, of the current video mode of the primary display. |
RightAlignedMenus |
Возвращает значение, указывающее, выравниваются ли раскрывающиеся меню вправо относительно соответствующего элемента строки меню.Gets a value indicating whether drop-down menus are right-aligned with the corresponding menu-bar item. |
ScreenOrientation |
Возвращает ориентацию экрана.Gets the orientation of the screen. |
Secure |
Возвращает значение, показывающее, присутствует ли в этой операционной системе диспетчер безопасности.Gets a value indicating whether a Security Manager is present on this operating system. |
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 |
Возвращает ширину (в пикселях) изменяющей размер границы, нарисованной вокруг периметра изменяющего размер окна.Gets the width, in pixels, of the sizing border drawn around the perimeter of a window being resized. |
SmallCaptionButtonSize |
Возвращает ширину (в пикселях) кнопок мелких заголовков и высоту малых заголовков в пикселях.Gets the width, in pixels, of small caption buttons, and the height, in pixels, of small captions. |
SmallIconSize |
Возвращает размеры (в пикселях) мелкого значка.Gets the dimensions, in pixels, of a small icon. |
TerminalServerSession |
Возвращает значение, указывающее, сопоставлен ли вызывающий процесс с клиентским сеансом служб терминалов.Gets a value indicating whether the calling process is associated with a Terminal Services client session. |
ToolWindowCaptionButtonSize |
Возвращает размеры (в пикселях) значков в заголовке.Gets the dimensions, in pixels, of small caption buttons. |
ToolWindowCaptionHeight |
Возвращает высоту (в пикселях) заголовка окна программного средства.Gets the height, in pixels, of a tool window caption. |
UIEffectsEnabled |
Возвращает значение, показывающее, включены ли эффекты пользовательского интерфейса.Gets a value indicating whether user interface (UI) effects are enabled or disabled. |
UserDomainName |
Возвращает имя домена, которому принадлежит пользователь.Gets the name of the domain the user belongs to. |
UserInteractive |
Возвращает значение, позволяющее определить, выполняется ли текущий процесс в режиме взаимодействия с пользователем.Gets a value indicating whether the current process is running in user-interactive mode. |
UserName |
Возвращает имя пользователя, сопоставленное с текущим потоком.Gets the user name associated with the current thread. |
VerticalFocusThickness |
Возвращает толщину (в пикселях) верхней и нижней границ прямоугольника системного фокуса ввода.Gets the thickness, in pixels, of the top and bottom edges of the system focus rectangle. |
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 |
Возвращает высоту (в пикселях) изображения стрелки на вертикальной полосе прокрутки.Gets the height, in pixels, of the arrow bitmap on the vertical scroll bar. |
VerticalScrollBarThumbHeight |
Возвращает высоту (в пикселях) ползунка вертикальной полосы прокрутки.Gets the height, in pixels, of the scroll box in a vertical scroll bar. |
VerticalScrollBarWidth |
Возвращает ширину по умолчанию (в пикселях) вертикальной полосы прокрутки.Gets the default width, in pixels, of the vertical scroll bar. |
VirtualScreen |
Возвращает границы виртуального экрана.Gets the bounds of the virtual screen. |
WorkingArea |
Возвращает размер (в пикселях) рабочей области экрана.Gets the size, in pixels, of the working area of the screen. |
Методы
GetBorderSizeForDpi(Int32) |
Получает толщину (в пикселях) плоской границы окна или системного элемента управления для заданного значения DPI.Gets the thickness, in pixels, of a flat-style window or system control border for a given DPI value. |
GetHorizontalScrollBarArrowWidthForDpi(Int32) |
Получает ширину стрелки на горизонтальной полосе прокрутки в пикселях.Gets the width of the horizontal scroll bar arrow bitmap in pixels. |
GetHorizontalScrollBarHeightForDpi(Int32) |
Получает высоту по умолчанию (в пикселях) горизонтальной полосы прокрутки для данного значения DPI.Gets the default height, in pixels, of the horizontal scroll bar for a given DPI value. |
GetMenuFontForDpi(Int32) |
Получает шрифт, используемый для отображения текста в меню, которое будет использоваться для изменения настройки DPI для заданного устройства отображения.Gets the font used to display text on menus for use in changing the DPI for a given display device. |
GetVerticalScrollBarWidthForDpi(Int32) |
Получает высоту по умолчанию (в пикселях) вертикальной полосы прокрутки для данного значения DPI.Gets the default height, in pixels, of the vertical scroll bar for a given DPI value. |
VerticalScrollBarArrowHeightForDpi(Int32) |
Получает высоту в пикселях точечного изображения стрелки на вертикальной полосе прокрутки.Gets the height of the vertical scroll bar arrow bitmap in pixels. |