ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.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, CustomEffect})( _
       ByVal factory As Factory1, _
       ByVal deviceContext As DeviceContext _
    ) As Effect
    public static Effect RegisterAndCreateCustom<T>( 
       Factory1 factory,
       DeviceContext deviceContext
    )
    where T: new(), CustomEffect

    Parameters

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

    Type Parameters

    T
    See Also