|
@@ -41,11 +41,14 @@ namespace QuestPDF.Fluent
|
|
|
|
|
|
|
|
public static class ComponentExtensions
|
|
public static class ComponentExtensions
|
|
|
{
|
|
{
|
|
|
|
|
+ /// <include file='../Resources/Documentation.xml' path='documentation/doc[@for="component"]/*' />
|
|
|
|
|
+ /// <param name="component">Instance of the class implementing the <see cref="IComponent"></see> interface.</param>
|
|
|
public static void Component<T>(this IContainer element, T component) where T : IComponent
|
|
public static void Component<T>(this IContainer element, T component) where T : IComponent
|
|
|
{
|
|
{
|
|
|
element.Component(component, null);
|
|
element.Component(component, null);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /// <include file='../Resources/Documentation.xml' path='documentation/doc[@for="component"]/*' />
|
|
|
public static void Component<T>(this IContainer element) where T : IComponent, new()
|
|
public static void Component<T>(this IContainer element) where T : IComponent, new()
|
|
|
{
|
|
{
|
|
|
element.Component(new T(), null);
|
|
element.Component(new T(), null);
|