Back to Devexpress

IBaseViewController.GetView(BaseDocument) Method

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-ibaseviewcontroller-dot-getview-x28-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-basedocument-x29.md

latest2.1 KB
Original Source

IBaseViewController.GetView(BaseDocument) Method

Gets a View that owns this Document.

Namespace : DevExpress.XtraBars.Docking2010.Views

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
BaseView GetView(
    BaseDocument document
)
vb
Function GetView(
    document As BaseDocument
) As BaseView

Parameters

NameTypeDescription
documentBaseDocument

A BaseDocument object whose parent View is to be obtained.

|

Returns

TypeDescription
BaseView

A BaseView that owns the target Document.

|

Remarks

Use the GetView method to get a View that owns the specific Document. For instance, when a Document is undocked from a parent TabbedView and hosted within a floating container (see the BaseView.FloatingDocumentContainer property), it no longer belongs to this View. Instead, a secondary Tabbed View appears. That view owns the Document. If needed, you can get this View via the GetView method.

See Also

IBaseViewController Interface

IBaseViewController Members

DevExpress.XtraBars.Docking2010.Views Namespace