packages/Windows API Code Pack 1.1/source/Samples/DirectX/CS/Direct2D/D2DShapes/D2DShapesControl.cs
/// <summary>
/// Clears all the shapes and invalidates the control and bitmap cache if one exists.
/// </summary>
Clears all the shapes and invalidates the control and bitmap cache if one exists.
Clears all the shapes and invalidates the control and bitmap cache if one exists .
public void ClearShapes()
        {
            lock (renderSyncObject)
            {
                drawingShapes.Clear();
                stats.Clear();
                Stats = "";
                if (statsChanged != null)
                    statsChanged(this, EventArgs.Empty);
                RefreshAll();
            }
        }
public void ClearShapes ( ) { lock ( renderSyncObject ) { drawingShapes . Clear ( ) ; stats . Clear ( ) ; Stats = " " ; if ( statsChanged != null ) statsChanged ( this , EventArgs . Empty ) ; RefreshAll ( ) ; } }
Clears all the shapes and invalidates the control and bitmap cache if one exists.
Clears all the shapes and invalidates the control and bitmap cache if one exists .