Udostępnij za pośrednictwem


MaskedTextBox Class (2007 System)

Represents a Windows Forms MaskedTextBox that can be added to a Microsoft Office Excel worksheet.

Namespace:  Microsoft.Office.Tools.Excel.Controls
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public Class MaskedTextBox _
    Inherits MaskedTextBox _
    Implements ISupportInitializeExtendedControl
'Usage
Dim instance As MaskedTextBox
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public class MaskedTextBox : MaskedTextBox, 
    ISupportInitializeExtendedControl
[PermissionSetAttribute(SecurityAction::Demand, Name = L"FullTrust")]
[PermissionSetAttribute(SecurityAction::Demand, Name = L"FullTrust")]
public ref class MaskedTextBox : public MaskedTextBox, 
    ISupportInitializeExtendedControl
public class MaskedTextBox extends MaskedTextBox implements ISupportInitializeExtendedControl

Remarks

The Microsoft.Office.Tools.Excel.Controls.MaskedTextBox is different from a System.Windows.Forms.MaskedTextBox. The Microsoft.Office.Tools.Excel.Controls.MaskedTextBox has additional members that enable it to be added to an Excel worksheet and that give it additional methods and properties.

Do not use the New constructor to create a new MaskedTextBox. Use the AddMaskedTextBox method to add a new MaskedTextBox to a worksheet.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      System.Windows.Forms.Control
        System.Windows.Forms.TextBoxBase
          System.Windows.Forms.MaskedTextBox
            Microsoft.Office.Tools.Excel.Controls.MaskedTextBox

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

MaskedTextBox Members

Microsoft.Office.Tools.Excel.Controls Namespace