Document Solutions for PDF
GrapeCity.Documents.DX.Windows Assembly / GrapeCity.Documents.DX.Direct2D Namespace / Effect Class / RegisterAndCreateCustom<T> Method
The factory to register the effect.
The device context.

In This Topic
    RegisterAndCreateCustom<T> Method
    In This Topic
    Registers, if necessary, and initializes a new instance of a custom Effect class.
    Syntax
    'Declaration
     
    Public Shared Function RegisterAndCreateCustom(Of T As {New, ICustomEffect})( _
       ByVal factory As Factory1, _
       ByVal deviceContext As DeviceContext _
    ) As Effect
    public static Effect RegisterAndCreateCustom<T>( 
       Factory1 factory,
       DeviceContext deviceContext
    )
    where T: new(), ICustomEffect

    Parameters

    factory
    The factory to register the effect.
    deviceContext
    The device context.

    Type Parameters

    T
    See Also