TextBox Class

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

Namespace: Microsoft.Office.Tools.Excel.Controls
Assembly: Microsoft.Office.Tools.Excel (in microsoft.office.tools.excel.dll)

public class TextBox : TextBox, ISupportInitializeExtendedControl

The Microsoft.Office.Tools.Excel.Controls.TextBox is different from a System.Windows.Forms.TextBox. The Microsoft.Office.Tools.Excel.Controls.TextBox 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 TextBox. Use the AddTextBox method to add a new TextBox to a worksheet.

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

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