ComboBox Class

Definition

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

public ref class ComboBox : System::Windows::Forms::ComboBox
[System.ComponentModel.DefaultEvent("SelectedIndexChanged")]
[System.ComponentModel.DefaultProperty("Items")]
[System.ComponentModel.ToolboxItem(false)]
public class ComboBox : System.Windows.Forms.ComboBox
[<System.ComponentModel.DefaultEvent("SelectedIndexChanged")>]
[<System.ComponentModel.DefaultProperty("Items")>]
[<System.ComponentModel.ToolboxItem(false)>]
type ComboBox = class
    inherit ComboBox
Public Class ComboBox
Inherits ComboBox
Inheritance
ComboBox
Attributes

Remarks

The Microsoft.Office.Tools.Word.Controls.ComboBox is different from a System.Windows.Forms.ComboBox. The Microsoft.Office.Tools.Word.Controls.ComboBox has additional members that enable it to be added to a Word document and that give it additional methods and properties.

Do not use the New constructor to create a new ComboBox. Use the AddComboBox method to add a new ComboBox to a document.

Properties

AltHTML
Automation
Bottom

Gets the distance, in points, between the bottom edge of the ComboBox and the top edge of the document.

Height

Gets or sets the height of the ComboBox.

InlineShape

Gets the underlying InlineShape of the ComboBox.

Left

Gets or sets the distance, in points, between the left edge of the ComboBox and the left edge of the document.

Right

Gets the distance, in points, between the right edge of the ComboBox and the left edge of the document.

Shape

Gets the underlying Shape of the ComboBox.

Top

Gets or sets the distance, in points, between the top edge of the ComboBox and the top edge of the document.

Width

Gets or sets the width of the ComboBox in points.

Methods

Activate()

Activates the ComboBox.

Delete()

Deletes a dynamically created ComboBox from the document and removes it from the ControlCollection.

Select()

Selects the ComboBox.

SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)
SetVisibleCore(Boolean)

Applies to