ShapeElement::Invalidate Method (RectangleD)

 

Makes sure that the shape and its old location will be repainted at the end of the transaction.

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

public:
void Invalidate(
	RectangleD absoluteShapeBounds
)

Parameters

absoluteShapeBounds
Type: Microsoft.VisualStudio.Modeling.Diagrams::RectangleD

The previous absolute bounds for the shape, relative to the top-left point on the diagram.

If you have changed the position or size of the ShapeElement, you can use this method to makes sure that both the old location will be repainted. However, many operations call Invalidate() automatically.

Return to top
Show: