System.Web.UI.WebControls.TreeView.ImageSet Property

Gets or sets the group of images to use for the System.Web.UI.WebControls.TreeView control.

Syntax

[System.ComponentModel.DefaultValue(System.Web.UI.WebControls.TreeViewImageSet.Custom)]
public TreeViewImageSet ImageSet { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the TreeView.ImageSet property to specify the group of images to use for the System.Web.UI.WebControls.TreeView control. You can either select a predefined set of images to give the control a standard look or define your own custom set.

Note:

The TreeView.ImageSet property does not affect any style settings for a node. Set the appropriate style property, such as the TreeView.NodeStyle property, if you want to add custom colors and spacing.

The following table lists the valid values for The TreeView.ImageSet property.

TreeViewImageSet.Arrows

A predefined image set that uses arrow images.

TreeViewImageSet.BulletedList

A predefined image set that uses diamond-shaped bullet images.

TreeViewImageSet.BulletedList2

A predefined image set that uses square-shaped bullet images.

TreeViewImageSet.BulletedList3

A predefined set of sectioned, diamond shaped bullet images.

TreeViewImageSet.BulletedList4

A predefined set of alternate sectioned, diamond shaped bullet images in sizes that vary by level.

TreeViewImageSet.Contacts

A predefined image set that uses MSN Messenger images.

TreeViewImageSet.Custom

A user-defined image set.

TreeViewImageSet.Events

A predefined image set that uses event log-styled images.

TreeViewImageSet.Faq

A predefined image set that uses FAQ-styled images.

TreeViewImageSet.Inbox

A predefined image set that uses e-mail-styled images.

TreeViewImageSet.News

A predefined image set that uses newsgroup-styled images.

TreeViewImageSet.Simple

A predefined image set that uses simple shape outlines.

TreeViewImageSet.Simple2

A predefined image set that uses simple filled shapes.

TreeViewImageSet.Msdn

A predefined image set that uses MSDN images.

TreeViewImageSet.WindowsHelp

A predefined image set that uses Microsoft Windows Help images.

TreeViewImageSet.XPFileExplorer

A predefined image set that uses Windows Explorer images available in Microsoft Windows XP.

When defining a custom set of images, you should specify an image for each of the properties in the following table. Otherwise, the default image for that property is used.

TreeView.CollapseImageUrl

The URL to a custom image for the collapsible node indicator.

TreeView.ExpandImageUrl

The URL to a custom image for the expandable node indicator.

TreeView.LineImagesFolder

The URL to a folder that contains custom images for the lines that connect nodes.

TreeView.NoExpandImageUrl

The URL to a custom image for the non-expandable node indicator.

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