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()
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