System Settingsとは? わかりやすく解説

SystemSettings クラス

デバイスユーザー インターフェイス、およびネイティブ Windows CE オペレーティング システム設定アクセスできるようにします。

名前空間: Microsoft.WindowsCE.Forms
アセンブリ: Microsoft.WindowsCE.Forms (microsoft.windowsce.forms.dll 内)
構文構文

Public NotInheritable Class
 SystemSettings
Dim instance As SystemSettings
public sealed class SystemSettings
public ref class SystemSettings sealed
public final class SystemSettings
public final class SystemSettings
解説解説

現在、このクラス設定できるのは、ScreenOrientation プロパティ設定だけです。

使用例使用例

デバイス画面向きを、通常のゼロ度の縦表示から 90 度、180 度、270 度に順に回転し最後にゼロ度に戻す方法次のコード例示しますボタンクリックするたびに、ScreenOrientation 列挙体を循環します。

Imports System
Imports System.Drawing
Imports System.Windows.Forms
Imports Microsoft.WindowsCE.Forms



Public Class Form1
   Inherits System.Windows.Forms.Form
   Private WithEvents Button1 As
 System.Windows.Forms.Button
   Private mainMenu1 As System.Windows.Forms.MainMenu
   Private StatusBar1 As System.Windows.Forms.StatusBar
   
   ' Set a variable to be incremented by button clicks
   ' that will change the orientation by rotating
   ' through the ScreenOrientation enumeration.
   Private x As Integer
 = 0
   
   
   Public Sub New()
      InitializeComponent()
      
      Me.MinimizeBox = False
      
      ' Set the screen orientation to normal
      ' and display the value on the status bar.
      SystemSettings.ScreenOrientation = ScreenOrientation.Angle0
      Me.StatusBar1.Text = SystemSettings.ScreenOrientation.ToString()
   End Sub

   Protected Overrides Sub
 Dispose(disposing As Boolean)
      MyBase.Dispose(disposing)
   End Sub
   
   Private Sub InitializeComponent()
      Me.Button1 = New System.Windows.Forms.Button()
      Me.StatusBar1 = New System.Windows.Forms.StatusBar()
      '
      ' Button1
      '
      Me.Button1.Location = New System.Drawing.Point(16,
 128)
      Me.Button1.Text = "Rotate"
      '
      ' Form1
      '
      Me.Controls.Add(Button1)
      Me.Controls.Add(StatusBar1)
      Me.Text = "Orientation Demo"
   End Sub
   
   Shared Sub Main()
      Application.Run(New Form1())
   End Sub
   
   
   ' Each click event changes the screen orientation, as determined
   ' by the variable x, which increments from 0 to 3 and then back
   ' to 0. Four clicks cycle through the ScreenOrientation enumeration.
   Private Sub Button1_Click(sender As
 Object, e As System.EventArgs) Handles
 Button1.Click
      
      Select Case x
         Case 0
            
            ' Pass a value for the ScreenOrientation enumeration
            ' to the SetOrientation method, defined below,
            ' and increment x so that the next button
            ' click rotates the screen orientation.
            SetOrientation(ScreenOrientation.Angle90)
            x += 1
         Case 1
            SetOrientation(ScreenOrientation.Angle180)
            x += 1
         Case 2
            SetOrientation(ScreenOrientation.Angle270)
            x += 1
         Case 3
            SetOrientation(ScreenOrientation.Angle0)
            x = 0
         Case Else
            SetOrientation(ScreenOrientation.Angle0)
            x = 0
      End Select
   End Sub
   
   
   ' Set the orientation to a value of the
   ' ScreenOrienation enumeration and update the
   ' status bar with the current angle.
   Private Sub SetOrientation(so As
 ScreenOrientation)
      ' Set the requested orientation.
      SystemSettings.ScreenOrientation = so
      
      Me.StatusBar1.Text = SystemSettings.ScreenOrientation.ToString()
   End Sub

End Class
using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;
using Microsoft.WindowsCE.Forms;

namespace SystemSettingsTest
{
public class Form1 : System.Windows.Forms.Form
{
 private System.Windows.Forms.Button button1;
 private System.Windows.Forms.MainMenu mainMenu1;
 private System.Windows.Forms.StatusBar statusBar1;

 // Set a variable to be incremented by button clicks
 // that will change the orientation by rotating
 // through the ScreenOrientation enumeration.
 int x = 0;

 public Form1()
 {
  InitializeComponent();

  this.MinimizeBox = false;

  // Set the screen orientation to normal
  // and display the value on the status bar.
  SystemSettings.ScreenOrientation = ScreenOrientation.Angle0;
  this.statusBar1.Text = SystemSettings.ScreenOrientation.ToString();

 }
 protected override void Dispose( bool
 disposing )
 {
  base.Dispose( disposing );
 }
 #region Windows Form Designer generated code
 private void InitializeComponent()
 {
  this.mainMenu1 = new System.Windows.Forms.MainMenu();
  this.button1 = new System.Windows.Forms.Button();
  this.statusBar1 = new System.Windows.Forms.StatusBar();
  //
  // button1
  //
  this.button1.Location = new System.Drawing.Point(16,
 128);
  this.button1.Text = "Rotate";
  this.button1.Click += new System.EventHandler(this.button1_Click);
  //
  // Form1
  //
  this.Controls.Add(this.button1);
  this.Controls.Add(this.statusBar1);
  this.Menu = this.mainMenu1;
  this.Text = "Orientation Demo";
 }
 #endregion
 static void Main()
 {
  Application.Run(new Form1());
 }


  // Each click event changes the screen orientation, as determined
  // by the variable x, which increments from 0 to 3 and then back
  // to 0. Four clicks cycle through the ScreenOrientation enumeration.

 private void button1_Click(object sender,
 System.EventArgs e)
 {

  switch(x)
  {
   case 0:

    // Pass a value for the ScreenOrientation enumeration
    // to the SetOrientation method, defined below,
    // and increment x so that the next button
    // click rotates the screen orientation.
    SetOrientation(ScreenOrientation.Angle90);
    x++;
    break;
   case 1:
    SetOrientation(ScreenOrientation.Angle180);
    x++;
    break;
   case 2:
    SetOrientation(ScreenOrientation.Angle270);
    x++;
    break;
   case 3:
    SetOrientation(ScreenOrientation.Angle0);
    x = 0;
    break;
   default:
    SetOrientation(ScreenOrientation.Angle0);
    x = 0;
    break;
  }
 }

  // Set the orientation to a value of the
  // ScreenOrienation enumeration and update the
  // status bar with the current angle.
 private void SetOrientation(ScreenOrientation
 so)
 {
  // Set the requested orientation.

  SystemSettings.ScreenOrientation = so;

  this.statusBar1.Text = SystemSettings.ScreenOrientation.ToString();
 }
継承階層継承階層
System.Object
  Microsoft.WindowsCE.Forms.SystemSettings
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

SystemSettings プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ ScreenOrientation デバイス現在の画面向き取得または設定します
参照参照

関連項目

SystemSettings クラス
Microsoft.WindowsCE.Forms 名前空間

その他の技術情報

方法 : 画面向き解像度変更する

SystemSettings メソッド


SystemSettings メンバ

デバイスユーザー インターフェイス、およびネイティブ Windows CE オペレーティング システム設定アクセスできるようにします。

SystemSettings データ型公開されるメンバを以下の表に示します


パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ ScreenOrientation デバイス現在の画面向き取得または設定します
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

SystemSettings クラス
Microsoft.WindowsCE.Forms 名前空間

その他の技術情報

方法 : 画面向き解像度変更する

システム設定

(System Settings から転送)

出典: フリー百科事典『ウィキペディア(Wikipedia)』 (2024/07/11 08:41 UTC 版)

システム設定: System Settings)は、macOSのコンピューター内の設定を操作することが出来る標準搭載のアプリケーションClassic Mac OSではControl Panel(s)Mac OS X v10.0からmacOS Montereyまではシステム環境設定: System Preferences)という名称であった。 Windowsコントロールパネル設定にあたる。




「システム設定」の続きの解説一覧


英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「System Settings」の関連用語

System Settingsのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



System Settingsのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.
ウィキペディアウィキペディア
All text is available under the terms of the GNU Free Documentation License.
この記事は、ウィキペディアのシステム設定 (改訂履歴)の記事を複製、再配布したものにあたり、GNU Free Documentation Licenseというライセンスの下で提供されています。 Weblio辞書に掲載されているウィキペディアの記事も、全てGNU Free Documentation Licenseの元に提供されております。

©2024 GRAS Group, Inc.RSS