ByteViewer クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
バイト配列を 16 進数、ANSI、Unicode 形式で表示します。
public ref class ByteViewer : System::Windows::Forms::Control
public ref class ByteViewer : System::Windows::Forms::TableLayoutPanel
public class ByteViewer : System.Windows.Forms.Control
public class ByteViewer : System.Windows.Forms.TableLayoutPanel
type ByteViewer = class
inherit Control
type ByteViewer = class
inherit TableLayoutPanel
Public Class ByteViewer
Inherits Control
Public Class ByteViewer
Inherits TableLayoutPanel
- 継承
- 継承
例
次のコード例では、FormでByteViewer コントロールをホストし、ByteViewerを構成および制御するためのインターフェイスを提供します。
#using <System.Windows.Forms.dll>
#using <System.dll>
#using <System.Drawing.dll>
#using <System.Design.dll>
using namespace System;
using namespace System::Drawing;
using namespace System::Collections;
using namespace System::ComponentModel;
using namespace System::ComponentModel::Design;
using namespace System::Windows::Forms;
public ref class ByteViewerForm: public System::Windows::Forms::Form
{
private:
System::Windows::Forms::Button^ button1;
System::Windows::Forms::Button^ button2;
System::ComponentModel::Design::ByteViewer^ byteviewer;
public:
ByteViewerForm()
{
// Initialize the controls other than the ByteViewer.
InitializeForm();
// Initialize the ByteViewer.
byteviewer = gcnew ByteViewer;
byteviewer->Location = Point(8,46);
byteviewer->Size = System::Drawing::Size( 600, 338 );
byteviewer->Anchor = static_cast<AnchorStyles>(AnchorStyles::Left | AnchorStyles::Bottom | AnchorStyles::Top);
byteviewer->SetBytes( (array<Byte>^)Array::CreateInstance( Byte::typeid, 0 ) );
this->Controls->Add( byteviewer );
}
private:
// Show a file selection dialog and cues the byte viewer to
// load the data in a selected file.
void loadBytesFromFile( Object^ /*sender*/, EventArgs^ /*e*/ )
{
OpenFileDialog^ ofd = gcnew OpenFileDialog;
if ( ofd->ShowDialog() != ::DialogResult::OK )
return;
byteviewer->SetFile( ofd->FileName );
}
// Clear the bytes in the byte viewer.
void clearBytes( Object^ /*sender*/, EventArgs^ /*e*/ )
{
byteviewer->SetBytes( (array<Byte>^)Array::CreateInstance( Byte::typeid, 0 ) );
}
// Changes the display mode of the byte viewer according to the
// Text property of the RadioButton sender control.
void changeByteMode( Object^ sender, EventArgs^ /*e*/ )
{
System::Windows::Forms::RadioButton^ rbutton = dynamic_cast<System::Windows::Forms::RadioButton^>(sender);
DisplayMode mode;
if ( rbutton->Text->Equals( "ANSI" ) )
{
mode = DisplayMode::Ansi;
}
else
if ( rbutton->Text->Equals( "Hex" ) )
{
mode = DisplayMode::Hexdump;
}
else
if ( rbutton->Text->Equals( "Unicode" ) )
{
mode = DisplayMode::Unicode;
}
else
{
mode = DisplayMode::Auto;
}
// Sets the display mode.
byteviewer->SetDisplayMode( mode );
}
void InitializeForm()
{
this->SuspendLayout();
this->ClientSize = System::Drawing::Size( 680, 440 );
this->MinimumSize = System::Drawing::Size( 660, 400 );
this->Size = System::Drawing::Size( 680, 440 );
this->Name = "Byte Viewer Form";
this->Text = "Byte Viewer Form";
this->button1 = gcnew System::Windows::Forms::Button;
this->button1->Location = System::Drawing::Point( 8, 8 );
this->button1->Size = System::Drawing::Size( 190, 23 );
this->button1->Name = "button1";
this->button1->Text = "Set Bytes From File...";
this->button1->TabIndex = 0;
this->button1->Click += gcnew EventHandler( this, &ByteViewerForm::loadBytesFromFile );
this->Controls->Add( this->button1 );
this->button2 = gcnew System::Windows::Forms::Button;
this->button2->Location = System::Drawing::Point( 198, 8 );
this->button2->Size = System::Drawing::Size( 190, 23 );
this->button2->Name = "button2";
this->button2->Text = "Clear Bytes";
this->button2->Click += gcnew EventHandler( this, &ByteViewerForm::clearBytes );
this->button2->TabIndex = 1;
this->Controls->Add( this->button2 );
System::Windows::Forms::GroupBox^ group = gcnew System::Windows::Forms::GroupBox;
group->Location = Point(418,3);
group->Size = System::Drawing::Size( 220, 36 );
group->Text = "Display Mode";
this->Controls->Add( group );
System::Windows::Forms::RadioButton^ rbutton1 = gcnew System::Windows::Forms::RadioButton;
rbutton1->Location = Point(6,15);
rbutton1->Size = System::Drawing::Size( 46, 16 );
rbutton1->Text = "Auto";
rbutton1->Checked = true;
rbutton1->Click += gcnew EventHandler( this, &ByteViewerForm::changeByteMode );
group->Controls->Add( rbutton1 );
System::Windows::Forms::RadioButton^ rbutton2 = gcnew System::Windows::Forms::RadioButton;
rbutton2->Location = Point(54,15);
rbutton2->Size = System::Drawing::Size( 50, 16 );
rbutton2->Text = "ANSI";
rbutton2->Click += gcnew EventHandler( this, &ByteViewerForm::changeByteMode );
group->Controls->Add( rbutton2 );
System::Windows::Forms::RadioButton^ rbutton3 = gcnew System::Windows::Forms::RadioButton;
rbutton3->Location = Point(106,15);
rbutton3->Size = System::Drawing::Size( 46, 16 );
rbutton3->Text = "Hex";
rbutton3->Click += gcnew EventHandler( this, &ByteViewerForm::changeByteMode );
group->Controls->Add( rbutton3 );
System::Windows::Forms::RadioButton^ rbutton4 = gcnew System::Windows::Forms::RadioButton;
rbutton4->Location = Point(152,15);
rbutton4->Size = System::Drawing::Size( 64, 16 );
rbutton4->Text = "Unicode";
rbutton4->Click += gcnew EventHandler( this, &ByteViewerForm::changeByteMode );
group->Controls->Add( rbutton4 );
this->ResumeLayout( false );
}
};
[STAThread]
int main()
{
Application::Run( gcnew ByteViewerForm );
}
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Windows.Forms;
namespace ByteViewerForm
{
public class ByteViewerForm : System.Windows.Forms.Form
{
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.ComponentModel.Design.ByteViewer byteviewer;
public ByteViewerForm()
{
// Initialize the controls other than the ByteViewer.
InitializeForm();
// Initialize the ByteViewer.
byteviewer = new ByteViewer();
byteviewer.Location = new Point( 8, 46 );
byteviewer.Size = new Size( 600, 338 );
byteviewer.Anchor = AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
byteviewer.SetBytes( new byte[] { } );
this.Controls.Add( byteviewer );
}
// Show a file selection dialog and cues the byte viewer to
// load the data in a selected file.
private void loadBytesFromFile(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
if( ofd.ShowDialog() != DialogResult.OK )
return;
byteviewer.SetFile(ofd.FileName);
}
// Clear the bytes in the byte viewer.
private void clearBytes(object sender, EventArgs e)
{
byteviewer.SetBytes( new byte[] { } );
}
// Changes the display mode of the byte viewer according to the
// Text property of the RadioButton sender control.
private void changeByteMode(object sender, EventArgs e)
{
System.Windows.Forms.RadioButton rbutton =
(System.Windows.Forms.RadioButton)sender;
DisplayMode mode;
switch( rbutton.Text )
{
case "ANSI":
mode = DisplayMode.Ansi;
break;
case "Hex":
mode = DisplayMode.Hexdump;
break;
case "Unicode":
mode = DisplayMode.Unicode;
break;
default:
mode = DisplayMode.Auto;
break;
}
// Sets the display mode.
byteviewer.SetDisplayMode( mode );
}
private void InitializeForm()
{
this.SuspendLayout();
this.ClientSize = new System.Drawing.Size(680, 440);
this.MinimumSize = new System.Drawing.Size(660, 400);
this.Size = new System.Drawing.Size(680, 440);
this.Name = "Byte Viewer Form";
this.Text = "Byte Viewer Form";
this.button1 = new System.Windows.Forms.Button();
this.button1.Location = new System.Drawing.Point(8, 8);
this.button1.Size = new System.Drawing.Size(190, 23);
this.button1.Name = "button1";
this.button1.Text = "Set Bytes From File...";
this.button1.TabIndex = 0;
this.button1.Click += new EventHandler(this.loadBytesFromFile);
this.Controls.Add(this.button1);
this.button2 = new System.Windows.Forms.Button();
this.button2.Location = new System.Drawing.Point(198, 8);
this.button2.Size = new System.Drawing.Size(190, 23);
this.button2.Name = "button2";
this.button2.Text = "Clear Bytes";
this.button2.Click += new EventHandler(this.clearBytes);
this.button2.TabIndex = 1;
this.Controls.Add(this.button2);
System.Windows.Forms.GroupBox group = new System.Windows.Forms.GroupBox();
group.Location = new Point(418, 3);
group.Size = new Size(220, 36);
group.Text = "Display Mode";
this.Controls.Add( group );
System.Windows.Forms.RadioButton rbutton1 = new System.Windows.Forms.RadioButton();
rbutton1.Location = new Point(6, 15);
rbutton1.Size = new Size(46, 16);
rbutton1.Text = "Auto";
rbutton1.Checked = true;
rbutton1.Click += new EventHandler(this.changeByteMode);
group.Controls.Add( rbutton1 );
System.Windows.Forms.RadioButton rbutton2 = new System.Windows.Forms.RadioButton();
rbutton2.Location = new Point(54, 15);
rbutton2.Size = new Size(50, 16);
rbutton2.Text = "ANSI";
rbutton2.Click += new EventHandler(this.changeByteMode);
group.Controls.Add( rbutton2 );
System.Windows.Forms.RadioButton rbutton3 = new System.Windows.Forms.RadioButton();
rbutton3.Location = new Point(106, 15);
rbutton3.Size = new Size(46, 16);
rbutton3.Text = "Hex";
rbutton3.Click += new EventHandler(this.changeByteMode);
group.Controls.Add( rbutton3 );
System.Windows.Forms.RadioButton rbutton4 = new System.Windows.Forms.RadioButton();
rbutton4.Location = new Point(152, 15);
rbutton4.Size = new Size(64, 16);
rbutton4.Text = "Unicode";
rbutton4.Click += new EventHandler(this.changeByteMode);
group.Controls.Add( rbutton4 );
this.ResumeLayout(false);
}
[STAThread]
static void Main()
{
Application.Run(new ByteViewerForm());
}
}
}
Imports System.Drawing
Imports System.Collections
Imports System.ComponentModel
Imports System.ComponentModel.Design
Imports System.Windows.Forms
Public Class ByteViewerForm
Inherits System.Windows.Forms.Form
Private button1 As System.Windows.Forms.Button
Private button2 As System.Windows.Forms.Button
Private byteviewer As System.ComponentModel.Design.ByteViewer
Public Sub New()
' Initialize the controls other than the ByteViewer.
InitializeForm()
' Initialize the ByteViewer.
byteviewer = New ByteViewer
byteviewer.Location = New Point(8, 46)
byteviewer.Size = New Size(600, 338)
byteviewer.Anchor = AnchorStyles.Left Or AnchorStyles.Bottom Or AnchorStyles.Top
byteviewer.SetBytes(New Byte() {})
Me.Controls.Add(byteviewer)
End Sub
' Show a file selection dialog and cues the byte viewer to
' load the data in a selected file.
Private Sub loadBytesFromFile(ByVal sender As Object, ByVal e As EventArgs)
Dim ofd As New OpenFileDialog
If ofd.ShowDialog() <> System.Windows.Forms.DialogResult.OK Then
Return
End If
byteviewer.SetFile(ofd.FileName)
End Sub
' Clear the bytes in the byte viewer.
Private Sub clearBytes(ByVal sender As Object, ByVal e As EventArgs)
byteviewer.SetBytes(New Byte() {})
End Sub
' Changes the display mode of the byte viewer according to the
' Text property of the RadioButton sender control.
Private Sub changeByteMode(ByVal sender As Object, ByVal e As EventArgs)
Dim rbutton As System.Windows.Forms.RadioButton = _
CType(sender, System.Windows.Forms.RadioButton)
Dim mode As DisplayMode
Select Case rbutton.Text
Case "ANSI"
mode = DisplayMode.Ansi
Case "Hex"
mode = DisplayMode.Hexdump
Case "Unicode"
mode = DisplayMode.Unicode
Case Else
mode = DisplayMode.Auto
End Select
' Sets the display mode.
byteviewer.SetDisplayMode(mode)
End Sub
Private Sub InitializeForm()
Me.SuspendLayout()
Me.ClientSize = New System.Drawing.Size(680, 440)
Me.MinimumSize = New System.Drawing.Size(660, 400)
Me.Size = New System.Drawing.Size(680, 440)
Me.Name = "Byte Viewer Form"
Me.Text = "Byte Viewer Form"
Me.button1 = New System.Windows.Forms.Button
Me.button1.Location = New System.Drawing.Point(8, 8)
Me.button1.Size = New System.Drawing.Size(190, 23)
Me.button1.Name = "button1"
Me.button1.Text = "Set Bytes From File..."
Me.button1.TabIndex = 0
AddHandler Me.button1.Click, AddressOf Me.loadBytesFromFile
Me.Controls.Add(Me.button1)
Me.button2 = New System.Windows.Forms.Button
Me.button2.Location = New System.Drawing.Point(198, 8)
Me.button2.Size = New System.Drawing.Size(190, 23)
Me.button2.Name = "button2"
Me.button2.Text = "Clear Bytes"
AddHandler Me.button2.Click, AddressOf Me.clearBytes
Me.button2.TabIndex = 1
Me.Controls.Add(Me.button2)
Dim group As New System.Windows.Forms.GroupBox
group.Location = New Point(418, 3)
group.Size = New Size(220, 36)
group.Text = "Display Mode"
Me.Controls.Add(group)
Dim rbutton1 As New System.Windows.Forms.RadioButton
rbutton1.Location = New Point(6, 15)
rbutton1.Size = New Size(46, 16)
rbutton1.Text = "Auto"
rbutton1.Checked = True
AddHandler rbutton1.Click, AddressOf Me.changeByteMode
group.Controls.Add(rbutton1)
Dim rbutton2 As New System.Windows.Forms.RadioButton
rbutton2.Location = New Point(54, 15)
rbutton2.Size = New Size(50, 16)
rbutton2.Text = "ANSI"
AddHandler rbutton2.Click, AddressOf Me.changeByteMode
group.Controls.Add(rbutton2)
Dim rbutton3 As New System.Windows.Forms.RadioButton
rbutton3.Location = New Point(106, 15)
rbutton3.Size = New Size(46, 16)
rbutton3.Text = "Hex"
AddHandler rbutton3.Click, AddressOf Me.changeByteMode
group.Controls.Add(rbutton3)
Dim rbutton4 As New System.Windows.Forms.RadioButton
rbutton4.Location = New Point(152, 15)
rbutton4.Size = New Size(64, 16)
rbutton4.Text = "Unicode"
AddHandler rbutton4.Click, AddressOf Me.changeByteMode
group.Controls.Add(rbutton4)
Me.ResumeLayout(False)
End Sub
<STAThread()> _
Shared Sub Main()
Application.Run(New ByteViewerForm)
End Sub
End Class
注釈
ByteViewer には、16 進数、ANSI、Unicode 形式のデータを表示するためのインターフェイスが用意されています。
DisplayMode列挙体は、使用する表示モードを示すために使用される識別子を指定します。
Auto表示モードでは、バイト配列の内容に基づいて既定の表示モードが選択されます。
ByteViewer では、単純なアルゴリズムを使用して、バッファーに格納されているデータの種類を決定します。 16 進数 Hexdump ビューには、読み取り専用の編集ボックスに、16 進数の値と対応するバイト表現 (文字) が表示されます。 既定の列数は 16 です。
AnsiビューとUnicode ビューでは、バイト配列が読み取り専用の編集ボックスに表示されます。 これらのビューでは、 NUL 文字は Unicode ブロック文字に置き換えられます。
コンストラクター
| 名前 | 説明 |
|---|---|
| ByteViewer() |
ByteViewer クラスの新しいインスタンスを初期化します。 |
フィールド
| 名前 | 説明 |
|---|---|
| ScrollStateAutoScrolling |
AutoScroll プロパティの値を決定します。 (継承元 ScrollableControl) |
| ScrollStateFullDrag |
ユーザーがウィンドウ全体のドラッグを有効にしているかどうかを判断します。 (継承元 ScrollableControl) |
| ScrollStateHScrollVisible |
HScroll プロパティの値が |
| ScrollStateUserHasScrolled |
ユーザーが ScrollableControl コントロールをスクロールしたかどうかを判断します。 (継承元 ScrollableControl) |
| ScrollStateVScrollVisible |
VScroll プロパティの値が |
プロパティ
| 名前 | 説明 |
|---|---|
| AccessibilityObject |
コントロールに割り当てられた AccessibleObject を取得します。 (継承元 Control) |
| AccessibleDefaultActionDescription |
アクセシビリティ クライアント アプリケーションで使用するコントロールの既定のアクションの説明を取得または設定します。 (継承元 Control) |
| AccessibleDescription |
アクセシビリティ クライアント アプリケーションで使用されるコントロールの説明を取得または設定します。 (継承元 Control) |
| AccessibleName |
アクセシビリティ クライアント アプリケーションで使用されるコントロールの名前を取得または設定します。 (継承元 Control) |
| AccessibleRole |
コントロールのアクセス可能なロールを取得または設定します。 (継承元 Control) |
| AllowDrop |
ユーザーがドラッグしたデータをコントロールが受け入れられるかどうかを示す値を取得または設定します。 (継承元 Control) |
| Anchor |
コントロールがバインドされるコンテナーの端を取得または設定し、コントロールのサイズを親と共に変更する方法を決定します。 (継承元 Control) |
| AutoScroll |
コンテナーでユーザーが表示される境界の外側に配置されたコントロールまでスクロールできるかどうかを示す値を取得または設定します。 (継承元 ScrollableControl) |
| AutoScrollMargin |
自動スクロール余白のサイズを取得または設定します。 (継承元 ScrollableControl) |
| AutoScrollMinSize |
自動スクロールの最小サイズを取得または設定します。 (継承元 ScrollableControl) |
| AutoScrollOffset |
ScrollControlIntoView(Control)でこのコントロールをスクロールする場所を取得または設定します。 (継承元 Control) |
| AutoScrollPosition |
自動スクロール位置の位置を取得または設定します。 (継承元 ScrollableControl) |
| AutoSize |
コントロールの内容に基づいてコントロールのサイズを変更するかどうかを示す値を取得または設定します。 (継承元 Panel) |
| AutoSizeMode |
コントロールの自動サイズ変更動作を示します。 (継承元 Panel) |
| BackColor |
コントロールの背景色を取得または設定します。 (継承元 Control) |
| BackgroundImage |
コントロールに表示される背景イメージを取得または設定します。 (継承元 Control) |
| BackgroundImageLayout |
ImageLayout列挙体で定義されている背景画像のレイアウトを取得または設定します。 (継承元 Control) |
| BindingContext |
コントロールの BindingContext を取得または設定します。 (継承元 Control) |
| BorderStyle |
パネルの罫線のスタイルを取得または設定します。 (継承元 TableLayoutPanel) |
| Bottom |
コントロールの下端とコンテナーのクライアント領域の上端との間の距離をピクセル単位で取得します。 (継承元 Control) |
| Bounds |
親コントロールに対する非クライアント要素を含むコントロールのサイズと位置をピクセル単位で取得または設定します。 (継承元 Control) |
| CanEnableIme |
IME サポートを有効にするために、 ImeMode プロパティをアクティブな値に設定できるかどうかを示す値を取得します。 (継承元 Control) |
| CanFocus |
コントロールがフォーカスを受け取ることができるかどうかを示す値を取得します。 (継承元 Control) |
| CanRaiseEvents |
コントロールでイベントを発生できるかどうかを判断します。 (継承元 Control) |
| CanSelect |
コントロールを選択できるかどうかを示す値を取得します。 (継承元 Control) |
| Capture |
コントロールがマウスをキャプチャしたかどうかを示す値を取得または設定します。 (継承元 Control) |
| CausesValidation |
コントロールがフォーカスを受け取ったときに検証を必要とするコントロールに対して検証を実行するかどうかを示す値を取得または設定します。 (継承元 Control) |
| CellBorderStyle |
セルの罫線のスタイルを取得または設定します。 (継承元 TableLayoutPanel) |
| ClientRectangle |
コントロールのクライアント領域を表す四角形を取得します。 (継承元 Control) |
| ClientSize |
コントロールのクライアント領域の高さと幅を取得または設定します。 (継承元 Control) |
| ColumnCount |
テーブルで許可される列の最大数を取得または設定します。 (継承元 TableLayoutPanel) |
| ColumnStyles |
TableLayoutPanelの列スタイルのコレクションを取得します。 (継承元 TableLayoutPanel) |
| CompanyName |
コントロールを含むアプリケーションの会社または作成者の名前を取得します。 (継承元 Control) |
| Container |
IContainerを含むComponentを取得します。 (継承元 Component) |
| ContainsFocus |
コントロールまたはその子コントロールの 1 つが現在入力フォーカスを持っているかどうかを示す値を取得します。 (継承元 Control) |
| ContextMenu |
コントロールに関連付けられているショートカット メニューを取得または設定します。 (継承元 Control) |
| ContextMenuStrip |
このコントロールに関連付けられている ContextMenuStrip を取得または設定します。 (継承元 Control) |
| Controls |
コントロール内に含まれるコントロールのコレクションを取得します。 (継承元 Control) |
| Controls |
TableLayoutPanel内に含まれるコントロールのコレクションを取得します。 (継承元 TableLayoutPanel) |
| Created |
コントロールが作成されたかどうかを示す値を取得します。 (継承元 Control) |
| CreateParams |
コントロール ハンドルの作成時に必要な作成パラメーターを取得します。 (継承元 Control) |
| CreateParams |
コントロール ハンドルの作成時に必要な作成パラメーターを取得します。 (継承元 Panel) |
| Cursor |
マウス ポインターがコントロールの上にあるときに表示されるカーソルを取得または設定します。 (継承元 Control) |
| DataBindings |
コントロールのデータ バインディングを取得します。 (継承元 Control) |
| DefaultCursor |
コントロールの既定のカーソルを取得または設定します。 (継承元 Control) |
| DefaultImeMode |
コントロールでサポートされている既定の入力メソッド エディター (IME) モードを取得します。 (継承元 Control) |
| DefaultMargin |
コントロール間で既定で指定されているスペースをピクセル単位で取得します。 (継承元 Control) |
| DefaultMaximumSize |
コントロールの既定の最大サイズとして指定されている長さと高さをピクセル単位で取得します。 (継承元 Control) |
| DefaultMinimumSize |
コントロールの既定の最小サイズとして指定されている長さと高さをピクセル単位で取得します。 (継承元 Control) |
| DefaultPadding |
コントロールの内容の既定の内部間隔 (ピクセル単位) を取得します。 (継承元 Control) |
| DefaultSize |
コントロールの既定のサイズを取得します。 (継承元 Control) |
| DefaultSize |
コントロールの既定のサイズを取得します。 (継承元 Panel) |
| DesignMode |
Componentが現在デザイン モードであるかどうかを示す値を取得します。 (継承元 Component) |
| DeviceDpi |
コントロールが現在表示されているディスプレイ デバイスの DPI 値を取得します。 (継承元 Control) |
| DisplayRectangle |
コントロールの表示領域を表す四角形を取得します。 (継承元 Control) |
| DisplayRectangle |
コントロールの仮想表示領域を表す四角形を取得します。 (継承元 ScrollableControl) |
| Disposing |
基底 Control クラスが破棄中かどうかを示す値を取得します。 (継承元 Control) |
| Dock |
親コントロールにドッキングされるコントロールの境界線を取得または設定し、コントロールのサイズを親コントロールと共に変更する方法を決定します。 (継承元 Control) |
| DockPadding |
コントロールのすべての端のドッキング パディング設定を取得します。 (継承元 ScrollableControl) |
| DoubleBuffered |
ちらつきを減らすか防止するために、このコントロールがセカンダリ バッファーを使用してそのサーフェスを再描画する必要があるかどうかを示す値を取得または設定します。 (継承元 Control) |
| Enabled |
コントロールがユーザーの操作に応答できるかどうかを示す値を取得または設定します。 (継承元 Control) |
| Events |
この Componentにアタッチされているイベント ハンドラーの一覧を取得します。 (継承元 Component) |
| Focused |
コントロールに入力フォーカスがあるかどうかを示す値を取得します。 (継承元 Control) |
| Font |
コントロールによって表示されるテキストのフォントを取得または設定します。 (継承元 Control) |
| FontHeight |
コントロールのフォントの高さを取得または設定します。 (継承元 Control) |
| ForeColor |
コントロールの前景色を取得または設定します。 (継承元 Control) |
| GrowStyle |
既存のすべてのセルが占有されているときに、 TableLayoutPanel コントロールを新しいセルに合わせて展開するかどうかを示す値を取得または設定します。 (継承元 TableLayoutPanel) |
| Handle |
コントロールがバインドされているウィンドウ ハンドルを取得します。 (継承元 Control) |
| HasChildren |
コントロールに 1 つ以上の子コントロールが含まれているかどうかを示す値を取得します。 (継承元 Control) |
| Height |
コントロールの高さを取得または設定します。 (継承元 Control) |
| HorizontalScroll |
水平スクロール バーに関連付けられている特性を取得します。 (継承元 ScrollableControl) |
| HScroll |
水平スクロール バーが表示されるかどうかを示す値を取得または設定します。 (継承元 ScrollableControl) |
| ImeMode |
コントロールの入力メソッド エディター (IME) モードを取得または設定します。 (継承元 Control) |
| ImeModeBase |
コントロールの IME モードを取得または設定します。 (継承元 Control) |
| InvokeRequired |
呼び出し元がコントロールを作成したスレッドとは異なるスレッド上にあるため、呼び出し元がコントロールへのメソッド呼び出しを行うときに呼び出し元が呼び出しメソッドを呼び出す必要があるかどうかを示す値を取得します。 (継承元 Control) |
| IsAccessible |
コントロールがアクセシビリティ アプリケーションに表示されるかどうかを示す値を取得または設定します。 (継承元 Control) |
| IsDisposed |
コントロールが破棄されたかどうかを示す値を取得します。 (継承元 Control) |
| IsHandleCreated |
コントロールにハンドルが関連付けられているかどうかを示す値を取得します。 (継承元 Control) |
| IsMirrored |
コントロールがミラー化されているかどうかを示す値を取得します。 (継承元 Control) |
| LayoutEngine |
パネルのレイアウト エンジンのキャッシュされたインスタンスを取得します。 (継承元 TableLayoutPanel) |
| LayoutSettings |
テーブル レイアウト設定を表す値を取得または設定します。 (継承元 TableLayoutPanel) |
| 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) |
| RowCount |
テーブルで許可される行の最大数を取得または設定します。 (継承元 TableLayoutPanel) |
| RowStyles |
TableLayoutPanelの行スタイルのコレクションを取得します。 (継承元 TableLayoutPanel) |
| ScaleChildren |
子コントロールのスケーリングを決定する値を取得します。 (継承元 Control) |
| ShowFocusCues |
コントロールにフォーカスの四角形を表示するかどうかを示す値を取得します。 (継承元 Control) |
| ShowKeyboardCues |
キーボード アクセラレータの表示と非表示を切り替えるために、ユーザー インターフェイスが適切な状態であるかどうかを示す値を取得します。 (継承元 Control) |
| Site |
コントロールのサイトを取得または設定します。 (継承元 Control) |
| Size |
コントロールの高さと幅を取得または設定します。 (継承元 Control) |
| TabIndex |
コンテナー内のコントロールのタブ オーダーを取得または設定します。 (継承元 Control) |
| TabStop |
Tab キーを使用してユーザーがこのコントロールにフォーカスを与えることができるかどうかを示す値を取得または設定します。 (継承元 Control) |
| TabStop |
Tab キーを使用してユーザーがこのコントロールにフォーカスを与えることができるかどうかを示す値を取得または設定します。 (継承元 Panel) |
| Tag |
コントロールに関するデータを含むオブジェクトを取得または設定します。 (継承元 Control) |
| Text |
このコントロールに関連付けられているテキストを取得または設定します。 (継承元 Control) |
| Text |
このメンバーは、このコントロールにとって意味がありません。 (継承元 Panel) |
| Top |
コントロールの上端とそのコンテナーのクライアント領域の上端との間の距離をピクセル単位で取得または設定します。 (継承元 Control) |
| TopLevelControl |
別のWindows フォーム コントロールによって親にされていない親コントロールを取得します。 通常、これはコントロールが含まれている最も外側の Form です。 (継承元 Control) |
| UseWaitCursor |
現在のコントロールとすべての子コントロールに対して待機カーソルを使用するかどうかを示す値を取得または設定します。 (継承元 Control) |
| VerticalScroll |
垂直スクロール バーに関連付けられている特性を取得します。 (継承元 ScrollableControl) |
| Visible |
コントロールとそのすべての子コントロールを表示するかどうかを示す値を取得または設定します。 (継承元 Control) |
| VScroll |
垂直スクロール バーが表示されるかどうかを示す値を取得または設定します。 (継承元 ScrollableControl) |
| Width |
コントロールの幅を取得または設定します。 (継承元 Control) |
| WindowTarget |
このプロパティは、このクラスには関係ありません。 (継承元 Control) |
メソッド
イベント
| 名前 | 説明 |
|---|---|
| AutoSizeChanged |
AutoSize プロパティの値が変更されたときに発生します。 (継承元 Panel) |
| BackColorChanged |
BackColor プロパティの値が変化したときに発生します。 (継承元 Control) |
| BackgroundImageChanged |
BackgroundImage プロパティの値が変化したときに発生します。 (継承元 Control) |
| BackgroundImageLayoutChanged |
BackgroundImageLayout プロパティが変更されたときに発生します。 (継承元 Control) |
| BindingContextChanged |
BindingContext プロパティの値が変化したときに発生します。 (継承元 Control) |
| CausesValidationChanged |
CausesValidation プロパティの値が変化したときに発生します。 (継承元 Control) |
| CellPaint |
セルが再描画されたときに発生します。 (継承元 TableLayoutPanel) |
| 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) |
| 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) |
| GiveFeedback |
ドラッグ操作中に発生します。 (継承元 Control) |
| GotFocus |
コントロールがフォーカスを受け取ったときに発生します。 (継承元 Control) |
| HandleCreated |
コントロールのハンドルが作成されたときに発生します。 (継承元 Control) |
| HandleDestroyed |
コントロールのハンドルが破棄処理中に発生します。 (継承元 Control) |
| HelpRequested |
ユーザーがコントロールのヘルプを要求したときに発生します。 (継承元 Control) |
| ImeModeChanged |
ImeMode プロパティが変更されたときに発生します。 (継承元 Control) |
| Invalidated |
コントロールの表示に再描画が必要な場合に発生します。 (継承元 Control) |
| KeyDown |
コントロールにフォーカスがあるときにキーが押されたときに発生します。 (継承元 Control) |
| KeyDown |
このメンバーは、このコントロールにとって意味がありません。 (継承元 Panel) |
| KeyPress |
コントロールにフォーカスがあるときに文字、スペース、またはバックスペース キーが押されたときに発生します。 (継承元 Control) |
| KeyPress |
このメンバーは、このコントロールにとって意味がありません。 (継承元 Panel) |
| KeyUp |
コントロールにフォーカスがあるときにキーが離されたときに発生します。 (継承元 Control) |
| KeyUp |
このメンバーは、このコントロールにとって意味がありません。 (継承元 Panel) |
| 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) |
| Scroll |
ユーザーまたはコードがクライアント領域をスクロールしたときに発生します。 (継承元 ScrollableControl) |
| SizeChanged |
Size プロパティ値が変更されたときに発生します。 (継承元 Control) |
| StyleChanged |
コントロール スタイルが変更されたときに発生します。 (継承元 Control) |
| SystemColorsChanged |
システムの色が変更されたときに発生します。 (継承元 Control) |
| TabIndexChanged |
TabIndex プロパティ値が変更されたときに発生します。 (継承元 Control) |
| TabStopChanged |
TabStop プロパティ値が変更されたときに発生します。 (継承元 Control) |
| TextChanged |
Text プロパティ値が変更されたときに発生します。 (継承元 Control) |
| TextChanged |
このメンバーは、このコントロールにとって意味がありません。 (継承元 Panel) |
| Validated |
コントロールの検証が完了したときに発生します。 (継承元 Control) |
| Validating |
コントロールが検証中に発生します。 (継承元 Control) |
| VisibleChanged |
Visible プロパティ値が変更されたときに発生します。 (継承元 Control) |
明示的なインターフェイスの実装
| 名前 | 説明 |
|---|---|
| IDropTarget.OnDragDrop(DragEventArgs) |
DragDrop イベントを発生させます。 (継承元 Control) |
| IDropTarget.OnDragEnter(DragEventArgs) |
DragEnter イベントを発生させます。 (継承元 Control) |
| IDropTarget.OnDragLeave(EventArgs) |
DragLeave イベントを発生させます。 (継承元 Control) |
| IDropTarget.OnDragOver(DragEventArgs) |
DragOver イベントを発生させます。 (継承元 Control) |
| IExtenderProvider.CanExtend(Object) |
このメンバーの説明については、 CanExtend(Object)を参照してください。 (継承元 TableLayoutPanel) |