Back to Devexpress

DocumentEventArgs.Document Property

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-documenteventargs.md

latest3.3 KB
Original Source

DocumentEventArgs.Document Property

Points to the document related to the current event.

Namespace : DevExpress.XtraBars.Docking2010.Views

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public BaseDocument Document { get; }
vb
Public ReadOnly Property Document As BaseDocument

Property Value

TypeDescription
BaseDocument

A BaseDocument related to the current event.

|

Remarks

See the Deferred Load topic to learn more.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Document 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.

winforms-create-custom-document-manager/CS/CustomDocument/Main.cs#L23

csharp
if (e.Document == xtraUserControl3Document)
    e.Control = new CustomDocumentApplication.XtraUserControl3();

winforms-document-manager-web-browser-ui/CS/Form1.cs#L33

csharp
wb.TitleChanged += wb_TitleChanged;
docs.Add(e.Document);
e.Control = wb;

winforms-create-custom-document-manager/VB/CustomDocument/Main.vb#L25

vb
If e.Document Is xtraUserControl3Document Then
    e.Control = New CustomDocumentApplication.XtraUserControl3()

winforms-document-manager-web-browser-ui/VB/Form1.vb#L26

vb
AddHandler wb.TitleChanged, AddressOf wb_TitleChanged
docs.Add(e.Document)
e.Control = wb

See Also

Deferred Load

DocumentEventArgs Class

DocumentEventArgs Members

DevExpress.XtraBars.Docking2010.Views Namespace