Cursors.UpArrow プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Cursors.UpArrow プロパティの意味・解説 

Cursors.UpArrow プロパティ

通常カーソル位置識別使用する上向き矢印カーソル取得します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

使用例使用例

Cursors クラスの例を次に示します。この例を実行するには、次のコードフォーム貼り付けてフォームコンストラクタまたは Load メソッドで InitializeRadioButtonsAndGroupBox メソッド呼び出します。必ずすべてのイベントイベント処理メソッド関連付けるようにしてください

Friend WithEvents GroupBox1 As
 System.Windows.Forms.GroupBox
Friend WithEvents RadioButton1 As
 System.Windows.Forms.RadioButton
Friend WithEvents RadioButton2 As
 System.Windows.Forms.RadioButton
Friend WithEvents RadioButton3 As
 System.Windows.Forms.RadioButton

Private Sub InitializeRadioButtonsAndGroupBox()

    ' Construct the GroupBox object.
    Me.GroupBox1 = New GroupBox

    ' Construct the radio buttons.
    Me.RadioButton1 = New System.Windows.Forms.RadioButton
    Me.RadioButton2 = New System.Windows.Forms.RadioButton
    Me.RadioButton3 = New System.Windows.Forms.RadioButton

    ' Set the location, tab and text for each radio button
    ' to a cursor from the Cursors enumeration.
    Me.RadioButton1.Location = New System.Drawing.Point(24,
 24)
    Me.RadioButton1.TabIndex = 0
    Me.RadioButton1.Text = "Help"
    Me.RadioButton1.Tag = Cursors.Help
    Me.RadioButton1.TextAlign = ContentAlignment.MiddleCenter

    Me.RadioButton2.Location = New System.Drawing.Point(24,
 56)
    Me.RadioButton2.TabIndex = 1
    Me.RadioButton2.Text = "Up Arrow"
    Me.RadioButton2.Tag = Cursors.UpArrow
    Me.RadioButton2.TextAlign = ContentAlignment.MiddleCenter

    Me.RadioButton3.Location = New System.Drawing.Point(24,
 80)
    Me.RadioButton3.TabIndex = 3
    Me.RadioButton3.Text = "Cross"
    Me.RadioButton3.Tag = Cursors.Cross
    Me.RadioButton3.TextAlign = ContentAlignment.MiddleCenter

    ' Add the radio buttons to the GroupBox.  
    Me.GroupBox1.Controls.Add(Me.RadioButton1)
    Me.GroupBox1.Controls.Add(Me.RadioButton2)
    Me.GroupBox1.Controls.Add(Me.RadioButton3)

    ' Set the location of the GroupBox. 
    Me.GroupBox1.Location = New System.Drawing.Point(56,
 64)
    Me.GroupBox1.Size = New System.Drawing.Size(200,
 150)

    ' Set the text that will appear on the GroupBox.
    Me.GroupBox1.Text = "Choose a Cursor Style"
    '
    ' Add the GroupBox to the form.
    Me.Controls.Add(Me.GroupBox1)
    '

End Sub
internal System.Windows.Forms.GroupBox GroupBox1;
internal System.Windows.Forms.RadioButton RadioButton1;
internal System.Windows.Forms.RadioButton RadioButton2;
internal System.Windows.Forms.RadioButton RadioButton3;

private void InitializeRadioButtonsAndGroupBox()
{

    // Construct the GroupBox object.
    this.GroupBox1 = new GroupBox();

    // Construct the radio buttons.
    this.RadioButton1 = new System.Windows.Forms.RadioButton();
    this.RadioButton2 = new System.Windows.Forms.RadioButton();
    this.RadioButton3 = new System.Windows.Forms.RadioButton();

    // Set the location, tab and text for each radio button
    // to a cursor from the Cursors enumeration.
    this.RadioButton1.Location = new System.Drawing.Point(24,
 24);
    this.RadioButton1.TabIndex = 0;
    this.RadioButton1.Text = "Help";
    this.RadioButton1.Tag = Cursors.Help;
    this.RadioButton1.TextAlign = ContentAlignment.MiddleCenter;

    this.RadioButton2.Location = new System.Drawing.Point(24,
 56);
    this.RadioButton2.TabIndex = 1;
    this.RadioButton2.Text = "Up Arrow";
    this.RadioButton2.Tag = Cursors.UpArrow;
    this.RadioButton2.TextAlign = ContentAlignment.MiddleCenter;

    this.RadioButton3.Location = new System.Drawing.Point(24,
 80);
    this.RadioButton3.TabIndex = 3;
    this.RadioButton3.Text = "Cross";
    this.RadioButton3.Tag = Cursors.Cross;
    this.RadioButton3.TextAlign = ContentAlignment.MiddleCenter;
    
    
    // Add the radio buttons to the GroupBox.  
    this.GroupBox1.Controls.Add(this.RadioButton1);
    this.GroupBox1.Controls.Add(this.RadioButton2);
    this.GroupBox1.Controls.Add(this.RadioButton3);

    // Set the location of the GroupBox. 
    this.GroupBox1.Location = new System.Drawing.Point(56,
 64);
    this.GroupBox1.Size = new System.Drawing.Size(200,
 150);

    // Set the text that will appear on the GroupBox.
    this.GroupBox1.Text = "Choose a Cursor Style";
    //
    // Add the GroupBox to the form.
    this.Controls.Add(this.GroupBox1);
    //

}
internal:
   System::Windows::Forms::GroupBox^ GroupBox1;
   System::Windows::Forms::RadioButton^ RadioButton1;
   System::Windows::Forms::RadioButton^ RadioButton2;
   System::Windows::Forms::RadioButton^ RadioButton3;

private:
   void InitializeRadioButtonsAndGroupBox()
   {
      
      // Construct the GroupBox object.
      this->GroupBox1 = gcnew GroupBox;
      
      // Construct the radio buttons.
      this->RadioButton1 = gcnew System::Windows::Forms::RadioButton;
      this->RadioButton2 = gcnew System::Windows::Forms::RadioButton;
      this->RadioButton3 = gcnew System::Windows::Forms::RadioButton;
      
      // Set the location, tab and text for each radio button
      // to a cursor from the Cursors enumeration.
      this->RadioButton1->Location = System::Drawing::Point(
 24, 24 );
      this->RadioButton1->TabIndex = 0;
      this->RadioButton1->Text = "Help";
      this->RadioButton1->Tag = Cursors::Help;
      this->RadioButton1->TextAlign = ContentAlignment::MiddleCenter;
      this->RadioButton2->Location = System::Drawing::Point(
 24, 56 );
      this->RadioButton2->TabIndex = 1;
      this->RadioButton2->Text = "Up Arrow";
      this->RadioButton2->Tag = Cursors::UpArrow;
      this->RadioButton2->TextAlign = ContentAlignment::MiddleCenter;
      this->RadioButton3->Location = System::Drawing::Point(
 24, 80 );
      this->RadioButton3->TabIndex = 3;
      this->RadioButton3->Text = "Cross";
      this->RadioButton3->Tag = Cursors::Cross;
      this->RadioButton3->TextAlign = ContentAlignment::MiddleCenter;
      
      // Add the radio buttons to the GroupBox.  
      this->GroupBox1->Controls->Add( this->RadioButton1
 );
      this->GroupBox1->Controls->Add( this->RadioButton2
 );
      this->GroupBox1->Controls->Add( this->RadioButton3
 );
      
      // Set the location of the GroupBox. 
      this->GroupBox1->Location = System::Drawing::Point(
 56, 64 );
      this->GroupBox1->Size = System::Drawing::Size( 200,
 150 );
      
      // Set the text that will appear on the GroupBox.
      this->GroupBox1->Text = "Choose a Cursor Style";
      
      //
      // Add the GroupBox to the form.
      this->Controls->Add( this->GroupBox1
 );
      
      //
   }
System.Windows.Forms.GroupBox groupBox1;
System.Windows.Forms.RadioButton radioButton1;
System.Windows.Forms.RadioButton radioButton2;
System.Windows.Forms.RadioButton radioButton3;

private void InitializeRadioButtonsAndGroupBox()
{
    // Construct the GroupBox object.
    this.groupBox1 = new GroupBox();

    // Construct the radio buttons.
    this.radioButton1 = new System.Windows.Forms.RadioButton();
    this.radioButton2 = new System.Windows.Forms.RadioButton();
    this.radioButton3 = new System.Windows.Forms.RadioButton();

    // Set the location, tab and text for each radio button
    // to a cursor from the Cursors enumeration.
    this.radioButton1.set_Location(new System.Drawing.Point(24,
 24));
    this.radioButton1.set_TabIndex(0);
    this.radioButton1.set_Text("Help");
    this.radioButton1.set_Tag(Cursors.get_Help());
    this.radioButton1.set_TextAlign(ContentAlignment.MiddleCenter);

    this.radioButton2.set_Location(new System.Drawing.Point(24,
 56));
    this.radioButton2.set_TabIndex(1);
    this.radioButton2.set_Text("Up Arrow");
    this.radioButton2.set_Tag(Cursors.get_UpArrow());
    this.radioButton2.set_TextAlign(ContentAlignment.MiddleCenter);

    this.radioButton3.set_Location(new System.Drawing.Point(24,
 80));
    this.radioButton3.set_TabIndex(3);
    this.radioButton3.set_Text("Cross");
    this.radioButton3.set_Tag(Cursors.get_Cross());
    this.radioButton3.set_TextAlign(ContentAlignment.MiddleCenter);

    // Add the radio buttons to the GroupBox.  
    this.groupBox1.get_Controls().Add(this.radioButton1);
    this.groupBox1.get_Controls().Add(this.radioButton2);
    this.groupBox1.get_Controls().Add(this.radioButton3);

    // Set the location of the GroupBox. 
    this.groupBox1.set_Location(new System.Drawing.Point(56,
 64));
    this.groupBox1.set_Size(new System.Drawing.Size(200,
 150));

    // Set the text that will appear on the GroupBox.
    this.groupBox1.set_Text("Choose a Cursor Style");
    //
    // Add the GroupBox to the form.
    this.get_Controls().Add(this.groupBox1);
    //
} //InitializeRadioButtonsAndGroupBox    
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

「Cursors.UpArrow プロパティ」の関連用語

Cursors.UpArrow プロパティのお隣キーワード
検索ランキング

   

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



Cursors.UpArrow プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS