共用方式為


ShapeElement.ShapeGeometry Property

Gets the geometry for the shape, such as Rectangle, RoundedRectangle, or Ellipse, which defines operations associated with the outline of the shape.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property ShapeGeometry As ShapeGeometry
public virtual ShapeGeometry ShapeGeometry { get; }
public:
virtual property ShapeGeometry^ ShapeGeometry {
    ShapeGeometry^ get ();
}
abstract ShapeGeometry : ShapeGeometry with get 
override ShapeGeometry : ShapeGeometry with get
function get ShapeGeometry () : ShapeGeometry

Property Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeGeometry

Remarks

To override operations defined in the shape geometry, derive your own geometry class from one of the subclasses of ShapeGeometry. Then override this property to return an instance of your geometry class. Alternatively, override DoFoldToShape.

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace