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

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

Binding.PropertyName プロパティ

コントロールデータ連結プロパティの名前を取得または設定します

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

解説解説
使用例使用例

フォーム上のコントロールについて、それぞれの BindingPropertyName 値を出力するコード例次に示します

private void PrintPropertyNameAndIsBinding()
{
   foreach(Control thisControl in this.Controls)
   {
      foreach(Binding thisBinding in thisControl.DataBindings)
      {
         Console.WriteLine("\n" + thisControl.ToString());
         // Print the PropertyName value for each binding.
         Console.WriteLine(thisBinding.PropertyName);
      }
   }
}

private:
   void PrintPropertyNameAndIsBinding()
   {
      for each ( Control^ thisControl in this->Controls)
      {
         for each ( Binding^ thisBinding in
 thisControl->DataBindings )
         {
            Console::WriteLine( "\n {0}", thisControl );
            // Print the PropertyName value for each binding.
            Console::WriteLine( thisBinding->PropertyName );
         }
      }
   }
private void PrintPropertyNameAndIsBinding()
{
    for (int iCtr1 = 0; iCtr1 < this.get_Controls().get_Count();
 iCtr1++) {
        Control thisControl = this.get_Controls().get_Item(iCtr1);
        for (int iCtr2 = 0; 
            iCtr2 < thisControl.get_DataBindings().get_Count(); iCtr2++) {
            Binding thisBinding = 
                thisControl.get_DataBindings().get_Item(iCtr2);
            Console.WriteLine(("\n" + thisControl.ToString()));
            // Print the PropertyName value for each binding.
            Console.WriteLine(thisBinding.get_PropertyName());
        }
    }
} //PrintPropertyNameAndIsBinding
private function PrintPropertyNameAndIsBinding()
{
   for(var thisControl : Control in this.Controls)
   {
      for(var thisBinding : Binding in thisControl.DataBindings)
      {
         Console.WriteLine("\n" + thisControl.ToString());
         // Print the PropertyName value for each binding.
         Console.WriteLine(thisBinding.PropertyName);
      }
   }
}

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

「Binding.PropertyName プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS