SystemInformation クラス

定義

現在のシステム環境に関する情報を提供します。

public ref class SystemInformation
public ref class SystemInformation abstract sealed
public class SystemInformation
public static class SystemInformation
type SystemInformation = class
Public Class SystemInformation
継承
SystemInformation

次のコード例では、SystemInformation内のListBox クラスのすべてのプロパティを一覧表示し、リスト アイテムが選択されたときにTextBoxにプロパティの現在の値を表示します。

#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プロパティを提供します。 クラスは、Windows表示要素のサイズ、オペレーティング システムの設定、ネットワークの可用性、システムにインストールされているハードウェアの機能などの情報へのアクセスを提供します。 このクラスはインスタンス化できません。

システム全体のパラメーターの詳細については、「 SystemParametersInfo」を参照してください。

プロパティ

名前 説明
ActiveWindowTrackingDelay

アクティブウィンドウ追跡遅延を取得します。

ArrangeDirection

オペレーティング システムが最小化されたウィンドウを配置する方向を示す値を取得します。

ArrangeStartingPosition

オペレーティング システムが最小化されたウィンドウを配置する開始位置を示す ArrangeStartingPosition 値を取得します。

BootMode

システムが起動されたブート モードを示す BootMode 値を取得します。

Border3DSize

3 次元 (3-D) スタイル ウィンドウまたはシステム コントロールの境界線の太さをピクセル単位で取得します。

BorderMultiplierFactor

ウィンドウのサイズ変更罫線の太さを決定するときに使用される境界線乗数係数を取得します。

BorderSize

フラット スタイルのウィンドウまたはシステム コントロールの境界線の太さをピクセル単位で取得します。

CaptionButtonSize

ウィンドウのタイトル バーのボタンの標準サイズ (ピクセル単位) を取得します。

CaptionHeight

ウィンドウの標準タイトル バー領域の高さをピクセル単位で取得します。

CaretBlinkTime

キャレットの点滅時間を取得します。

CaretWidth

編集コントロールのキャレットの幅 (ピクセル単位) を取得します。

ComputerName

ローカル コンピューターの NetBIOS コンピューター名を取得します。

CursorSize

カーソルが占有できる最大サイズ (ピクセル単位) を取得します。

DbcsEnabled

オペレーティング システムが 2 バイト文字セット (DBCS) 文字を処理できるかどうかを示す値を取得します。

DebugOS

USER.EXEのデバッグ バージョンがインストールされているかどうかを示す値を取得します。

DoubleClickSize

ユーザーがダブルクリックを考慮するためにオペレーティング システムで 2 回クリックする必要がある領域の寸法 (ピクセル単位) を取得します。

DoubleClickTime

マウス 操作をダブルクリックと見なす OS の最初のクリックと 2 回目のクリックの間に経過できる最大時間 (ミリ秒) を取得します。

DragFullWindows

ユーザーがウィンドウ全体のドラッグを有効にしているかどうかを示す値を取得します。

DragSize

ドラッグ操作が開始されない、マウス ボタンが押されたポイントを中心とする四角形の幅と高さを取得します。

FixedFrameBorderSize

キャプションがあり、サイズを変更できないウィンドウのフレーム罫線の太さをピクセル単位で取得します。

FontSmoothingContrast

ClearType スムージングで使用されるフォント スムージングのコントラスト値を取得します。

FontSmoothingType

現在の種類のフォント スムージングを取得します。

FrameBorderSize

ドラッグサイズを変更するウィンドウの周囲に描画されるサイズ変更境界線の太さをピクセル単位で取得します。

HighContrast

ユーザーがハイ コントラスト モードのアクセシビリティ機能を有効にしているかどうかを示す値を取得します。

HorizontalFocusThickness

システム フォーカスの四角形の左端と右端の太さをピクセル単位で取得します。

HorizontalResizeBorderThickness

サイズ変更するウィンドウの周囲のサイズ変更境界線の左端と右端の太さをピクセル単位で取得します。

HorizontalScrollBarArrowWidth

水平スクロール バーの矢印ビットマップの幅 (ピクセル単位) を取得します。

HorizontalScrollBarHeight

水平スクロール バーの既定の高さをピクセル単位で取得します。

HorizontalScrollBarThumbWidth

水平スクロール バーのスクロール ボックスの幅 (ピクセル単位) を取得します。

IconHorizontalSpacing

大きなアイコン ビューのアイコン配置セルの幅 (ピクセル単位) を取得します。

IconSize

既定のプログラム アイコン サイズWindowsのサイズ (ピクセル単位) を取得します。

IconSpacingSize

大きなアイコン ビューでアイコンを配置するために使用されるグリッド四角形のサイズ (ピクセル単位) を取得します。

IconVerticalSpacing

大きなアイコン ビューのアイコン配置セルの高さをピクセル単位で取得します。

IsActiveWindowTrackingEnabled

アクティブウィンドウの追跡が有効かどうかを示す値を取得します。

IsComboBoxAnimationEnabled

コンボ ボックスのスライドを開く効果が有効かどうかを示す値を取得します。

IsDropShadowEnabled

ドロップ シャドウ効果が有効かどうかを示す値を取得します。

IsFlatMenuEnabled

ネイティブ ユーザー メニューにフラット メニューの外観があるかどうかを示す値を取得します。

IsFontSmoothingEnabled

フォント のスムージングが有効かどうかを示す値を取得します。

IsHotTrackingEnabled

メニュー バーのメニュー名など、ユーザー インターフェイス要素のホット トラッキングが有効かどうかを示す値を取得します。

IsIconTitleWrappingEnabled

アイコン タイトルの折り返しが有効かどうかを示す値を取得します。

IsKeyboardPreferred

ユーザーがマウスではなくキーボードに依存しているかどうかを示す値を取得し、それ以外の場合は非表示になるキーボード インターフェイスを表示するアプリケーションを優先します。

IsListBoxSmoothScrollingEnabled

リスト ボックスのスムーズ スクロール効果が有効かどうかを示す値を取得します。

IsMenuAnimationEnabled

メニューのフェードまたはスライド アニメーション機能が有効かどうかを示す値を取得します。

IsMenuFadeEnabled

メニュー フェード アニメーションが有効かどうかを示す値を取得します。

IsMinimizeRestoreAnimationEnabled

ウィンドウの最小化と復元のアニメーションが有効かどうかを示す値を取得します。

IsSelectionFadeEnabled

選択範囲のフェード効果が有効かどうかを示す値を取得します。

IsSnapToDefaultEnabled

既定のボタンへのスナップ機能が有効かどうかを示す値を取得します。

IsTitleBarGradientEnabled

ウィンドウ タイトル バーのグラデーション効果が有効かどうかを示す値を取得します。

IsToolTipAnimationEnabled

アニメーションが有効になっているかどうかを示す値 ToolTip 取得します。

KanjiWindowHeight

2 バイト文字セット (DBCS) バージョンの Windows の画面下部にある漢字ウィンドウの高さをピクセル単位で取得します。

KeyboardDelay

キーボードの繰り返し遅延設定を取得します。

KeyboardSpeed

キーボードの繰り返し速度設定を取得します。

MaxWindowTrackSize

キャプションとサイズ変更の境界線があるウィンドウの既定の最大サイズ (ピクセル単位) を取得します。

MenuAccessKeysUnderlined

メニュー アクセス キーに常に下線が付いているかどうかを示す値を取得します。

MenuBarButtonSize

メニュー バー ボタンの既定の幅 (ピクセル単位) と、メニュー バーの高さ (ピクセル単位) を取得します。

MenuButtonSize

メニュー バー ボタンの既定の寸法をピクセル単位で取得します。

MenuCheckSize

メニュー チェック マーク領域の既定のサイズの寸法をピクセル単位で取得します。

MenuFont

メニューにテキストを表示するために使用するフォントを取得します。

MenuHeight

メニューの 1 行の高さをピクセル単位で取得します。

MenuShowDelay

マウス カーソルがサブメニュー項目の上にあるときに、カスケード ショートカット メニューを表示する前にシステムが待機する時間 (ミリ秒単位) を取得します。

MidEastEnabled

オペレーティング システムがヘブライ語とアラビア語の言語に対して有効かどうかを示す値を取得します。

MinimizedWindowSize

通常の最小化されたウィンドウの寸法をピクセル単位で取得します。

MinimizedWindowSpacingSize

最小化された各ウィンドウが配置されたときに割り当てられる領域の寸法をピクセル単位で取得します。

MinimumWindowSize

ウィンドウの最小幅と高さをピクセル単位で取得します。

MinWindowTrackSize

ドラッグ サイズ変更中にウィンドウが占有する既定の最小サイズ (ピクセル単位) を取得します。

MonitorCount

デスクトップ上のディスプレイ モニターの数を取得します。

MonitorsSameDisplayFormat

すべてのディスプレイ モニターが同じピクセル カラー形式を使用しているかどうかを示す値を取得します。

MouseButtons

マウスのボタンの数を取得します。

MouseButtonsSwapped

マウスの左右のボタンの機能がスワップされたかどうかを示す値を取得します。

MouseHoverSize

マウス ホバー メッセージが生成される前にマウス ポインターがマウス ホバー時間を維持する必要がある四角形の寸法 (ピクセル単位) を取得します。

MouseHoverTime

マウス ポインターがマウス ポインターをホバー四角形内に留めてからマウス ホバー メッセージが生成されるまでの時間 (ミリ秒単位) を取得します。

MousePresent

ポインティング デバイスがインストールされているかどうかを示す値を取得します。

MouseSpeed

現在のマウス速度を取得します。

MouseWheelPresent

マウス ホイールを持つマウスがインストールされているかどうかを示す値を取得します。

MouseWheelScrollDelta

1 つのマウス ホイールの回転増分の差分値の量を取得します。

MouseWheelScrollLines

マウス ホイールが回転したときにスクロールする行数を取得します。

NativeMouseWheelSupport

マウス ホイールを持つマウスがインストールされているかどうかを示す値を取得します。

Network

ネットワーク接続が存在するかどうかを示す値を取得します。

PenWindows

Microsoft Windows for Pen Computing 拡張機能がインストールされているかどうかを示す値を取得します。

PopupMenuAlignment

対応するメニュー バー項目に配置されているポップアップ メニューの側面を取得します。

PowerStatus

現在のシステム電源状態を取得します。

PrimaryMonitorMaximizedWindowSize

プライマリ ディスプレイ上の最大化されたウィンドウの既定の寸法をピクセル単位で取得します。

PrimaryMonitorSize

プライマリ ディスプレイの現在のビデオ モードの寸法をピクセル単位で取得します。

RightAlignedMenus

ドロップダウン メニューが対応するメニュー バー項目と右揃えかどうかを示す値を取得します。

ScreenOrientation

画面の向きを取得します。

Secure

Security Manager がこのオペレーティング システムに存在するかどうかを示す値を取得します。

ShowSounds

アプリケーションが可聴形式で情報を表示する場合に、アプリケーションが視覚的な形式で情報を提示することをユーザーが優先するかどうかを示す値を取得します。

SizingBorderWidth

サイズ変更するウィンドウの周囲に描画されるサイズ変更境界線の幅 (ピクセル単位) を取得します。

SmallCaptionButtonSize

小さいキャプション ボタンの幅 (ピクセル単位) と、小さいキャプションの高さ (ピクセル単位) を取得します。

SmallIconSize

小さいアイコンの寸法をピクセル単位で取得します。

TerminalServerSession

呼び出し元のプロセスがターミナル サービス クライアント セッションに関連付けられているかどうかを示す値を取得します。

ToolWindowCaptionButtonSize

小さいキャプション ボタンの寸法をピクセル単位で取得します。

ToolWindowCaptionHeight

ツール ウィンドウのキャプションの高さをピクセル単位で取得します。

UIEffectsEnabled

ユーザー インターフェイス (UI) の効果が有効か無効かを示す値を取得します。

UserDomainName

ユーザーが属しているドメインの名前を取得します。

UserInteractive

現在のプロセスがユーザー対話型モードで実行されているかどうかを示す値を取得します。

UserName

現在のスレッドに関連付けられているユーザー名を取得します。

VerticalFocusThickness

システム フォーカス四角形の上端と下端の太さをピクセル単位で取得します。

VerticalResizeBorderThickness

サイズ変更するウィンドウの周囲のサイズ変更境界線の上端と下端の太さをピクセル単位で取得します。

VerticalScrollBarArrowHeight

垂直スクロール バーの矢印ビットマップの高さをピクセル単位で取得します。

VerticalScrollBarThumbHeight

垂直スクロール バーのスクロール ボックスの高さをピクセル単位で取得します。

VerticalScrollBarWidth

垂直スクロール バーの既定の幅 (ピクセル単位) を取得します。

VirtualScreen

仮想画面の境界を取得します。

WorkingArea

画面の作業領域のサイズ (ピクセル単位) を取得します。

メソッド

名前 説明
GetBorderSizeForDpi(Int32)

指定された DPI 値のフラット スタイル ウィンドウまたはシステム コントロールの境界線の太さをピクセル単位で取得します。

GetHorizontalScrollBarArrowWidthForDpi(Int32)

水平スクロール バー矢印ビットマップの幅をピクセル単位で取得します。

GetHorizontalScrollBarHeightForDpi(Int32)

指定された DPI 値の水平スクロール バーの既定の高さをピクセル単位で取得します。

GetMenuFontForDpi(Int32)

特定のディスプレイ デバイスの DPI の変更に使用するメニューにテキストを表示するために使用するフォントを取得します。

GetVerticalScrollBarWidthForDpi(Int32)

指定された DPI 値の垂直スクロール バーの既定の高さをピクセル単位で取得します。

VerticalScrollBarArrowHeightForDpi(Int32)

垂直スクロール バー矢印ビットマップの高さをピクセル単位で取得します。

適用対象

こちらもご覧ください