Back to Devexpress

BaseDocument.Tag Property

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-basedocument-0408ab98.md

latest2.6 KB
Original Source

BaseDocument.Tag Property

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

Declaration

csharp
[DefaultValue(null)]
public object Tag { get; set; }
vb
<DefaultValue(Nothing)>
Public Property Tag As Object

Property Value

TypeDefaultDescription
Objectnull

An object that contains data on the current object.

|

Remarks

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

csharp
{
    switch ((int)e.Document.Tag)
    {

reporting-winforms-salary-reports/VB/SalaryReports/MainForm.vb#L12

vb
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

BaseDocument Class

BaseDocument Members

DevExpress.XtraBars.Docking2010.Views Namespace