Xceed SmartUI for WinForms v3.6 Documentation
Width Property (TextBoxTool)


Xceed.SmartUI.Controls.v3.6 Assembly > Xceed.SmartUI.Controls.ToolBar Namespace > TextBoxTool Class : Width Property
Gets or sets the width, in pixels, of the TextBoxTool.
Syntax
'Declaration
 
<DescriptionAttribute("The width of the TextBoxTool.")>
<CategoryAttribute("Appearance")>
<DefaultValueAttribute()>
<BrowsableAttribute(True)>
<MergablePropertyAttribute(True)>
<LocalizableAttribute(False)>
Public Property Width As Integer
'Usage
 
Dim instance As TextBoxTool
Dim value As Integer
 
instance.Width = value
 
value = instance.Width
[Description("The width of the TextBoxTool.")]
[Category("Appearance")]
[DefaultValue()]
[Browsable(true)]
[MergableProperty(true)]
[Localizable(false)]
public int Width {get; set;}

Property Value

A value representing the width, in pixels, of the TextBoxTool. If -1 (default), the width of the TextBoxTool is automatically adjusted according to the value of the Xceed.SmartUI.SmartItem.Text property (the textbox part will have a fixed width of 100 pixels).
Remarks

When the width is set to a value greater than 0, only the width of the textbox part of the tool will be affected.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TextBoxTool Class
TextBoxTool Members