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.
システム全体のパラメーターの詳細については、「 SystemParametersInfo」を参照してください。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 |
3 次元 (3D) スタイルのウィンドウまたはシステム コントロールの境界線の太さ (ピクセル単位) を取得します。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 |
オペレーティング システムが 2 バイト文字セット (DBCS: Double-Byte Character Set) の文字を処理できるかどうかを示す値を取得します。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 |
2 回のクリックがダブルクリックであるとオペレーティング システムに認識されるために、ユーザーがクリックする 2 つの位置が含まれている必要がある範囲のサイズ (ピクセル単位) を取得します。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 |
マウス操作がダブルクリックであると OS に認識されるための、1 回目のクリックと 2 回目のクリックの間の最大経過時間 (ミリ秒単位) を取得します。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 |
2 バイト文字セット (DBCS) バージョンの Windows で画面の一番下に表示される漢字ウィンドウの高さ (ピクセル単位) を取得します。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 |
メニューの 1 行の高さ (ピクセル単位) を取得します。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 |
マウス ホイールの 1 目盛りの回転で増分される差分値を取得します。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 for Pen Computing 拡張機能がインストールされているかどうかを示す値を取得します。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 |
ユーザー インターフェイス (UI) 効果が有効にされているか、無効にされているかを示す値を取得します。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. |