Partager via


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Déclaration
Public Overridable ReadOnly Property ShapeGeometry As ShapeGeometry
    Get
public virtual ShapeGeometry ShapeGeometry { get; }
public:
virtual property ShapeGeometry^ ShapeGeometry {
    ShapeGeometry^ get ();
}
abstract ShapeGeometry : ShapeGeometry
override ShapeGeometry : ShapeGeometry
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