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.Booleantrue 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.