Skip to main content
Tab

TitleIndexItemCollection.Add(String, String) Method

Adds a new item to the collection and specifies the item’s display text and URL.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

public virtual TitleIndexItem Add(
    string text,
    string navigateUrl
)

Parameters

Name Type Description
text String

A String value specifying the item’s display text. Initializes the item’s TitleIndexItem.Text property.

navigateUrl String

A String value specifying the URL to which the browser navigates when the item is clicked. Initializes the item’s TitleIndexItem.NavigateUrl property.

Returns

Type Description
TitleIndexItem

A TitleIndexItem object representing the newly created item.

Remarks

Use the Add method to add a new item with the specified settings to the TitleIndexItemCollection object.

See Also