System.Web.UI.WebControls.TreeNodeStyle.ImageUrl Property

Gets or sets the URL to an image that is displayed next to the node.

Syntax

[System.ComponentModel.Editor("System.Web.UI.Design.ImageUrlEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))]
[System.ComponentModel.NotifyParentProperty(true)]
[System.Web.UI.UrlProperty]
[System.ComponentModel.DefaultValue("")]
public string ImageUrl { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the TreeNodeStyle.ImageUrl property to specify a custom image for style. This image is displayed next to the node, and it can be in any image-file format (such as .jpg, .gif, .bmp, and so on), as long as the client browser supports that format.

If both the TreeNodeStyle.ImageUrl and TreeNode.ImageUrl properties are set, the image that is displayed is the one that is specified by the TreeNode.ImageUrl property.

The value of this property is stored in view state.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0