CheckBox Class

Definition

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

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

Remarks

The Microsoft.Office.Tools.Word.Controls.CheckBox is different from a System.Windows.Forms.CheckBox. The Microsoft.Office.Tools.Word.Controls.CheckBox 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 CheckBox. Use the AddCheckBox method to add a new CheckBox to a document.

Properties

AltHTML
Automation
Bottom

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

Height

Gets or sets the height of the CheckBox.

InlineShape

Gets the underlying InlineShape of the CheckBox.

Left

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

Right

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

Shape

Gets the underlying Shape of the CheckBox.

Top

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

Width

Gets or sets the width of the CheckBox in points.

Methods

Activate()

Activates the CheckBox.

Delete()

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

Select()

Selects the CheckBox.

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

Applies to