This documentation is archived and is not being maintained.

Microsoft.Office.Tools.Excel.Controls Namespace

The Microsoft.Office.Tools.Excel.Controls namespace contains a set of Windows Forms controls that can be used on a Worksheet host item. Each of these classes extends a base class that is in the System.Windows.Forms namespace with additional functionality specific to a Microsoft Office Excel worksheet. For example, the Microsoft.Office.Tools.Excel.Controls.Button class extends the functionality of the System.Windows.Forms.Button class.

You can add and remove the controls in this namespace at run time by using the appropriate helper method in the ControlCollection class. For example, use the AddButton method to add a Microsoft.Office.Tools.Excel.Controls.Button to a worksheet at run time. For more information, see Adding Controls to Office Documents at Run Time.

You can also add the controls in this namespace to your Excel worksheet at design time by dragging a control from the Toolbox directly to your worksheet. For more information, see How to: Add Controls to Office Documents.

There are some differences between Windows Forms controls that are added to Word or Excel documents and Windows Forms controls that are added to Windows Forms. For more information, see Limitations of Windows Forms Controls on Office Documents.

 ClassDescription
Public classButtonRepresents a Windows Forms button that can be added to a Microsoft Office Excel worksheet.
Public classCheckBoxRepresents a Windows Forms check box that can be added to a Microsoft Office Excel worksheet.
Public classCheckedListBoxRepresents a Windows Forms CheckedListBox that can be added to a Microsoft Office Excel worksheet.
Public classComboBoxRepresents a Windows Forms ComboBox that can be added to a Microsoft Office Excel worksheet.
Public classDataGridViewRepresents a Windows Forms DataGridView that can be added to a Microsoft Office Excel worksheet.
Public classDateTimePickerRepresents a Windows Forms DateTimePicker that can be added to a Microsoft Office Excel worksheet.
Public classDomainUpDownRepresents a Windows Forms DomainUpDown that can be added to a Microsoft Office Excel worksheet.
Public classHScrollBarRepresents a Windows Forms HScrollBar that can be added to a Microsoft Office Excel worksheet.
Public classLabelRepresents a Windows Forms Label that can be added to a Microsoft Office Excel worksheet.
Public classLinkLabelRepresents a Windows Forms LinkLabel that can be added to a Microsoft Office Excel worksheet.
Public classListBoxRepresents a Windows Forms ListBox that can be added to a Microsoft Office Excel worksheet.
Public classListViewRepresents a Windows Forms ListView that can be added to a Microsoft Office Excel worksheet.
Public classMaskedTextBoxRepresents a Windows Forms MaskedTextBox that can be added to a Microsoft Office Excel worksheet.
Public classMonthCalendarRepresents a Windows Forms MonthCalendar that can be added to a Microsoft Office Excel worksheet.
Public classNumericUpDownRepresents a Windows Forms NumericUpDown that can be added to a Microsoft Office Excel worksheet.
Public classPictureBoxRepresents a Windows Forms PictureBox that can be added to a Microsoft Office Excel worksheet.
Public classProgressBarRepresents a Windows Forms ProgressBar that can be added to a Microsoft Office Excel worksheet.
Public classPropertyGridRepresents a Windows Forms PropertyGrid that can be added to a Microsoft Office Excel worksheet.
Public classRadioButtonRepresents a Windows Forms RadioButton that can be added to a Microsoft Office Excel worksheet.
Public classRichTextBoxRepresents a Windows Forms RichTextBox that can be added to a Microsoft Office Excel worksheet.
Public classTextBoxRepresents a Windows Forms TextBox that can be added to a Microsoft Office Excel worksheet.
Public classTrackBarRepresents a Windows Forms TrackBar that can be added to a Microsoft Office Excel worksheet.
Public classTreeViewRepresents a Windows Forms TreeView that can be added to a Microsoft Office Excel worksheet.
Public classVScrollBarRepresents a Windows Forms VScrollBar that can be added to a Microsoft Office Excel worksheet.
Public classWebBrowserRepresents a Windows Forms WebBrowser that can be added to a Microsoft Office Excel worksheet.
Show: