MVCxTab.SetTabTextTemplateContent(Action<TabControlTemplateContainer>) Method
Allows you to create a template used to display the text content of the current tab.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
Declaration
public void SetTabTextTemplateContent(
Action<TabControlTemplateContainer> contentMethod
)
Parameters
Name | Type | Description |
---|---|---|
contentMethod | Action<TabControlTemplateContainer> | A method to which a template content rendering is delegated. |
Remarks
Use the SetTabTextTemplateContent method to define the text content for the current tab. The template created using this method replaces the text of an individual tab.
To define the common text content for all tabs in a TabControl, use the extension’s TabControlSettings.SetTabTextTemplateContent method.
Note
Once a template defined using the SetTabTextTemplateContent method is created, it is instantiated within a container object of the TabControlTemplateContainer type. This container object exposes a set of members which can be useful when designing a template.