次の方法で共有


ShapeElement.Invalidate Method

Definition

Overloads

Invalidate()

Invalidates the ShapeElement.

Invalidate(RectangleD)

Invalidates the ShapeElement with the specified rectangle used as its absolute bounds.

Invalidate(Boolean)

Invalidates the ShapeElement.

Invalidate()

Invalidates the ShapeElement.

public:
 virtual void Invalidate();
public virtual void Invalidate ();
abstract member Invalidate : unit -> unit
override this.Invalidate : unit -> unit
Public Overridable Sub Invalidate ()

Remarks

This method will invalidate the ShapeElement including (1) the outline pen that exceeds the bounds of the ShapeElement and (2) the the shadow of the ShapeElement.

Applies to

Invalidate(RectangleD)

Invalidates the ShapeElement with the specified rectangle used as its absolute bounds.

public:
 void Invalidate(Microsoft::VisualStudio::Modeling::Diagrams::RectangleD absoluteShapeBounds);
public void Invalidate (Microsoft.VisualStudio.Modeling.Diagrams.RectangleD absoluteShapeBounds);
member this.Invalidate : Microsoft.VisualStudio.Modeling.Diagrams.RectangleD -> unit
Public Sub Invalidate (absoluteShapeBounds As RectangleD)

Parameters

absoluteShapeBounds
RectangleD

The ShapeElement bounds relative to the diagram's top left corner and in world units.

Remarks

This method will invalidate the ShapeElement including (1) the outline pen that exceeds the bounds of the ShapeElement and (2) the the shadow of the ShapeElement.

The bounds passed in will be used as the ShapeElement bounds. This method is particularly useful for invalidating this ShapeElement at a previous location and size. The bounds passed in is relative to the diagram's top left corner and is in world units.

Applies to

Invalidate(Boolean)

Invalidates the ShapeElement.

public:
 virtual void Invalidate(bool refreshBitmap);
public virtual void Invalidate (bool refreshBitmap);
abstract member Invalidate : bool -> unit
override this.Invalidate : bool -> unit
Public Overridable Sub Invalidate (refreshBitmap As Boolean)

Parameters

refreshBitmap
Boolean

Whether backing bitmap also needs to be refreshed as part of this invalidate.

Remarks

This method will invalidate the ShapeElement including (1) the outline pen that exceeds the bounds of the ShapeElement and (2) the the shadow of the ShapeElement.

Applies to