Skip to main content
A newer version of this page is available. .

BaseLayoutItem.Caption Property

Gets or sets the layout item’s caption.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v18.2.dll

Declaration

public object Caption { get; set; }

Property Value

Type Description
Object

A string value that specifies the layout item’s caption.

Remarks

By default, the Caption is displayed in the BaseLayoutItem‘s header and the same object is shown within a tab when the BaseLayoutItem is in a tabbed state. You can set a different tab caption using the BaseLayoutItem.TabCaption property. The following figure illustrates a panel with different Caption and BaseLayoutItem.TabCaption property values.

DXDocking Captions And TabCaptions

Generally, you set the Caption as a string value. If you assign any other object to item’s caption, you may need a DataTemplate object to visualize it. Use the BaseLayoutItem.CaptionTemplate property in this case.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Caption property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also