ShapeGeometry Members

Include Protected Members
Include Inherited Members

Represents the geometry for a shape or connector.

The ShapeGeometry type exposes the following members.

Constructors

 

Name

Description

Protected method

ShapeGeometry

Initializes a new instance of the ShapeGeometry class.

Top

Methods

 

Name

Description

Protected methodStatic member

CreateDiagramItem

Creates a shape geometry host.

Public method

Dispose

Overloaded.

Public method

DoFoldToShape

Calculates the point where a connector crosses the outline of the shape geometry. It is used to compute where connectors should terminate.

Public method

DoHitTest

Overloaded. Determines whether a point is inside a shape.

Public method

DoHitTestSelection

Determines whether a point is inside the selection highlight of a shape.

Public method

DoPaint

Draws the shape geometry, and its shadow if it has one.

Public method

DoPaintEmphasis

Draws emphasis on the shape.

Protected method

DoPaintGeometry

Paints the boundary and background of the shape.

Public method

DoPaintResizeFeedback

Draws the resize feedback for the shape geometry. Called repeatedly as the user moves the mouse to resize the shape.

Public method

DoPaintSelection

Draws the selection highlighting, which typically surrounds the shape boundary.

Protected method

DoPaintShadow

Draws the shadow for the shape.

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.

Public method

GetExtraPenWidth

Gets the width of the outline pen that is outside the boundary of the shape.

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Protected methodStatic member

GetHitTestTolerance

Gets the tolerance around the shape geometry to use when a hit test is performed.

Public method

GetOutlinePenId

Gets the ID that is assigned to the brush that paints the outline of the shape geometry.

Public method

GetPath

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

Public method

GetPathCopy

Gets a copy of the path around the shape geometry. Dispose the path when you have finished with it.

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.

Protected method

GetPerimeterBoundingBox

Gets the bounding box around the perimeter of the shape, including the thickness of the pen that draws the boundary.

Public methodStatic member

GetSelectionBorderThickness

Overloaded. Gets the width of the border for a selection in the specified view.

Public method

GetSelectionLineOffset

Gets the distance between the selection and the outside of the shape geometry.

Public method

GetSelectionLineWidth

Gets the width of the line that indicates that a shape is selected.

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.

Protected method

HasOutline

True if this type of geometry has a visible border.

Protected method

HasShadow

True if this type of geometry has a shadow.

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Public methodStatic member

Rotate

Rotate an array of points around a specified center.

Public methodStatic member

SnapToCircle

Snaps a potential point from the bounding box around the shape geometry to the perimeter of the circle.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Public methodStatic member

Translate

Moves an array of points by a specified vector.

Top

Properties

 

Name

Description

Public propertyStatic member

MaximumShadowOffset

Gets the maximum offset allowed between a shape outline and the outer edge of its shadow.

Public property

ShadowOffset

Gets the offset between the shape outline and the outer edge of the shadow.

Protected property

UninitializedPath

Gets the path around the shape geometry.

Top

See Also

Reference

ShapeGeometry Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace