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

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

RadioButton.CheckAlign プロパティ

RadioButtonチェック ボックス部分位置取得または設定します

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

<LocalizableAttribute(True)> _
Public Property CheckAlign As
 ContentAlignment
Dim instance As RadioButton
Dim value As ContentAlignment

value = instance.CheckAlign

instance.CheckAlign = value
[LocalizableAttribute(true)] 
public ContentAlignment CheckAlign { get; set;
 }
[LocalizableAttribute(true)] 
public:
property ContentAlignment CheckAlign {
    ContentAlignment get ();
    void set (ContentAlignment value);
}
/** @property */
public ContentAlignment get_CheckAlign ()

/** @property */
public void set_CheckAlign (ContentAlignment
 value)
public function get CheckAlign
 () : ContentAlignment

public function set CheckAlign
 (value : ContentAlignment)

プロパティ
有効な ContentAlignment 値の 1 つ既定値は MiddleLeft です。

例外例外
例外種類条件

InvalidEnumArgumentException

代入された値が、ContentAlignment 値ではありません。

使用例使用例

CheckAlign プロパティ実行時変更する方法次のコード例示しますChecked 値が変更されると、RadioButtonチェック ボックス部分テキスト左右に移動します。この例は、RadioButton コントロールフォーム上でインスタンス化されていること、および System.Drawing 名前空間への参照含まれていることを前提にしています。

Private Sub radioButton1_CheckedChanged(sender
 As Object, e As EventArgs)
    ' Change the check box position to be opposite its current position.
    If radioButton1.CheckAlign = ContentAlignment.MiddleLeft Then
        radioButton1.CheckAlign = ContentAlignment.MiddleRight
    Else
        radioButton1.CheckAlign = ContentAlignment.MiddleLeft
    End If
End Sub

private void radioButton1_CheckedChanged(Object
 sender, 
                                         EventArgs e)
{
   // Change the check box position to be opposite its current position.
   if (radioButton1.CheckAlign == ContentAlignment.MiddleLeft)
   {
      radioButton1.CheckAlign = ContentAlignment.MiddleRight;
   }
   else
   {
      radioButton1.CheckAlign = ContentAlignment.MiddleLeft;
   }
}

private:
   Void radioButton1_CheckedChanged( System::Object^ sender,
      System::EventArgs^ e )
   {
      // Change the check box position to be opposite its current position.
      if ( radioButton1->CheckAlign == ContentAlignment::MiddleLeft
 )
      {
         radioButton1->CheckAlign = ContentAlignment::MiddleRight;
      }
      else
      {
         radioButton1->CheckAlign = ContentAlignment::MiddleLeft;
      }
   }
private void radioButton1_CheckedChanged(Object
 sender, EventArgs e)
{
    // Change the check box position to be opposite its current position.
    if (radioButton1.get_CheckAlign().Equals(ContentAlignment.MiddleLeft))
 {
        radioButton1.set_CheckAlign(ContentAlignment.MiddleRight);
    }
    else {
        radioButton1.set_CheckAlign(ContentAlignment.MiddleLeft);
    }
} //radioButton1_CheckedChanged
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からRadioButton.CheckAlign プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からRadioButton.CheckAlign プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からRadioButton.CheckAlign プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS