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

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

TextBoxBase.HideSelection プロパティ

テキスト ボックス コントロールフォーカス失ったときに、そのコントロール選択されているテキスト強調表示されたままかどうかを示す値を取得または設定します

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

解説解説
使用例使用例

HideSelection プロパティ使用する方法次のコード例示します。この例を実行するには、次のコードフォーム貼り付けます。そして、フォームコンストラクタまたは Load メソッドInitializeTextBox メソッド呼び出します。

'Declare a textbox called TextBox1.
Friend WithEvents TextBox1 As
 System.Windows.Forms.TextBox

'Initialize TextBox1.
Private Sub InitializeTextBox()
    Me.TextBox1 = New TextBox
    Me.TextBox1.Location = New System.Drawing.Point(32,
 24)
    Me.TextBox1.Name = "TextBox1"
    Me.TextBox1.Size = New System.Drawing.Size(136,
 20)
    Me.TextBox1.TabIndex = 1
    Me.TextBox1.Text = "Type and hit enter
 here..."

    'Keep the selection highlighted, even after textbox loses focus.
    TextBox1.HideSelection = False
    Me.Controls.Add(TextBox1)
End Sub
//Declare a textbox called TextBox1.
internal System.Windows.Forms.TextBox TextBox1;

//Initialize TextBox1.
private void InitializeTextBox()
{
    this.TextBox1 = new TextBox();
    this.TextBox1.Location = new System.Drawing.Point(32,
 24);
    this.TextBox1.Name = "TextBox1";
    this.TextBox1.Size = new System.Drawing.Size(136,
 20);
    this.TextBox1.TabIndex = 1;
    this.TextBox1.Text = "Type and hit enter here...";

    //Keep the selection highlighted, even after textbox loses focus.
    TextBox1.HideSelection = false;
    this.Controls.Add(TextBox1);
}
   //Declare a textbox called TextBox1.
internal:
   System::Windows::Forms::TextBox^ TextBox1;

private:

   //Initialize TextBox1.
   void InitializeTextBox()
   {
      this->TextBox1 = gcnew TextBox;
      this->TextBox1->Location = System::Drawing::Point(
 32, 24 );
      this->TextBox1->Name = "TextBox1";
      this->TextBox1->Size = System::Drawing::Size( 136,
 20 );
      this->TextBox1->TabIndex = 1;
      this->TextBox1->Text = "Type and hit enter here...";
      
      //Keep the selection highlighted, even after textbox loses focus.
      TextBox1->HideSelection = false;
      this->Controls->Add( TextBox1 );
   }
//Declare a textbox called TextBox1.
System.Windows.Forms.TextBox textBox1;

//Initialize TextBox1.
private void InitializeTextBox()
{
    this.textBox1 = new TextBox();
    this.textBox1.set_Location(new System.Drawing.Point(32,
 24));
    this.textBox1.set_Name("TextBox1");
    this.textBox1.set_Size(new System.Drawing.Size(136,
 20));
    this.textBox1.set_TabIndex(1);
    this.textBox1.set_Text("Type and hit enter here...");
    //Keep the selection highlighted, even after textbox loses focus.
    textBox1.set_HideSelection(false);
    this.get_Controls().Add(textBox1);
} //InitializeTextBox
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

「TextBoxBase.HideSelection プロパティ」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS