ShapeGeometry Methods
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | CreateDiagramItem(IGeometryHost^) | Creates a shape geometry host. |
![]() | Dispose() | Releases all resources used by the current instance of the ShapeGeometry class. |
![]() | Dispose(Boolean) | |
![]() | DoFoldToShape(IGeometryHost^, PointD, PointD) | Calculates the point where a connector crosses the outline of the shape geometry. It is used to compute where connectors should terminate. ![]() |
![]() | DoHitTest(IGeometryHost^, PointD, DiagramHitTestInfo^) | Determines whether a point is inside a shape. |
![]() | DoHitTest(IGeometryHost^, PointD, DiagramHitTestInfo^, Boolean) | Determines whether a point is inside a shape. |
![]() | DoHitTestSelection(IGeometryHost^, PointD, DiagramHitTestInfo^) | Determines whether a point is inside the selection highlight of a shape. |
![]() | DoPaint(DiagramPaintEventArgs^, IGeometryHost^) | Draws the shape geometry, and its shadow if it has one. |
![]() | DoPaintEmphasis(DiagramPaintEventArgs^, IGeometryHost^) | Draws emphasis on the shape. |
![]() | DoPaintGeometry(DiagramPaintEventArgs^, IGeometryHost^) | Paints the boundary and background of the shape. |
![]() | DoPaintResizeFeedback(DiagramPaintEventArgs^, IGeometryHost^, RectangleD) | Draws the resize feedback for the shape geometry. Called repeatedly as the user moves the mouse to resize the shape. |
![]() | DoPaintSelection(DiagramPaintEventArgs^, IGeometryHost^, Boolean, Boolean, Boolean) | Draws the selection highlighting, which typically surrounds the shape boundary. |
![]() | DoPaintShadow(DiagramPaintEventArgs^, IGeometryHost^) | Draws the shadow for the shape. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetBackgroundBrushId(IGeometryHost^) | Gets the ID that is assigned to the brush that paints the background of the shape geometry. |
![]() | GetExtraPenWidth(IGeometryHost^) | Gets the width of the outline pen that is outside the boundary of the shape. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() ![]() | GetHitTestTolerance(DiagramHitTestInfo^) | Gets the tolerance around the shape geometry to use when a hit test is performed. |
![]() | GetOutlinePenId(IGeometryHost^) | Gets the ID that is assigned to the brush that paints the outline of the shape geometry. |
![]() | GetPath(IGeometryHost^) | Gets the path around the shape geometry. Use the returned path before applying GetPath() to any other shape. Use GetPathCopy() if you want to retain a path. |
![]() | GetPath(RectangleD) | Gets the path around the shape geometry. |
![]() | GetPathCopy(IGeometryHost^) | Gets a copy of the path around the shape geometry. Dispose the path when you have finished with it. |
![]() | GetPerimeter(IGeometryHost^) | Gets the path of the perimeter around the shape, including the width of the pen that draws the boundary. Make a copy of this path if you want to retain it. |
![]() | GetPerimeterBoundingBox(IGeometryHost^) | Gets the bounding box around the perimeter of the shape, including the thickness of the pen that draws the boundary. |
![]() ![]() | GetSelectionBorderThickness(DiagramClientView^) | Gets the width of the border for a selection in the specified view. |
![]() ![]() | GetSelectionBorderThickness(Graphics^) | Gets the width of the border for a selection in the current view. |
![]() | GetSelectionLineOffset(DiagramClientView^) | Gets the distance between the selection and the outside of the shape geometry. |
![]() | GetSelectionLineWidth(DiagramClientView^) | Gets the width of the line that indicates that a shape is selected. |
![]() | GetType() | (Inherited from Object.) |
![]() | HasFilledBackground(IGeometryHost^) | True if this type of geometry has a filled background. |
![]() | HasOutline(IGeometryHost^) | True if this type of geometry has a visible border. |
![]() | HasShadow(IGeometryHost^) | True if this type of geometry has a shadow. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() ![]() | Rotate(PointD, Double, array<PointD>^) | Rotate an array of points around a specified center. |
![]() ![]() | SnapToCircle(PointD, Double, PointD, PointD) | Snaps a potential point from the bounding box around the shape geometry to the perimeter of the circle. |
![]() | ToString() | (Inherited from Object.) |
![]() ![]() | Translate(PointD, array<PointD>^) | Moves an array of points by a specified vector. |



