Partager via


ShapeGeometry Class

Definition

The base class for all geometries used in the diagram.

public ref class ShapeGeometry abstract : IDisposable
public abstract class ShapeGeometry : IDisposable
type ShapeGeometry = class
    interface IDisposable
Public MustInherit Class ShapeGeometry
Implements IDisposable
Inheritance
ShapeGeometry
Derived
Implements

Constructors

ShapeGeometry()

Properties

MaximumShadowOffset

Gets the maximum shadow offset allowed in world units.
All shadow offsets must be less than this amount.

ShadowOffset

Gets the shadow offset in world units.

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!

Methods

CreateDiagramItem(IGeometryHost)

Creates a DiagramItem object given an IGeometryHost object.

Dispose()
Dispose(Boolean)
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.

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.

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.

GetBackgroundBrushId(IGeometryHost)

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

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.

GetHitTestTolerance(DiagramHitTestInfo)
GetOutlinePenId(IGeometryHost)

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

GetPath(IGeometryHost)

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

GetPathCopy(IGeometryHost)

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

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!

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.

GetSelectionBorderThickness(DiagramClientView)

Returns the thickness of the selection border region in world units for a given view.

GetSelectionBorderThickness(Graphics)

Returns the thickness of the selection border region in world units for a given Graphics object. The Graphic's PageScale is used as the assumed zoom factor.

GetSelectionLineOffset(DiagramClientView)

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

GetSelectionLineWidth(DiagramClientView)

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

HasFilledBackground(IGeometryHost)

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

HasOutline(IGeometryHost)

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

HasShadow(IGeometryHost)

Returns a value indicating whether the geometry has a shadow.

Rotate(PointD, Double, PointD[])

Summary description for ShapeGeometry.Rotate() Rotate an arry of points through an angle about a center point

SnapToCircle(PointD, Double, PointD, PointD)

Summary description for ShapeGeometry.SnapToCircle() Snap a potential point from the bounding box to the perimeter of a circle along a vector

Translate(PointD, PointD[])

Summary description for ShapeGeometry.Translate() Translate an array of points by a delta

Applies to