TreeNode.ImageToolTip Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets the ToolTip text for the image displayed next to a node.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

[LocalizableAttribute(true)] 
public:
property String^ ImageToolTip {
	String^ get ();
	void set (String^ value);
}
/** @property */
public String get_ImageToolTip ()

/** @property */
public void set_ImageToolTip (String value)

public function get ImageToolTip () : String

public function set ImageToolTip (value : String)

Property Value

The ToolTip text for the image displayed next to a node. The default is an empty string (""), which indicates that this property is not set.

When an image is displayed next to a node (when the ImageUrl property is set), use the ImageToolTip property to specify the ToolTip displayed when the user positions the mouse pointer over the image. The text that you specify provides assistive technology devices with a description of the image that can be used to make the control more accessible.

The value of this property is stored in view state.

The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see LocalizableAttribute and ASP.NET Globalization and Localization.

The following code example demonstrates how to use the ImageToolTip property to specify the ToolTip text for an image displayed next to a node. For this example to work correctly, you must provide your own images.

No code example is currently available or this language may not be supported.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: