Partager via


MaskedTextBox Class

Definition

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

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

Remarks

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

Properties

AltHTML
Automation
Bottom

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

Height

Gets or sets the height of the MaskedTextBox.

InlineShape

Gets the underlying InlineShape of the MaskedTextBox.

Left

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

Right

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

Shape

Gets the underlying Shape of the MaskedTextBox.

Top

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

Width

Gets or sets the width of the MaskedTextBox in points.

Methods

Activate()

Activates the MaskedTextBox.

Delete()

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

Select()

Selects the MaskedTextBox.

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

Applies to