Click or drag to resize

IWorkbenchGetViewModelT 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#
T GetViewModel<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

T
The content (either a IPadContent or a IViewContent whose ModelObject is the provided document.
See Also