NevronOpenVision
Nevron.Nov.Diagram Namespace / NShape Class / Init1DShape Method
In This Topic
    Init1DShape Method
    In This Topic
    Helper method for setting up a 1D shape. Sets the ShapeType to 1D.

    If xformType is Vector, the shape transform is initialized as a vector connecting the begin and end points, such that: Binds the Width to the distance between the Begin and End points. Binds the Angle to the angle formed by the line connecting the Begin and End points and the X axis. Binds the PinX and PinY to the middle point of the line connecting the Begin and End points. Binds the LocPinX and LocPinY to the center of the shape local alignment box.

    If xformType is Box, the shape transform is initialized as a vector connecting the begin and end points, such that: Binds the Width to the X distance between the Begin and End points. Binds the Height to the Y distance between the Begin and End points. Sets the angle to zero. Binds the PinX and PinY to the middle point of the line connecting the Begin and End points. Binds the LocPinX and LocPinY to the center of the shape.

    Syntax
    public void Init1DShape( 
       EN1DShapeXForm xformType
    )

    Parameters

    xformType
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also