LinkShapeGeometry Class
Encapsulates drawing, folding, and hit testing a link geometry on the design surface
Inheritance Hierarchy
Object
Microsoft.VisualStudio.Modeling.Diagrams.ShapeGeometry
Microsoft.VisualStudio.Modeling.Diagrams.LinkShapeGeometry
Microsoft.VisualStudio.Modeling.Diagrams.BinaryLinkShapeGeometry
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
Public Class LinkShapeGeometry _
Inherits ShapeGeometry
public class LinkShapeGeometry : ShapeGeometry
public ref class LinkShapeGeometry : public ShapeGeometry
type LinkShapeGeometry =
class
inherit ShapeGeometry
end
public class LinkShapeGeometry extends ShapeGeometry
The LinkShapeGeometry type exposes the following members.
Constructors
Name | Description | |
---|---|---|
LinkShapeGeometry | Initializes a new instance of the LinkShapeGeometry class. |
Top
Properties
Name | Description | |
---|---|---|
ShadowOffset | Gets the offset between the shape outline and the outer edge of the shadow. (Inherited from ShapeGeometry.) | |
UninitializedPath | Gets the path around the shape geometry. (Inherited from ShapeGeometry.) |
Top
Methods
Name | Description | |
---|---|---|
AddLineArcPath | Adds a jump-over arc to the specified GraphicsPath. | |
CalculateRotationAngle | Calculates the rotation angle of a link shape's decorator. | |
CreateDiagramItem | Creates a DiagramItem object given an IGeometryHost object. | |
Dispose() | Releases all resources used by the current instance of the ShapeGeometry class. (Inherited from ShapeGeometry.) | |
Dispose(Boolean) | (Inherited from ShapeGeometry.) | |
DoFoldToShape | Calculates the point along the vector which crosses the outline of the geometry. (Overrides ShapeGeometry.DoFoldToShape(IGeometryHost, PointD, PointD).) | |
DoHitTest(IGeometryHost, PointD, DiagramHitTestInfo) | Determines whether a point is inside a shape. (Inherited from ShapeGeometry.) | |
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).) | |
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).) | |
DoPaint | Draws the shape geometry, and its shadow if it has one. (Inherited from ShapeGeometry.) | |
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).) | |
DoPaintGeometry | Draws the basic geometry. (Overrides ShapeGeometry.DoPaintGeometry(DiagramPaintEventArgs, IGeometryHost).) | |
DoPaintResizeFeedback | Draws the resize feedback for the geometry. (Overrides ShapeGeometry.DoPaintResizeFeedback(DiagramPaintEventArgs, IGeometryHost, RectangleD).) | |
DoPaintSelection | Draws a selection typically surrounding the geometry. (Overrides ShapeGeometry.DoPaintSelection(DiagramPaintEventArgs, IGeometryHost, Boolean, Boolean, Boolean).) | |
DoPaintShadow | Draws the shadow for the shape. (Inherited from ShapeGeometry.) | |
DrawDecorator | Draws the LinkShape's decorator. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetBackgroundBrushId | Gets the ID that is assigned to the brush that paints the background of the shape geometry. (Inherited from ShapeGeometry.) | |
GetExtraPenWidth | Gets the width of the outline pen that is outside the boundary of the shape. (Inherited from ShapeGeometry.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetOutlinePenId | Gets the ID that is assigned to the brush that paints the outline of the shape geometry. (Inherited from ShapeGeometry.) | |
GetPath(IGeometryHost) | Gets the GraphicsPath describing the geometry. This returns a rectangle path by default. This is a singleton on the geometry. Do not dispose. This is a singleton on the geometry class. Do not dispose. Use immediately. Use GetPathCopy if another path is needed! (Overrides ShapeGeometry.GetPath(IGeometryHost).) | |
GetPath(RectangleD) | Gets the path around the shape geometry. (Inherited from ShapeGeometry.) | |
GetPathCopy | Gets a copy of the path around the shape geometry. Dispose the path when you have finished with it. (Inherited from ShapeGeometry.) | |
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.) | |
GetPerimeterBoundingBox | Gets the bounding box around the perimeter of the shape, including the thickness of the pen that draws the boundary. (Inherited from ShapeGeometry.) | |
GetSelectionLineOffset | Gets the distance between the selection and the outside of the shape geometry. (Inherited from ShapeGeometry.) | |
GetSelectionLineWidth | Gets the width of the line that indicates that a shape is selected. (Inherited from ShapeGeometry.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasFilledBackground | True if this type of geometry has a filled background. (Inherited from ShapeGeometry.) | |
HasOutline | True if this type of geometry has a visible border. (Inherited from ShapeGeometry.) | |
HasShadow | True if this type of geometry has a shadow. (Inherited from ShapeGeometry.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
The object that implements IGeometryHost should also implement IBinaryLinkGeometryData.
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.