Xceed SmartUI for WinForms v3.6 Documentation
Xceed.SmartUI.Controls.v3.6 Assembly / Xceed.SmartUI.Controls.ToolBar Namespace / Tool Class / TextWidth Property


In This Topic
    TextWidth Property
    In This Topic
    Gets or sets the width, in pixels, of the Tool's caption part.
    Syntax
    'Declaration
     
    <DescriptionAttribute("The width of the Tool's caption.")>
    <CategoryAttribute("Appearance")>
    <DefaultValueAttribute(-1)>
    <BrowsableAttribute(True)>
    <MergablePropertyAttribute(True)>
    <LocalizableAttribute(False)>
    Public Property TextWidth As Integer
    'Usage
     
    Dim instance As Tool
    Dim value As Integer
     
    instance.TextWidth = value
     
    value = instance.TextWidth
    [Description("The width of the Tool's caption.")]
    [Category("Appearance")]
    [DefaultValue(-1)]
    [Browsable(true)]
    [MergableProperty(true)]
    [Localizable(false)]
    public int TextWidth {get; set;}

    Property Value

    A value representing the width, in pixels, of the Tool's caption. If -1 (default), the width of the caption is automatically adjusted according to the value of the Xceed.SmartUI.SmartItem.Text property.
    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