ByteViewer 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
以十六进制、ANSI 和 Unicode 格式显示字节数组。
public ref class ByteViewer : System::Windows::Forms::Controlpublic ref class ByteViewer : System::Windows::Forms::TableLayoutPanelpublic class ByteViewer : System.Windows.Forms.Controlpublic class ByteViewer : System.Windows.Forms.TableLayoutPaneltype ByteViewer = class
    inherit Controltype ByteViewer = class
    inherit TableLayoutPanelPublic Class ByteViewer
Inherits ControlPublic 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 提供用于查看十六进制、ANSI 和 Unicode 格式数据的接口。
              DisplayMode枚举指定用于指示要使用的显示模式的标识符。 显示 Auto 模式根据字节数组的内容选择默认显示模式。 
              ByteViewer 使用简单的算法来确定缓冲区中存储的数据类型。 十六进制 Hexdump 视图在只读编辑框中显示十六进制值和相应的字节表示形式 (字符) 。 默认的列数为 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 | 此属性与此类无关。(继承自 Control) | 
| AutoSize | 获取或设置一个值,该值指示控件是否基于其内容调整大小。(继承自 Panel) | 
| AutoSizeMode | 指示控件的自动调整大小行为。(继承自 Panel) | 
| BackColor | 获取或设置控件的背景色。(继承自 Control) | 
| BackgroundImage | 获取或设置在控件中显示的背景图像。(继承自 Control) | 
| BackgroundImageLayout | 获取或设置在 ImageLayout 枚举中定义的背景图像布局。(继承自 Control) | 
| BindingContext | 获取或设置控件的 BindingContext。(继承自 Control) | 
| BorderStyle | 获取或设置面板的边框样式。(继承自 TableLayoutPanel) | 
| Bottom | 获取控件下边缘与其容器的工作区上边缘之间的距离(以像素为单位)。(继承自 Control) | 
| Bounds | 获取或设置控件(包括其非工作区元素)相对于其父控件的大小和位置(以像素为单位)。(继承自 Control) | 
| CanEnableIme | 获取一个用以指示是否可以将 ImeMode 属性设置为活动值的值,以启用 IME 支持。(继承自 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 | 获取一个值,该值指示控件或它的一个子控件当前是否有输入焦点。(继承自 Control) | 
| ContextMenu | 获取或设置与控件关联的快捷菜单。(继承自 Control) | 
| ContextMenuStrip | 获取或设置与此控件关联的 ContextMenuStrip。(继承自 Control) | 
| Controls | 获取包含在控件内的控件的集合。(继承自 Control) | 
| Controls | 获取包含在 TableLayoutPanel 内的控件的集合。(继承自 TableLayoutPanel) | 
| Created | 获取一个值,该值指示控件是否已经创建。(继承自 Control) | 
| CreateParams | 获取创建控件句柄时所需要的创建参数。(继承自 Control) | 
| CreateParams | 获取创建控件句柄时所需要的创建参数。(继承自 Panel) | 
| Cursor | 获取或设置当鼠标指针位于控件上时显示的光标。(继承自 Control) | 
| DataBindings | 为该控件获取数据绑定。(继承自 Control) | 
| DataContext | 获取或设置用于数据绑定的数据上下文。 这是一个环境属性。(继承自 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 | 获取一个值,该值指示控件是否包含一个或多个子控件。(继承自 Control) | 
| Height | 获取或设置控件的高度。(继承自 Control) | 
| HorizontalScroll | 获取与水平滚动条关联的特征。(继承自 ScrollableControl) | 
| HScroll | 获取或设置一个值,该值指示水平滚动条是否可见。(继承自 ScrollableControl) | 
| ImeMode | 获取或设置控件的输入法编辑器 (IME) 模式。(继承自 Control) | 
| ImeModeBase | 获取或设置控件的 IME 模式。(继承自 Control) | 
| InvokeRequired | 获取一个值,该值指示调用方在对控件进行方法调用时是否必须调用 Invoke 方法,因为调用方位于创建控件所在的线程以外的线程中。(继承自 Control) | 
| IsAccessible | 获取或设置一个值,该值指示控件对辅助功能应用程序是否可见。(继承自 Control) | 
| IsAncestorSiteInDesignMode | 指示此控件的上级之一是否位于 DesignMode 中以及该站点。 此属性为只读。(继承自 Control) | 
| IsDisposed | 获取一个值,该值指示控件是否已经被释放。(继承自 Control) | 
| IsHandleCreated | 获取一个值,该值指示控件是否有与它关联的句柄。(继承自 Control) | 
| IsMirrored | 获取一个值,该值指示此控件是否为镜像控件。(继承自 Control) | 
| LayoutEngine | 获取控件的布局引擎的缓存实例。(继承自 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 | 获取或设置控件在其容器内的 Tab 键顺序。(继承自 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) | 
方法
事件
显式接口实现
| 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) |