DocumentManagerServiceExtensions.GetDocumentsByParentViewModel(IDocumentManagerService, Object) Method

Static extension method that returns a collection of documents whose Parent View Model (ISupportParentViewModel) is equal to the specified View Model.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v19.2.dll

Declaration

public static IEnumerable<IDocument> GetDocumentsByParentViewModel(
    this IDocumentManagerService service,
    object parentViewModel
)
<ExtensionAttribute>
Public Shared Function GetDocumentsByParentViewModel(
    service As IDocumentManagerService,
    parentViewModel As Object
) As IEnumerable(Of IDocument)

Parameters

Name Type Description
service IDocumentManagerService

A System.Type value specifying the type of the service.

parentViewModel Object

An object that is passed to the view model of the created view via the ISupportParentViewModel.ParentViewModel property.

Returns

Type Description
IEnumerable<IDocument>

A collection of objects implementing the IDocument interface.

See Also