14 lines
449 B
C#
14 lines
449 B
C#
using QuestPDF.Elements;
|
|
using QuestPDF.Infrastructure;
|
|
|
|
namespace QuestPDF.Fluent
|
|
{
|
|
public static class DynamicComponentExtensions
|
|
{
|
|
public static void Dynamic<TState>(this IContainer element, IDynamicComponent<TState> dynamicElement) where TState : struct
|
|
{
|
|
var componentProxy = DynamicComponentProxy.CreateFrom(dynamicElement);
|
|
element.Element(new DynamicHost(componentProxy));
|
|
}
|
|
}
|
|
} |