Click or drag to resize

IWorkbenchGetViewModelsT Method

Gets the content for the provided document.

Namespace: Altaxo.Gui.Workbench
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
IEnumerable<T> GetViewModels<T>(
	Object document
)
where T : IMVCController

Parameters

document  Object
The document to search for.

Type Parameters

T
The type of controller to search for. The argument IMVCController will find any controller that uses the provided document. If you provide a more specific type, only such a controller that implements this type and has the provided document will be returned.

Return Value

IEnumerableT
Enumeration of content (either a IPadContent or a IViewContent whose ModelObject is the provided document.
See Also