TreeView for WinForms | ComponentOne
C1.Win.SuperTooltip Namespace / C1SuperTooltipBase Class / MaximumWidth Property
Example

In This Topic
    MaximumWidth Property (C1SuperTooltipBase)
    In This Topic
    Gets or sets the maximum width of the tooltips.
    Syntax
    'Declaration
     
    
    <C1DescriptionAttribute("ST.MaximumWidth", "Gets or sets the maximum width of the tooltips.")>
    <DefaultValueAttribute(0)>
    <C1CategoryAttribute("Behavior")>
    Public Property MaximumWidth As Integer
    [C1Description("ST.MaximumWidth", "Gets or sets the maximum width of the tooltips.")]
    [DefaultValue(0)]
    [C1Category("Behavior")]
    public int MaximumWidth {get; set;}
    Remarks

    The C1SuperTooltipBase displays Html text. If the tip contains a lot of text without Html tags that cause line breaks (such as <br> or <p> for example), then the text will not wrap and the tooltip window may be too wide.

    Use this property to force text to wrap within the tooltip so it fits in the given width, even without Html line break tags.

    Values less than or equal to zero disable the property and cause the tip text to wrap only at the specified Html break tags.

    The code below forces all super tooltips to be less than or equal to 200 pixels wide. c1SuperTooltip1.MaximumWidth = 200;
    Example
    The code below forces all super tooltips to be less than or equal to 200 pixels wide.
    c1SuperTooltip1.MaximumWidth = 200;
    See Also