Udostępnij za pośrednictwem


LinkShapeGeometry Class

Definition

Encapsulates drawing, folding, and hit testing a link geometry on the design surface

public ref class LinkShapeGeometry : Microsoft::VisualStudio::Modeling::Diagrams::ShapeGeometry
public class LinkShapeGeometry : Microsoft.VisualStudio.Modeling.Diagrams.ShapeGeometry
type LinkShapeGeometry = class
    inherit ShapeGeometry
Public Class LinkShapeGeometry
Inherits ShapeGeometry
Inheritance
LinkShapeGeometry
Derived

Remarks

The object that implements IGeometryHost should also implement IBinaryLinkGeometryData.

Constructors

LinkShapeGeometry()

Initializes a new instance of the LinkShapeGeometry class.

Properties

ShadowOffset

Gets the shadow offset in world units.

(Inherited from ShapeGeometry)
UninitializedPath

get/set the graphics path This is a singleton on the geometry class. Do not dispose. Use immediately. Use GetPathCopy if another path is needed!

(Inherited from ShapeGeometry)

Methods

AddLineArcPath(GraphicsPath, PointD, PointD)

Adds a jump-over arc to the specified GraphicsPath.

CalculateRotationAngle(PointD, PointD)

Calculates the rotation angle of a link shape's decorator.

CreateDiagramItem(IGeometryHost, LineSegment)

Creates a DiagramItem object given an IGeometryHost object.

Dispose() (Inherited from ShapeGeometry)
Dispose(Boolean) (Inherited from ShapeGeometry)
DoFoldToShape(IGeometryHost, PointD, PointD)

Calculates the point along the vector which crosses the outline of the geometry.

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.

DoHitTest(IGeometryHost, PointD, DiagramHitTestInfo)

Returns a value indicating whether the given point is within the boundary of the geometry. The hit test results are also returned.

(Inherited from ShapeGeometry)
DoHitTestSelection(IGeometryHost, PointD, DiagramHitTestInfo)

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.

DoPaint(DiagramPaintEventArgs, IGeometryHost)

Draws the geometry and its shadow if it has one.

(Inherited from ShapeGeometry)
DoPaintEmphasis(DiagramPaintEventArgs, IGeometryHost)

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

DoPaintGeometry(DiagramPaintEventArgs, IGeometryHost)

Draws the basic geometry.

DoPaintResizeFeedback(DiagramPaintEventArgs, IGeometryHost, RectangleD)

Draws the resize feedback for the geometry.

DoPaintSelection(DiagramPaintEventArgs, IGeometryHost, Boolean, Boolean, Boolean)

Draws a selection typically surrounding the geometry.

DoPaintShadow(DiagramPaintEventArgs, IGeometryHost)

Draws the geometry's shadow.

(Inherited from ShapeGeometry)
DrawDecorator(DiagramPaintEventArgs, IGeometryHost, Single, PointD, LinkDecorator, SizeD)

Draws the LinkShape's decorator.

GetBackgroundBrushId(IGeometryHost)

Returns the background brush id to use for drawing the geometry's background.

(Inherited from ShapeGeometry)
GetExtraPenWidth(IGeometryHost)

Gets the portion of the pen width which draws outside the borders of the geometry; i.e., outside the graphics path used to draw the geometry.

(Inherited from ShapeGeometry)
GetOutlinePenId(IGeometryHost)

Returns the outline pen id to use for drawing the geometry's outline.

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

GetPath(RectangleD)

Gets the GraphicsPath of the geometry in world units relative to the top-left of the IGeometryHost's parent. This is a singleton on the geometry. Do not dispose - this will crash! Use immediately. Use GetPathCopy if another path is needed!

(Inherited from ShapeGeometry)
GetPathCopy(IGeometryHost)

Gets an unique copy of the path. Caller is resposible for disposal.

(Inherited from ShapeGeometry)
GetPerimeter(IGeometryHost)

Gets the graphics path which encompasses the geometry outline, including the thickness of the outline pen that lies outside of the graphics path used to draw the geometry. This is a singleton on the geometry class. Do not dispose. Use immediately. Use GetPathCopy if another path is needed!

(Inherited from ShapeGeometry)
GetPerimeterBoundingBox(IGeometryHost)

Gets the rectangular bounds which encompasses the geometry outline, including the thickness of the outline pen that lies outside of the graphics path used to draw the geometry.

(Inherited from ShapeGeometry)
GetSelectionLineOffset(DiagramClientView)

Returns the distance in world units between the visible selection line and the outside of the shape.

(Inherited from ShapeGeometry)
GetSelectionLineWidth(DiagramClientView)

Returns the width of the visible selection line in world units.

(Inherited from ShapeGeometry)
HasFilledBackground(IGeometryHost)

Returns a value indicating whether the background of the geometry will be filled.

(Inherited from ShapeGeometry)
HasOutline(IGeometryHost)

Returns a value indicating whether the outline of the geometry will be drawn.

(Inherited from ShapeGeometry)
HasShadow(IGeometryHost)

Returns a value indicating whether the geometry has a shadow.

(Inherited from ShapeGeometry)

Applies to