다음을 통해 공유


NodeShapeGeometry Class

Definition

Base geometry for NodeShapes.

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

Remarks

The object that implements IGeometryHost should also implement INodeGeometryData.

Constructors

NodeShapeGeometry()

Initializes a new instance of the NodeShapeGeometry 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

CanResize(IGeometryHost)

Gets a value indicating whether the user can resize this geometry.

Contains(IGeometryHost, PointD, DiagramHitTestInfo)

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.

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)
DrawResizeableGrabHandles(Graphics, StyleSet, RectangleF, SizeF, Boolean, Boolean, Boolean, Boolean, Boolean)

Draws resizeable grab handles on a shape. The grab handles also indicate focus.

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)
GetFocusIndicatorInsideMargin(IGeometryHost)

Gets the distance in world units from the bounding box of the shape to the focus indicator drawn within the shape's bounding box.

GetOutlinePenId(IGeometryHost)

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

(Inherited from ShapeGeometry)
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!

(Inherited from ShapeGeometry)
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)
IsGrabHandleSupported(IGeometryHost, GrabHandle)

Returns true if the grab handle is supported.

Applies to