Table of Contents

Method SetMaxWidth

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SetMaxWidth(int)

Sets tooltip maximal width in pixels.

public static bool SetMaxWidth(int width)

Parameters

width int

ToolTip width in pixels.

Returns

bool

true if operation is successful; false otherwise.

Remarks

By default, tooltips are wrapped at a suitably chosen width. You can pass -1 as width to disable wrapping them completely, 0 to restore the default behaviour or an arbitrary positive value to wrap them at the given width. Notice that this function does not change the width of the tooltips created before calling it. Currently this function is Windows-only.