ControlBaseGetTemplateChildT Method (String, Boolean)Document Toolkit Help
Gets the template child and checks whether a required child exists and is of the correct type.

Namespace: FirstFloor.Documents.Controls
Assembly: FirstFloor.Documents.Controls (in FirstFloor.Documents.Controls.dll) Version: 2.5.0.0 (2.5.11.0)
Syntax

protected T GetTemplateChild<T>(
	string childName,
	bool required
)
where T : class

Parameters

childName
Type: SystemString
Name of the child.
required
Type: SystemBoolean
if set to true [required].

Type Parameters

T
Specifies the type of the template child.

Return Value

Type: T
The typed template child.
See Also

Reference