Export (0) Print
Expand All

ToolTip.StripAmpersands Property

Gets or sets a value that determines how ampersand (&) characters are treated.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public bool StripAmpersands { get; set; }
/** @property */
public boolean get_StripAmpersands ()

/** @property */
public void set_StripAmpersands (boolean value)

public function get StripAmpersands () : boolean

public function set StripAmpersands (value : boolean)

Not applicable.

Property Value

true if ampersand characters are stripped from the ToolTip text; otherwise, false. The default is false.

An application commonly uses the same string resource for multiple purposes, such as a menu item and a ToolTip. However, menus often enable accelerators, denoted by an ampersand character, in the menu item string. ToolTips do not support this capability, so by default, ampersands are just displayed as normal characters. Setting the StripAmpersands property to true removes all ampersands from the ToolTip text.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

© 2014 Microsoft