Document Solutions for PDF
GrapeCity.Documents.DX.Windows Assembly / GrapeCity.Documents.DX.Direct2D Namespace / Layer Class / Create Method / Create(RenderTarget) Method
an instance of RenderTarget

In This Topic
    Create(RenderTarget) Method
    In This Topic
    Creates a layer resource that can be used with this render target and its compatible render targets. The new layer has the specified initial size. The layer resource is allocated to the minimum size when {{PushLayer}} is called.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Create( _
       ByVal renderTarget As RenderTarget _
    ) As Layer
    public static Layer Create( 
       RenderTarget renderTarget
    )

    Parameters

    renderTarget
    an instance of RenderTarget
    Remarks
    Regardless of whether a size is initially specified, the layer automatically resizes as needed.
    See Also