wpf-devexpress-dot-xpf-dot-docking-dot-baselayoutitem-8db2c951.md
Gets or sets the format string used to format the layout item’s tab caption. This is a dependency property.
Namespace : DevExpress.Xpf.Docking
Assembly : DevExpress.Xpf.Docking.v25.2.dll
NuGet Package : DevExpress.Wpf.Docking
public string TabCaptionFormat { get; set; }
Public Property TabCaptionFormat As String
| Type | Description |
|---|---|
| String |
A string that specifies the tab caption format.
|
The format specified by the TabCaptionFormat property must follow the Composite Formatting rules. Typically, the format string contains the “{0}” string plus custom text. The “{0}” string is a placeholder for the item’s caption, specified by the BaseLayoutItem.TabCaption property. To learn more about formatting, see Composite Formatting in MSDN.
The following code shows how to create a format string that adds a colon after an item’s tab caption:
<dxdo:LayoutControlItem x:Name="myLayoutItem" TabCaptionFormat="{}{0}:" Caption="Name">
...
</dxdo:LayoutControlItem>
myLayoutItem.TabCaptionFormat = "{0}:";
See Also