ShapeElement.Invalidate Method (Boolean)

Makes sure that the shape will be repainted at the end of the transaction. Call this if you have changed properties of the shape.

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

Syntax

'Declaration
Public Overridable Sub Invalidate ( _
    refreshBitmap As Boolean _
)
'Usage
Dim instance As ShapeElement 
Dim refreshBitmap As Boolean

instance.Invalidate(refreshBitmap)
public virtual void Invalidate(
    bool refreshBitmap
)
public:
virtual void Invalidate(
    bool refreshBitmap
)
public function Invalidate(
    refreshBitmap : boolean
)

Parameters

  • refreshBitmap
    Type: System.Boolean

    true to refresh the shape's bitmap when the shape is invalidated; otherwise, false.

Remarks

This method allows you to redraw the outline and background of the shape. However, it is not usually necessary because many operations call Invalidate automatically.

.NET Framework Security

See Also

Reference

ShapeElement Class

ShapeElement Members

Invalidate Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace