Microsoft.Office.Tools.Word.Controls Namespace

 

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

ClassDescription
System_CAPS_pubclassButton

Represents a Windows Forms button that can be added to a Microsoft Office Word document.

System_CAPS_pubclassCheckBox

Represents a Windows Forms check box that can be added to a Microsoft Office Word document.

System_CAPS_pubclassCheckedListBox

Represents a Windows Forms checked list box that can be added to a Microsoft Office Word document.

System_CAPS_pubclassComboBox

Represents a Windows Forms combo box that can be added to a Microsoft Office Word document.

System_CAPS_pubclassDataGridView

Represents a Windows Forms DataGridView that can be added to a Microsoft Office Word document.

System_CAPS_pubclassDateTimePicker

Represents a Windows Forms DateTimePicker control that can be added to a Microsoft Office Word document.

System_CAPS_pubclassDomainUpDown

Represents a Windows Forms DomainUpDown that can be added to a Microsoft Office Word document.

System_CAPS_pubclassHScrollBar

Represents a Windows Forms HScrollBar that can be added to a Microsoft Office Word document.

System_CAPS_pubclassLabel

Represents a Windows Forms Label that can be added to a Microsoft Office Word document.

System_CAPS_pubclassLinkLabel

Represents a Windows Forms LinkLabel that can be added to a Microsoft Office Word document.

System_CAPS_pubclassListBox

Represents a Windows Forms ListBox that can be added to a Microsoft Office Word document.

System_CAPS_pubclassListView

Represents a Windows Forms ListView that can be added to a Microsoft Office Word document.

System_CAPS_pubclassMaskedTextBox

Represents a Windows Forms MaskedTextBox that can be added to a Microsoft Office Word document.

System_CAPS_pubclassMonthCalendar

Represents a Windows Forms MonthCalendar that can be added to a Microsoft Office Word document.

System_CAPS_pubclassNumericUpDown

Represents a Windows Forms NumericUpDown that can be added to a Microsoft Office Word document.

System_CAPS_pubclassPictureBox

Represents a Windows Forms PictureBox that can be added to a Microsoft Office Word document.

System_CAPS_pubclassProgressBar

Represents a Windows Forms ProgressBar that can be added to a Microsoft Office Word document.

System_CAPS_pubclassPropertyGrid

Represents a Windows Forms PropertyGrid that can be added to a Microsoft Office Word document.

System_CAPS_pubclassRadioButton

Represents a Windows Forms RadioButton that can be added to a Microsoft Office Word document.

System_CAPS_pubclassRichTextBox

Represents a Windows Forms RichTextBox that can be added to a Microsoft Office Word document.

System_CAPS_pubclassTextBox

Represents a Windows Forms TextBox that can be added to a Microsoft Office Word document.

System_CAPS_pubclassTrackBar

Represents a Windows Forms TrackBar that can be added to a Microsoft Office Word document.

System_CAPS_pubclassTreeView

Represents a Windows Forms TreeView that can be added to a Microsoft Office Word document.

System_CAPS_pubclassVScrollBar

Represents a Windows Forms VScrollBar that can be added to a Microsoft Office Word document.

System_CAPS_pubclassWebBrowser

Represents a Windows Forms WebBrowser that can be added to a Microsoft Office Word document.

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

In a document-level project for Word, you can also add the controls in this namespace to your Word document at design time by dragging a control from the Toolbox directly to your document. For more information, see How to: Add Windows Forms Controls to Office Documents.

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

Return to top
Show: