Delen via


NodeShapeGeometry Class

Base geometry for NodeShapes.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.ShapeGeometry
    Microsoft.VisualStudio.Modeling.Diagrams.NodeShapeGeometry
      Microsoft.VisualStudio.Modeling.Diagrams.EllipseShapeGeometry
      Microsoft.VisualStudio.Modeling.Diagrams.RoundedRectangleShapeGeometry

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
Public Class NodeShapeGeometry _
    Inherits ShapeGeometry
public class NodeShapeGeometry : ShapeGeometry
public ref class NodeShapeGeometry : public ShapeGeometry
type NodeShapeGeometry =  
    class 
        inherit ShapeGeometry 
    end
public class NodeShapeGeometry extends ShapeGeometry

The NodeShapeGeometry type exposes the following members.

Constructors

  Name Description
Protected method NodeShapeGeometry Initializes a new instance of the NodeShapeGeometry class.

Top

Properties

  Name Description
Public property ShadowOffset Gets the offset between the shape outline and the outer edge of the shadow. (Inherited from ShapeGeometry.)
Protected property UninitializedPath Gets the path around the shape geometry. (Inherited from ShapeGeometry.)

Top

Methods

  Name Description
Protected methodStatic member CanResize Gets a value indicating whether the user can resize this geometry.
Protected method Contains Gets a value indicating whether the point is within the geometry outline. The geometry outline is defined by the graphics path used to draw the geometry.
Public method Dispose() Releases all resources used by the current instance of the ShapeGeometry class. (Inherited from ShapeGeometry.)
Protected method Dispose(Boolean) (Inherited from ShapeGeometry.)
Public method DoFoldToShape Calculates the point along the vector which crosses the outline of the geometry. (Overrides ShapeGeometry.DoFoldToShape(IGeometryHost, PointD, PointD).)
Public method DoHitTest(IGeometryHost, PointD, DiagramHitTestInfo) Determines whether a point is inside a shape. (Inherited from ShapeGeometry.)
Public method DoHitTest(IGeometryHost, PointD, DiagramHitTestInfo, Boolean) Returns a value indicating whether the given point is within the boundary of the geometry. The hit test results are also returned. (Overrides ShapeGeometry.DoHitTest(IGeometryHost, PointD, DiagramHitTestInfo, Boolean).)
Public method DoHitTestSelection Returns a value indicating whether the given point is within the boundary of the geometry's surrounding selection feedback. The hit test results are also returned. (Overrides ShapeGeometry.DoHitTestSelection(IGeometryHost, PointD, DiagramHitTestInfo).)
Public method DoPaint Draws the shape geometry, and its shadow if it has one. (Inherited from ShapeGeometry.)
Public method DoPaintEmphasis Draws visual emphasis on the shape. This does not indicate selection, it only draws the user's attention to this shape when another shape is selected. (See ShapeElement.RelatedShapeToEmphasize.) (Overrides ShapeGeometry.DoPaintEmphasis(DiagramPaintEventArgs, IGeometryHost).)
Protected method DoPaintGeometry Draws the basic geometry. (Overrides ShapeGeometry.DoPaintGeometry(DiagramPaintEventArgs, IGeometryHost).)
Public method DoPaintResizeFeedback Draws the resize feedback for the geometry. (Overrides ShapeGeometry.DoPaintResizeFeedback(DiagramPaintEventArgs, IGeometryHost, RectangleD).)
Public method DoPaintSelection Draws a selection typically surrounding the geometry. (Overrides ShapeGeometry.DoPaintSelection(DiagramPaintEventArgs, IGeometryHost, Boolean, Boolean, Boolean).)
Protected method DoPaintShadow Draws the shadow for the shape. (Inherited from ShapeGeometry.)
Protected methodStatic member DrawResizeableGrabHandles Draws resizeable grab handles on a shape. The grab handles also indicate focus.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetBackgroundBrushId Gets the ID that is assigned to the brush that paints the background of the shape geometry. (Inherited from ShapeGeometry.)
Public method GetExtraPenWidth Gets the width of the outline pen that is outside the boundary of the shape. (Inherited from ShapeGeometry.)
Protected method GetFocusIndicatorInsideMargin Gets the distance in world units from the bounding box of the shape to the focus indicator drawn within the shape's bounding box.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetOutlinePenId Gets the ID that is assigned to the brush that paints the outline of the shape geometry. (Inherited from ShapeGeometry.)
Public method 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. (Inherited from ShapeGeometry.)
Protected method GetPath(RectangleD) Gets the path around the shape geometry. (Inherited from ShapeGeometry.)
Public method GetPathCopy Gets a copy of the path around the shape geometry. Dispose the path when you have finished with it. (Inherited from ShapeGeometry.)
Public method GetPerimeter 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. (Inherited from ShapeGeometry.)
Protected method GetPerimeterBoundingBox Gets the bounding box around the perimeter of the shape, including the thickness of the pen that draws the boundary. (Inherited from ShapeGeometry.)
Public method GetSelectionLineOffset Gets the distance between the selection and the outside of the shape geometry. (Inherited from ShapeGeometry.)
Public method GetSelectionLineWidth Gets the width of the line that indicates that a shape is selected. (Inherited from ShapeGeometry.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method HasFilledBackground True if this type of geometry has a filled background. (Inherited from ShapeGeometry.)
Protected method HasOutline True if this type of geometry has a visible border. (Inherited from ShapeGeometry.)
Protected method HasShadow True if this type of geometry has a shadow. (Inherited from ShapeGeometry.)
Protected methodStatic member IsGrabHandleSupported Returns true if the grab handle is supported.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

The object that implements IGeometryHost should also implement INodeGeometryData.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling.Diagrams Namespace