KaxNavigationItem Constructor (String, String) |
Initializes a new instance of the
KaxNavigationItem class with the
specified text and URL to navigate to.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic KaxNavigationItem(
string text,
string navigateUrl
)
Public Sub New (
text As String,
navigateUrl As String
)
public:
KaxNavigationItem(
String^ text,
String^ navigateUrl
)
new :
text : string *
navigateUrl : string -> KaxNavigationItem
Parameters
- text
- Type: SystemString
The text of the item. The Text property is set to the value
of this parameter.
- navigateUrl
- Type: SystemString
The url which the item will navigate to. The
NavigateUrl property is set to the value of this
parameter.
Remarks
Use this constructor to create and initialize a new instance of the
KaxNavigationItem class using the specified text and URL.
Examples
This example demonstrates how to add items to
KaxNavigationBar
controls.
KaxNavigationItem item = new KaxNavigationItem("News", "~/News.aspx");
KaxNavigationBar1.Items.Add(item);
Dim item As New KaxNavigationItem("News", "~/News.aspx")
KaxNavigationBar1.Items.Add(item)
See Also