Click or drag to resize

GUIFactoryServiceGetController(Object, Type, Type, UseDocument) Method

Gets an IMVCController for a given document type.

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public IMVCController? GetController(
	Object[] creationArgs,
	Type? overrideArg0Type,
	Type expectedControllerType,
	UseDocument copyDocument
)

Parameters

creationArgs  Object
The argument list. The first element args[0] is the document for which the controller is searched. The following elements are optional, and are usually the parents of this document.
overrideArg0Type  Type
If this parameter is not null, this given type is used instead of determining the type of the arg[0] argument.
expectedControllerType  Type
Type of controller that you expect to return.
copyDocument  UseDocument
Determines wether to use the document directly or use a clone of the document.

Return Value

IMVCController
The controller for that document when found.

Implements

IGuiFactoryServiceGetController(Object, Type, Type, UseDocument)
See Also