//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//------------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.ComponentModel;
using System.Web.UI;
///
/// Represents a
///
[
ToolboxItem(false)
]
public class SiteMapNodeItem : WebControl, INamingContainer, IDataItemContainer {
private int _itemIndex;
private SiteMapNodeItemType _itemType;
private SiteMapNode _siteMapNode;
///
/// Initializes a new instance of the class.
///
public SiteMapNodeItem(int itemIndex, SiteMapNodeItemType itemType) {
this._itemIndex = itemIndex;
this._itemType = itemType;
}
///
/// Represents a sitemapnode.
///
public virtual SiteMapNode SiteMapNode {
get {
return _siteMapNode;
}
set {
_siteMapNode = value;
}
}
///
/// Indicates the index of the item. This property is read-only.
///
public virtual int ItemIndex {
get {
return _itemIndex;
}
}
///
/// Indicates the type of the item in the .
///
public virtual SiteMapNodeItemType ItemType {
get {
return _itemType;
}
}
///
///
///
protected internal virtual void SetItemType(SiteMapNodeItemType itemType) {
this._itemType = itemType;
}
///
object IDataItemContainer.DataItem {
get {
return SiteMapNode;
}
}
int IDataItemContainer.DataItemIndex {
get {
return ItemIndex;
}
}
int IDataItemContainer.DisplayIndex {
get {
return ItemIndex;
}
}
}
}