NevronOpenVision
Nevron.Nov.Diagram Namespace / NShape Class / Init2DShape Method
In This Topic
    Init2DShape Method (NShape)
    In This Topic
    Helper method that sets the ShapeType to Shape2D and places the local pin point inside the center of the shape Width and Height (via expressions). Additionally, if the shape was previously a Shape1D, this method unglues the Begin and End points and destroys any expressions associated with the shape Angle, Width, Height, PinX and PinY properties. ShapeType = ENShapeType.Shape2D; SetFx(NShape.LocPinXProperty, new NShapeWidthFactorFx(0.5f)); SetFx(NShape.LocPinYProperty, new NShapeHeightFactorFx(0.5f));
    Syntax
    public void Init2DShape()
    Remarks
    ShapeType = ENShapeType.Shape2D; SetFx(NShape.LocPinXProperty, new NShapeWidthFactorFx(0.5f)); SetFx(NShape.LocPinYProperty, new NShapeHeightFactorFx(0.5f));
    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