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

In This Topic
    MaximumWidth Property
    In This Topic
    Gets or sets the maximum width of the tooltips.
    Syntax
    'Declaration
     
    
    Public Property MaximumWidth As Integer
    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