Nevron .NET Vision
Nevron.Diagram Namespace / NMaster Class / CreateInstance Method / CreateInstance(NDrawingDocument,INDiagramElementComposite,NPointF,ContentAlignment) Method
document in which to instance the master
composite in which to add the elements
pin point for alignment of the instance in the drawing (in drawing coordinates)
alignment of the instance relative to the pin


In This Topic
    CreateInstance(NDrawingDocument,INDiagramElementComposite,NPointF,ContentAlignment) Method
    In This Topic
    Creates an instance of this master in the active layer of the specified document
    Syntax
    'Declaration
     
    
    Public Overloads Function CreateInstance( _
       ByVal document As NDrawingDocument, _
       ByVal composite As INDiagramElementComposite, _
       ByVal pin As NPointF, _
       ByVal alignment As System.Drawing.ContentAlignment _
    ) As NNodeList
    'Usage
     
    
    Dim instance As NMaster
    Dim document As NDrawingDocument
    Dim composite As INDiagramElementComposite
    Dim pin As NPointF
    Dim alignment As System.Drawing.ContentAlignment
    Dim value As NNodeList
     
    value = instance.CreateInstance(document, composite, pin, alignment)
    public NNodeList CreateInstance( 
       NDrawingDocument document,
       INDiagramElementComposite composite,
       NPointF pin,
       System.Drawing.ContentAlignment alignment
    )

    Parameters

    document
    document in which to instance the master
    composite
    composite in which to add the elements
    pin
    pin point for alignment of the instance in the drawing (in drawing coordinates)
    alignment
    alignment of the instance relative to the pin

    Return Value

    an array of the elements, which were added to the document
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also