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