Delen via


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

Syntax

'Declaration
Public Overridable Sub Invalidate ( _
    refreshBitmap As Boolean _
)
public virtual void Invalidate(
    bool refreshBitmap
)
public:
virtual void Invalidate(
    bool refreshBitmap
)
abstract Invalidate : 
        refreshBitmap:bool -> unit  
override Invalidate : 
        refreshBitmap:bool -> unit
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, many operations call this automatically, so that you might not need to call this explicitly.

.NET Framework Security

See Also

Reference

ShapeElement Class

Invalidate Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace