ListControl クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
public ref class ListControl abstract : System::Windows::Forms::Control
public abstract class ListControl : System.Windows.Forms.Control
[System.ComponentModel.LookupBindingProperties("DataSource", "DisplayMember", "ValueMember", "SelectedValue")]
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class ListControl : System.Windows.Forms.Control
type ListControl = class
inherit Control
[<System.ComponentModel.LookupBindingProperties("DataSource", "DisplayMember", "ValueMember", "SelectedValue")>]
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type ListControl = class
inherit Control
Public MustInherit Class ListControl
Inherits Control
- 継承
- 派生
- 属性
例
次のコード例は、DataSource クラスによって実装されるDisplayMember クラスのValueMember、SelectedValue、ListControl、およびListBoxメンバーを使用する方法を示す完全なアプリケーションです。 この例では、 ArrayList とリスト ボックスを読み込みます。 ユーザーがリスト ボックスで項目を選択すると、選択した値を使用して、選択した項目に関連付けられているデータが返されます。
#using <System.dll>
#using <System.Drawing.dll>
#using <System.Windows.Forms.dll>
using namespace System;
using namespace System::Windows::Forms;
using namespace System::Drawing;
using namespace System::Collections;
public ref class USState
{
private:
String^ myShortName;
String^ myLongName;
public:
USState( String^ strLongName, String^ strShortName )
{
this->myShortName = strShortName;
this->myLongName = strLongName;
}
property String^ ShortName
{
String^ get()
{
return myShortName;
}
}
property String^ LongName
{
String^ get()
{
return myLongName;
}
}
};
public ref class ListBoxSample3: public Form
{
private:
ListBox^ ListBox1;
Label^ label1;
TextBox^ textBox1;
public:
ListBoxSample3()
{
ListBox1 = gcnew ListBox;
label1 = gcnew Label;
textBox1 = gcnew TextBox;
this->ClientSize = System::Drawing::Size(307, 206 );
this->Text = "ListBox Sample3";
ListBox1->Location = Point(54,16);
ListBox1->Name = "ListBox1";
ListBox1->Size = System::Drawing::Size( 240, 130 );
label1->Location = Point(14,150);
label1->Name = "label1";
label1->Size = System::Drawing::Size(40, 24);
label1->Text = "Value";
textBox1->Location = Point(54,150);
textBox1->Name = "textBox1";
textBox1->Size = System::Drawing::Size( 240, 24 );
array<Control^>^temp2 = {ListBox1,label1, textBox1};
this->Controls->AddRange( temp2 );
// Populate the list box using an array as DataSource.
// DisplayMember is used to display just the long name of each state.
ArrayList^ USStates = gcnew ArrayList;
USStates->Add( gcnew USState( "Alabama","AL" ) );
USStates->Add( gcnew USState( "Washington","WA" ) );
USStates->Add( gcnew USState( "West Virginia","WV" ) );
USStates->Add( gcnew USState( "Wisconsin","WI" ) );
USStates->Add( gcnew USState( "Wyoming","WY" ) );
ListBox1->DataSource = USStates;
ListBox1->DisplayMember = "LongName";
ListBox1->ValueMember = "ShortName";
ListBox1->SelectedValueChanged += gcnew EventHandler( this, &ListBoxSample3::ListBox1_SelectedValueChanged );
ListBox1->SetSelected(0, false);
}
void InitializeComponent(){}
private:
void ListBox1_SelectedValueChanged( Object^ /*sender*/, EventArgs^ /*e*/ )
{
textBox1->Text="";
if ( ListBox1->SelectedIndex != -1 )
textBox1->Text = ListBox1->SelectedValue->ToString();
}
};
[STAThread]
int main()
{
Application::Run( gcnew ListBoxSample3 );
}
using System;
using System.Windows.Forms;
using System.Drawing;
using System.Collections;
namespace MyListControlSample
{
public class ListBoxSample3 : Form
{
private ListBox ListBox1 = new ListBox();
private Label label1 = new Label();
private TextBox textBox1 = new TextBox();
[STAThread]
static void Main()
{
Application.Run(new ListBoxSample3());
}
public ListBoxSample3()
{
this.ClientSize = new Size(307, 206);
this.Text = "ListBox Sample3";
ListBox1.Location = new Point(54, 16);
ListBox1.Name = "ListBox1";
ListBox1.Size = new Size(240, 130);
label1.Location = new Point(14, 150);
label1.Name = "label1";
label1.Size = new Size(40, 24);
label1.Text = "Value";
textBox1.Location = new Point(54, 150);
textBox1.Name = "textBox1";
textBox1.Size = new Size(240, 24);
this.Controls.AddRange(new Control[] { ListBox1, label1, textBox1 });
// Populate the list box using an array as DataSource.
ArrayList USStates = new ArrayList();
USStates.Add(new USState("Alabama", "AL"));
USStates.Add(new USState("Washington", "WA"));
USStates.Add(new USState("West Virginia", "WV"));
USStates.Add(new USState("Wisconsin", "WI"));
USStates.Add(new USState("Wyoming", "WY"));
ListBox1.DataSource = USStates;
// Set the long name as the property to be displayed and the short
// name as the value to be returned when a row is selected. Here
// these are properties; if we were binding to a database table or
// query these could be column names.
ListBox1.DisplayMember = "LongName";
ListBox1.ValueMember = "ShortName";
// Bind the SelectedValueChanged event to our handler for it.
ListBox1.SelectedValueChanged +=
new EventHandler(ListBox1_SelectedValueChanged);
// Ensure the form opens with no rows selected.
ListBox1.ClearSelected();
}
private void InitializeComponent()
{
}
private void ListBox1_SelectedValueChanged(object sender, EventArgs e)
{
if (ListBox1.SelectedIndex != -1)
{
textBox1.Text = ListBox1.SelectedValue.ToString();
// If we also wanted to get the displayed text we could use
// the SelectedItem item property:
// string s = ((USState)ListBox1.SelectedItem).LongName;
}
}
}
public class USState
{
private string myShortName;
private string myLongName;
public USState(string strLongName, string strShortName)
{
this.myShortName = strShortName;
this.myLongName = strLongName;
}
public string ShortName
{
get
{
return myShortName;
}
}
public string LongName
{
get
{
return myLongName;
}
}
}
}
Imports System.Windows.Forms
Imports System.Drawing
Imports System.Collections
Public Class ListBoxSample3
Inherits Form
Private ListBox1 As New ListBox()
Private label1 As New Label()
Private textBox1 As New TextBox()
<STAThread()> _
Shared Sub Main()
Application.Run(New ListBoxSample3())
End Sub
Public Sub New()
Me.ClientSize = New Size(307, 206)
Me.Text = "ListBox Sample3"
ListBox1.Location = New Point(54, 16)
ListBox1.Name = "ListBox1"
ListBox1.Size = New Size(240, 130)
label1.Location = New Point(14, 150)
label1.Name = "label1"
label1.Size = New Size(40, 24)
label1.Text = "Value"
textBox1.Location = New Point(54, 150)
textBox1.Name = "textBox1"
textBox1.Size = New Size(240, 24)
Me.Controls.AddRange(New Control() {ListBox1, label1, textBox1})
' Populate the list box using an array as DataSource.
Dim USStates As New ArrayList()
USStates.Add(New USState("Alabama", "AL"))
USStates.Add(New USState("Washington", "WA"))
USStates.Add(New USState("West Virginia", "WV"))
USStates.Add(New USState("Wisconsin", "WI"))
USStates.Add(New USState("Wyoming", "WY"))
ListBox1.DataSource = USStates
' Set the long name as the property to be displayed and the short
' name as the value to be returned when a row is selected. Here
' these are properties; if we were binding to a database table or
' query these could be column names.
ListBox1.DisplayMember = "LongName"
ListBox1.ValueMember = "ShortName"
' Bind the SelectedValueChanged event to our handler for it.
AddHandler ListBox1.SelectedValueChanged, AddressOf ListBox1_SelectedValueChanged
' Ensure the form opens with no rows selected.
ListBox1.ClearSelected()
End Sub
Private Sub InitializeComponent()
End Sub
Private Sub ListBox1_SelectedValueChanged(ByVal sender As Object, ByVal e As EventArgs)
If ListBox1.SelectedIndex <> -1 Then
textBox1.Text = ListBox1.SelectedValue.ToString()
' If we also wanted to get the displayed text we could use
' the SelectedItem item property:
' Dim s = CType(ListBox1.SelectedItem, USState).LongName
End If
End Sub
End Class
Public Class USState
Private myShortName As String
Private myLongName As String
Public Sub New(ByVal strLongName As String, ByVal strShortName As String)
Me.myShortName = strShortName
Me.myLongName = strLongName
End Sub
Public ReadOnly Property ShortName() As String
Get
Return myShortName
End Get
End Property
Public ReadOnly Property LongName() As String
Get
Return myLongName
End Get
End Property
End Class
注釈
ListControl クラスは、ListBoxコントロールとComboBox コントロールの共通要素の実装を提供します。
データ バインド ListBox または ComboBoxのユーザーには、 DataSource、 DisplayMember、 SelectedValue、および ValueMember プロパティのプロパティが主に考慮されます。
コンストラクター
| 名前 | 説明 |
|---|---|
| ListControl() |
ListControl クラスの新しいインスタンスを初期化します。 |
プロパティ
| 名前 | 説明 |
|---|---|
| AccessibilityObject |
コントロールに割り当てられた AccessibleObject を取得します。 (継承元 Control) |
| AccessibleDefaultActionDescription |
アクセシビリティ クライアント アプリケーションで使用するコントロールの既定のアクションの説明を取得または設定します。 (継承元 Control) |
| AccessibleDescription |
アクセシビリティ クライアント アプリケーションで使用されるコントロールの説明を取得または設定します。 (継承元 Control) |
| AccessibleName |
アクセシビリティ クライアント アプリケーションで使用されるコントロールの名前を取得または設定します。 (継承元 Control) |
| AccessibleRole |
コントロールのアクセス可能なロールを取得または設定します。 (継承元 Control) |
| AllowDrop |
ユーザーがドラッグしたデータをコントロールが受け入れられるかどうかを示す値を取得または設定します。 (継承元 Control) |
| AllowSelection |
リストがリスト アイテムの選択を有効にするかどうかを示す値を取得します。 |
| Anchor |
コントロールがバインドされるコンテナーの端を取得または設定し、コントロールのサイズを親と共に変更する方法を決定します。 (継承元 Control) |
| AutoScrollOffset |
ScrollControlIntoView(Control)でこのコントロールをスクロールする場所を取得または設定します。 (継承元 Control) |
| AutoSize |
このプロパティは、このクラスには関係ありません。 (継承元 Control) |
| BackColor |
コントロールの背景色を取得または設定します。 (継承元 Control) |
| BackgroundImage |
コントロールに表示される背景イメージを取得または設定します。 (継承元 Control) |
| BackgroundImageLayout |
ImageLayout列挙体で定義されている背景画像のレイアウトを取得または設定します。 (継承元 Control) |
| BindingContext |
コントロールの BindingContext を取得または設定します。 (継承元 Control) |
| Bottom |
コントロールの下端とコンテナーのクライアント領域の上端との間の距離をピクセル単位で取得します。 (継承元 Control) |
| Bounds |
親コントロールに対する非クライアント要素を含むコントロールのサイズと位置をピクセル単位で取得または設定します。 (継承元 Control) |
| CanEnableIme |
IME サポートを有効にするために、 ImeMode プロパティをアクティブな値に設定できるかどうかを示す値を取得します。 (継承元 Control) |
| CanFocus |
コントロールがフォーカスを受け取ることができるかどうかを示す値を取得します。 (継承元 Control) |
| CanRaiseEvents |
コントロールでイベントを発生できるかどうかを判断します。 (継承元 Control) |
| CanSelect |
コントロールを選択できるかどうかを示す値を取得します。 (継承元 Control) |
| Capture |
コントロールがマウスをキャプチャしたかどうかを示す値を取得または設定します。 (継承元 Control) |
| CausesValidation |
コントロールがフォーカスを受け取ったときに検証を必要とするコントロールに対して検証を実行するかどうかを示す値を取得または設定します。 (継承元 Control) |
| ClientRectangle |
コントロールのクライアント領域を表す四角形を取得します。 (継承元 Control) |
| ClientSize |
コントロールのクライアント領域の高さと幅を取得または設定します。 (継承元 Control) |
| CompanyName |
コントロールを含むアプリケーションの会社または作成者の名前を取得します。 (継承元 Control) |
| Container |
IContainerを含むComponentを取得します。 (継承元 Component) |
| ContainsFocus |
コントロールまたはその子コントロールの 1 つが現在入力フォーカスを持っているかどうかを示す値を取得します。 (継承元 Control) |
| ContextMenu |
コントロールに関連付けられているショートカット メニューを取得または設定します。 (継承元 Control) |
| ContextMenuStrip |
このコントロールに関連付けられている ContextMenuStrip を取得または設定します。 (継承元 Control) |
| Controls |
コントロール内に含まれるコントロールのコレクションを取得します。 (継承元 Control) |
| Created |
コントロールが作成されたかどうかを示す値を取得します。 (継承元 Control) |
| CreateParams |
コントロール ハンドルの作成時に必要な作成パラメーターを取得します。 (継承元 Control) |
| Cursor |
マウス ポインターがコントロールの上にあるときに表示されるカーソルを取得または設定します。 (継承元 Control) |
| DataBindings |
コントロールのデータ バインディングを取得します。 (継承元 Control) |
| DataManager |
このコントロールに関連付けられている CurrencyManager を取得します。 |
| DataSource |
この ListControlのデータ ソースを取得または設定します。 |
| DefaultCursor |
コントロールの既定のカーソルを取得または設定します。 (継承元 Control) |
| DefaultImeMode |
コントロールでサポートされている既定の入力メソッド エディター (IME) モードを取得します。 (継承元 Control) |
| DefaultMargin |
コントロール間で既定で指定されているスペースをピクセル単位で取得します。 (継承元 Control) |
| DefaultMaximumSize |
コントロールの既定の最大サイズとして指定されている長さと高さをピクセル単位で取得します。 (継承元 Control) |
| DefaultMinimumSize |
コントロールの既定の最小サイズとして指定されている長さと高さをピクセル単位で取得します。 (継承元 Control) |
| DefaultPadding |
コントロールの内容の既定の内部間隔 (ピクセル単位) を取得します。 (継承元 Control) |
| DefaultSize |
コントロールの既定のサイズを取得します。 (継承元 Control) |
| DesignMode |
Componentが現在デザイン モードであるかどうかを示す値を取得します。 (継承元 Component) |
| DeviceDpi |
コントロールが現在表示されているディスプレイ デバイスの DPI 値を取得します。 (継承元 Control) |
| DisplayMember |
この ListControlに表示するプロパティを取得または設定します。 |
| DisplayRectangle |
コントロールの表示領域を表す四角形を取得します。 (継承元 Control) |
| Disposing |
基底 Control クラスが破棄中かどうかを示す値を取得します。 (継承元 Control) |
| Dock |
親コントロールにドッキングされるコントロールの境界線を取得または設定し、コントロールのサイズを親コントロールと共に変更する方法を決定します。 (継承元 Control) |
| DoubleBuffered |
ちらつきを減らすか防止するために、このコントロールがセカンダリ バッファーを使用してそのサーフェスを再描画する必要があるかどうかを示す値を取得または設定します。 (継承元 Control) |
| Enabled |
コントロールがユーザーの操作に応答できるかどうかを示す値を取得または設定します。 (継承元 Control) |
| Events |
この Componentにアタッチされているイベント ハンドラーの一覧を取得します。 (継承元 Component) |
| Focused |
コントロールに入力フォーカスがあるかどうかを示す値を取得します。 (継承元 Control) |
| Font |
コントロールによって表示されるテキストのフォントを取得または設定します。 (継承元 Control) |
| FontHeight |
コントロールのフォントの高さを取得または設定します。 (継承元 Control) |
| ForeColor |
コントロールの前景色を取得または設定します。 (継承元 Control) |
| FormatInfo |
カスタム書式設定動作を提供する IFormatProvider を取得または設定します。 |
| FormatString |
値の表示方法を示す書式指定子文字を取得または設定します。 |
| FormattingEnabled |
DisplayMemberのListControl プロパティに書式設定を適用するかどうかを示す値を取得または設定します。 |
| Handle |
コントロールがバインドされているウィンドウ ハンドルを取得します。 (継承元 Control) |
| HasChildren |
コントロールに 1 つ以上の子コントロールが含まれているかどうかを示す値を取得します。 (継承元 Control) |
| Height |
コントロールの高さを取得または設定します。 (継承元 Control) |
| ImeMode |
コントロールの入力メソッド エディター (IME) モードを取得または設定します。 (継承元 Control) |
| ImeModeBase |
コントロールの IME モードを取得または設定します。 (継承元 Control) |
| InvokeRequired |
呼び出し元がコントロールを作成したスレッドとは異なるスレッド上にあるため、呼び出し元がコントロールへのメソッド呼び出しを行うときに呼び出し元が呼び出しメソッドを呼び出す必要があるかどうかを示す値を取得します。 (継承元 Control) |
| IsAccessible |
コントロールがアクセシビリティ アプリケーションに表示されるかどうかを示す値を取得または設定します。 (継承元 Control) |
| IsDisposed |
コントロールが破棄されたかどうかを示す値を取得します。 (継承元 Control) |
| IsHandleCreated |
コントロールにハンドルが関連付けられているかどうかを示す値を取得します。 (継承元 Control) |
| IsMirrored |
コントロールがミラー化されているかどうかを示す値を取得します。 (継承元 Control) |
| LayoutEngine |
コントロールのレイアウト エンジンのキャッシュされたインスタンスを取得します。 (継承元 Control) |
| Left |
コントロールの左端からコンテナーのクライアント領域の左端までの距離をピクセル単位で取得または設定します。 (継承元 Control) |
| Location |
コンテナーの左上隅を基準としたコントロールの左上隅の座標を取得または設定します。 (継承元 Control) |
| Margin |
コントロール間のスペースを取得または設定します。 (継承元 Control) |
| MaximumSize |
GetPreferredSize(Size)が指定できる上限であるサイズを取得または設定します。 (継承元 Control) |
| MinimumSize |
GetPreferredSize(Size)が指定できる下限のサイズを取得または設定します。 (継承元 Control) |
| Name |
コントロールの名前を取得または設定します。 (継承元 Control) |
| Padding |
コントロール内のパディングを取得または設定します。 (継承元 Control) |
| Parent |
コントロールの親コンテナーを取得または設定します。 (継承元 Control) |
| PreferredSize |
コントロールが収まる四角形領域のサイズを取得します。 (継承元 Control) |
| ProductName |
コントロールを含むアセンブリの製品名を取得します。 (継承元 Control) |
| ProductVersion |
コントロールを含むアセンブリのバージョンを取得します。 (継承元 Control) |
| RecreatingHandle |
コントロールがハンドルを現在再作成しているかどうかを示す値を取得します。 (継承元 Control) |
| Region |
コントロールに関連付けられているウィンドウ領域を取得または設定します。 (継承元 Control) |
| RenderRightToLeft |
古い.
このプロパティは廃止されました。 (継承元 Control) |
| ResizeRedraw |
サイズ変更時にコントロール自体を再描画するかどうかを示す値を取得または設定します。 (継承元 Control) |
| Right |
コントロールの右端とコンテナーのクライアント領域の左端との間の距離 (ピクセル単位) を取得します。 (継承元 Control) |
| RightToLeft |
右から左へのフォントを使用してロケールをサポートするようにコントロールの要素を配置するかどうかを示す値を取得または設定します。 (継承元 Control) |
| ScaleChildren |
子コントロールのスケーリングを決定する値を取得します。 (継承元 Control) |
| SelectedIndex |
派生クラスでオーバーライドされると、現在選択されている項目の 0 から始まるインデックスを取得または設定します。 |
| SelectedValue |
ValueMember プロパティで指定されたメンバー プロパティの値を取得または設定します。 |
| ShowFocusCues |
コントロールにフォーカスの四角形を表示するかどうかを示す値を取得します。 (継承元 Control) |
| ShowKeyboardCues |
キーボード アクセラレータの表示と非表示を切り替えるために、ユーザー インターフェイスが適切な状態であるかどうかを示す値を取得します。 (継承元 Control) |
| Site |
コントロールのサイトを取得または設定します。 (継承元 Control) |
| Size |
コントロールの高さと幅を取得または設定します。 (継承元 Control) |
| TabIndex |
コンテナー内のコントロールのタブ オーダーを取得または設定します。 (継承元 Control) |
| TabStop |
Tab キーを使用してユーザーがこのコントロールにフォーカスを与えることができるかどうかを示す値を取得または設定します。 (継承元 Control) |
| Tag |
コントロールに関するデータを含むオブジェクトを取得または設定します。 (継承元 Control) |
| Text |
このコントロールに関連付けられているテキストを取得または設定します。 (継承元 Control) |
| Top |
コントロールの上端とそのコンテナーのクライアント領域の上端との間の距離をピクセル単位で取得または設定します。 (継承元 Control) |
| TopLevelControl |
別のWindows フォーム コントロールによって親にされていない親コントロールを取得します。 通常、これはコントロールが含まれている最も外側の Form です。 (継承元 Control) |
| UseWaitCursor |
現在のコントロールとすべての子コントロールに対して待機カーソルを使用するかどうかを示す値を取得または設定します。 (継承元 Control) |
| ValueMember |
ListControl内の項目の実際の値として使用するプロパティのパスを取得または設定します。 |
| Visible |
コントロールとそのすべての子コントロールを表示するかどうかを示す値を取得または設定します。 (継承元 Control) |
| Width |
コントロールの幅を取得または設定します。 (継承元 Control) |
| WindowTarget |
このプロパティは、このクラスには関係ありません。 (継承元 Control) |
メソッド
イベント
| 名前 | 説明 |
|---|---|
| AutoSizeChanged |
このイベントは、このクラスには関係ありません。 (継承元 Control) |
| BackColorChanged |
BackColor プロパティの値が変化したときに発生します。 (継承元 Control) |
| BackgroundImageChanged |
BackgroundImage プロパティの値が変化したときに発生します。 (継承元 Control) |
| BackgroundImageLayoutChanged |
BackgroundImageLayout プロパティが変更されたときに発生します。 (継承元 Control) |
| BindingContextChanged |
BindingContext プロパティの値が変化したときに発生します。 (継承元 Control) |
| CausesValidationChanged |
CausesValidation プロパティの値が変化したときに発生します。 (継承元 Control) |
| ChangeUICues |
フォーカスまたはキーボード のユーザー インターフェイス (UI) キューが変更されたときに発生します。 (継承元 Control) |
| Click |
コントロールがクリックされたときに発生します。 (継承元 Control) |
| ClientSizeChanged |
ClientSize プロパティの値が変化したときに発生します。 (継承元 Control) |
| ContextMenuChanged |
ContextMenu プロパティの値が変化したときに発生します。 (継承元 Control) |
| ContextMenuStripChanged |
ContextMenuStrip プロパティの値が変化したときに発生します。 (継承元 Control) |
| ControlAdded |
新しいコントロールが Control.ControlCollectionに追加されたときに発生します。 (継承元 Control) |
| ControlRemoved |
コントロールが Control.ControlCollectionから削除されたときに発生します。 (継承元 Control) |
| CursorChanged |
Cursor プロパティの値が変化したときに発生します。 (継承元 Control) |
| DataSourceChanged |
DataSourceが変更されたときに発生します。 |
| DisplayMemberChanged |
DisplayMember プロパティが変更されたときに発生します。 |
| Disposed |
コンポーネントが Dispose() メソッドの呼び出しによって破棄されるときに発生します。 (継承元 Component) |
| DockChanged |
Dock プロパティの値が変化したときに発生します。 (継承元 Control) |
| DoubleClick |
コントロールがダブルクリックされたときに発生します。 (継承元 Control) |
| DpiChangedAfterParent |
親コントロールまたはフォームの DPI が変更された後に、コントロールの DPI 設定がプログラムによって変更されたときに発生します。 (継承元 Control) |
| DpiChangedBeforeParent |
親コントロールまたはフォームの DPI 変更イベントが発生する前に、コントロールの DPI 設定がプログラムによって変更されたときに発生します。 (継承元 Control) |
| DragDrop |
ドラッグ アンド ドロップ操作が完了したときに発生します。 (継承元 Control) |
| DragEnter |
オブジェクトがコントロールの境界にドラッグされたときに発生します。 (継承元 Control) |
| DragLeave |
オブジェクトがコントロールの境界からドラッグされたときに発生します。 (継承元 Control) |
| DragOver |
オブジェクトがコントロールの境界上にドラッグされたときに発生します。 (継承元 Control) |
| EnabledChanged |
Enabled プロパティ値が変更されたときに発生します。 (継承元 Control) |
| Enter |
コントロールが入力されたときに発生します。 (継承元 Control) |
| FontChanged |
Font プロパティ値が変更されたときに発生します。 (継承元 Control) |
| ForeColorChanged |
ForeColor プロパティ値が変更されたときに発生します。 (継承元 Control) |
| Format |
コントロールがデータ値にバインドされたときに発生します。 |
| FormatInfoChanged |
FormatInfo プロパティの値が変化したときに発生します。 |
| FormatStringChanged |
FormatString プロパティの値が変更されたときに発生します。 |
| FormattingEnabledChanged |
FormattingEnabled プロパティの値が変化したときに発生します。 |
| GiveFeedback |
ドラッグ操作中に発生します。 (継承元 Control) |
| GotFocus |
コントロールがフォーカスを受け取ったときに発生します。 (継承元 Control) |
| HandleCreated |
コントロールのハンドルが作成されたときに発生します。 (継承元 Control) |
| HandleDestroyed |
コントロールのハンドルが破棄処理中に発生します。 (継承元 Control) |
| HelpRequested |
ユーザーがコントロールのヘルプを要求したときに発生します。 (継承元 Control) |
| ImeModeChanged |
ImeMode プロパティが変更されたときに発生します。 (継承元 Control) |
| Invalidated |
コントロールの表示に再描画が必要な場合に発生します。 (継承元 Control) |
| KeyDown |
コントロールにフォーカスがあるときにキーが押されたときに発生します。 (継承元 Control) |
| KeyPress |
コントロールにフォーカスがあるときに文字、スペース、またはバックスペース キーが押されたときに発生します。 (継承元 Control) |
| KeyUp |
コントロールにフォーカスがあるときにキーが離されたときに発生します。 (継承元 Control) |
| Layout |
コントロールの子コントロールの位置を変更する必要があるときに発生します。 (継承元 Control) |
| Leave |
入力フォーカスがコントロールから離れると発生します。 (継承元 Control) |
| LocationChanged |
Location プロパティ値が変更されたときに発生します。 (継承元 Control) |
| LostFocus |
コントロールがフォーカスを失ったときに発生します。 (継承元 Control) |
| MarginChanged |
コントロールの余白が変更されたときに発生します。 (継承元 Control) |
| MouseCaptureChanged |
コントロールがマウス キャプチャを失ったときに発生します。 (継承元 Control) |
| MouseClick |
コントロールがマウスでクリックされたときに発生します。 (継承元 Control) |
| MouseDoubleClick |
コントロールがマウスでダブルクリックされたときに発生します。 (継承元 Control) |
| MouseDown |
マウス ポインターがコントロールの上にあり、マウス ボタンが押されたときに発生します。 (継承元 Control) |
| MouseEnter |
マウス ポインターがコントロールに入ったときに発生します。 (継承元 Control) |
| MouseHover |
マウス ポインターがコントロール上にあるときに発生します。 (継承元 Control) |
| MouseLeave |
マウス ポインターがコントロールから離れると発生します。 (継承元 Control) |
| MouseMove |
マウス ポインターがコントロールの上に移動したときに発生します。 (継承元 Control) |
| MouseUp |
マウス ポインターがコントロールの上にあり、マウス ボタンが離されたときに発生します。 (継承元 Control) |
| MouseWheel |
コントロールにフォーカスがあるときにマウス ホイールが移動したときに発生します。 (継承元 Control) |
| Move |
コントロールが移動されたときに発生します。 (継承元 Control) |
| PaddingChanged |
コントロールのパディングが変更されたときに発生します。 (継承元 Control) |
| Paint |
コントロールが再描画されたときに発生します。 (継承元 Control) |
| ParentChanged |
Parent プロパティ値が変更されたときに発生します。 (継承元 Control) |
| PreviewKeyDown |
フォーカスがこのコントロールにある間にキーが押されたときに、 KeyDown イベントの前に発生します。 (継承元 Control) |
| QueryAccessibilityHelp |
AccessibleObjectがアクセシビリティ アプリケーションにヘルプを提供しているときに発生します。 (継承元 Control) |
| QueryContinueDrag |
ドラッグ アンド ドロップ操作中に発生し、ドラッグ ソースがドラッグ アンド ドロップ操作を取り消す必要があるかどうかを判断できるようにします。 (継承元 Control) |
| RegionChanged |
Region プロパティの値が変化したときに発生します。 (継承元 Control) |
| Resize |
コントロールのサイズが変更されたときに発生します。 (継承元 Control) |
| RightToLeftChanged |
RightToLeft プロパティ値が変更されたときに発生します。 (継承元 Control) |
| SelectedValueChanged |
SelectedValue プロパティが変更されたときに発生します。 |
| SizeChanged |
Size プロパティ値が変更されたときに発生します。 (継承元 Control) |
| StyleChanged |
コントロール スタイルが変更されたときに発生します。 (継承元 Control) |
| SystemColorsChanged |
システムの色が変更されたときに発生します。 (継承元 Control) |
| TabIndexChanged |
TabIndex プロパティ値が変更されたときに発生します。 (継承元 Control) |
| TabStopChanged |
TabStop プロパティ値が変更されたときに発生します。 (継承元 Control) |
| TextChanged |
Text プロパティ値が変更されたときに発生します。 (継承元 Control) |
| Validated |
コントロールの検証が完了したときに発生します。 (継承元 Control) |
| Validating |
コントロールが検証中に発生します。 (継承元 Control) |
| ValueMemberChanged |
ValueMember プロパティが変更されたときに発生します。 |
| VisibleChanged |
Visible プロパティ値が変更されたときに発生します。 (継承元 Control) |
明示的なインターフェイスの実装
| 名前 | 説明 |
|---|---|
| IDropTarget.OnDragDrop(DragEventArgs) |
DragDrop イベントを発生させます。 (継承元 Control) |
| IDropTarget.OnDragEnter(DragEventArgs) |
DragEnter イベントを発生させます。 (継承元 Control) |
| IDropTarget.OnDragLeave(EventArgs) |
DragLeave イベントを発生させます。 (継承元 Control) |
| IDropTarget.OnDragOver(DragEventArgs) |
DragOver イベントを発生させます。 (継承元 Control) |