Class TextBoxBarItem
Implements
System.ComponentModel.ICustomTypeDescriptor
System.Runtime.Serialization.ISerializable
System.ICloneable
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools.XPMenus
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class TextBoxBarItem : BarItemEx, IChangeNotifyingItem, ICustomTypeDescriptor, IDataBindingSupport, ISerializable, IRequiresControl, ICloneable
Constructors
TextBoxBarItem()
Declaration
public TextBoxBarItem()
TextBoxBarItem(SerializationInfo, StreamingContext)
Declaration
protected TextBoxBarItem(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | |
| System.Runtime.Serialization.StreamingContext | context |
TextBoxBarItem(String)
Declaration
public TextBoxBarItem(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | text |
TextBoxBarItem(String, EventHandler)
Declaration
public TextBoxBarItem(string text, EventHandler onClick)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | text | |
| System.EventHandler | onClick |
TextBoxBarItem(String, EventHandler, Shortcut)
Declaration
public TextBoxBarItem(string text, EventHandler onClick, Shortcut shortcut)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | text | |
| System.EventHandler | onClick | |
| System.Windows.Forms.Shortcut | shortcut |
TextBoxBarItem(MenuMerge, Int32, Shortcut, String, EventHandler, EventHandler, EventHandler)
Declaration
public TextBoxBarItem(MenuMerge mergeType, int mergeOrder, Shortcut shortcut, string text, EventHandler onClick, EventHandler onPopup, EventHandler onSelect)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.MenuMerge | mergeType | |
| System.Int32 | mergeOrder | |
| System.Windows.Forms.Shortcut | shortcut | |
| System.String | text | |
| System.EventHandler | onClick | |
| System.EventHandler | onPopup | |
| System.EventHandler | onSelect |
Properties
ControlType
Declaration
public string ControlType { get; }
Property Value
| Type |
|---|
| System.String |
MinWidth
Gets or sets the width of the item.
Declaration
public virtual int MinWidth { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
TextBoxValue
Gets or sets the value in the text box.
Declaration
public virtual string TextBoxValue { get; set; }
Property Value
| Type |
|---|
| System.String |
Value
Declaration
public object Value { get; set; }
Property Value
| Type |
|---|
| System.Object |
Methods
Clone()
Creates a clone of this TextBoxBarItem instance.
Declaration
public override object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | An object that has similar properties to this TextBoxBarItem. |
Overrides
Remarks
Creates a new instance of TextBoxBarItem and calls the CopyTo(BarItem) method to copy over properties.
CopyTo(BarItem)
Copies the properties of this TextBoxBarItem into the specified TextBoxBarItem.
Declaration
public override void CopyTo(BarItem barItem)
Parameters
| Type | Name | Description |
|---|---|---|
| BarItem | barItem | The TextBoxBarItem where the values should be copied to. |
Overrides
Remarks
The Items list will be shallow copied over.
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | |
| System.Runtime.Serialization.StreamingContext | context |
Overrides
OnTextBoxItemBound(TextBoxItemBoundEventArgs)
Raises the TextBoxItemBound event.
Declaration
public virtual void OnTextBoxItemBound(TextBoxItemBoundEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| TextBoxItemBoundEventArgs | e |
Events
TextBoxItemBound
Lets handle the textBox inside the textBoxItem.
Declaration
public event TextBoxItemBoundEventHandler TextBoxItemBound
Event Type
| Type |
|---|
| TextBoxItemBoundEventHandler |
Explicit Interface Implementations
ICloneable.Clone()
Declaration
object ICloneable.Clone()
Returns
| Type |
|---|
| System.Object |
Implements
System.ComponentModel.ICustomTypeDescriptor
System.Runtime.Serialization.ISerializable
System.ICloneable