windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-basedocument-0408ab98.md
Gets or sets an object that contains data on the current BaseDocument object.
Namespace : DevExpress.XtraBars.Docking2010.Views
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(null)]
public object Tag { get; set; }
<DefaultValue(Nothing)>
Public Property Tag As Object
| Type | Default | Description |
|---|---|---|
| Object | null |
An object that contains data on the current object.
|
This property can be used to store any data that you want to associate with the current object.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Tag 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.
reporting-winforms-salary-reports/CS/SalaryReports/MainForm.cs#L13
{
switch ((int)e.Document.Tag)
{
reporting-winforms-salary-reports/VB/SalaryReports/MainForm.vb#L12
Private Sub windowsUIView1_QueryControl(ByVal sender As Object, ByVal e As DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs) Handles windowsUIView1.QueryControl
Select Case CInt(Fix(e.Document.Tag))
Case 0
See Also