Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax public IKaxTabContainer Owner { get; }
Public ReadOnly Property Owner As IKaxTabContainer
Get
public:
virtual property IKaxTabContainer^ Owner {
IKaxTabContainer^ get () sealed;
}
abstract Owner : IKaxTabContainer with get
override Owner : IKaxTabContainer with get
Property Value
Type:
IKaxTabContainer
The object which contains the tab. It might be an instance of the
KaxTabControl class or the
KaxTab
class depending on the hierarchy level.
Implements
IKaxTabContainerOwnerRemarks
The value is of the
IKaxTabContainer type which is
implemented by the
KaxTabControl class and the
KaxTab class. Use the
Owner property when
recursively traversing tabs in the
KaxTabControl control.
Examples
The following example demonstrates how to make a bread crumb trail out of
hierarchical KaxTabControl.
void Page_Load(object sender, EventArgs e)
{
if (KaxTabControl1.SelectedIndex >= 0)
{
KaxTab selected = KaxTabControl1.InnermostSelectedTab;
IKaxTabContainer owner = selected.Owner;
string breadCrumbTrail = string.Empty;
while (owner != null)
{
breadCrumbTrail = " > " + owner.SelectedTab.Text + breadCrumbTrail;
owner = owner.Owner;
}
Label1.Text = breadCrumbTrail;
}
}
Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If KaxTabControl1.SelectedIndex >= 0 Then
Dim selected As KaxTab = KaxTabControl1.InnermostSelectedTab
Dim owner As IKaxTabContainer = selected.Owner
Dim breadCrumbTrail As String = String.Empty
While Not owner Is Nothing
breadCrumbTrail = " > " & owner.SelectedTab.Text & breadCrumbTrail
owner = owner.Owner
End While
Label1.Text = breadCrumbTrail
End If
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also