private System.Drawing.Rectangle GetObjectInvalidationArea() { System.Drawing.Rectangle result = GripsProvider.GetInvalidationRectangle(); result = System.Drawing.Rectangle.Union(result, _objectHost.HostViewer.WorkspaceToControl(_obj.GetTransformedVObjectBounds(), Aurigma.GraphicsMill.Unit.Point)); result.Inflate(VObject.InvalidationMargin); return(result); }
protected void InvalidateDesigner() { System.Drawing.Rectangle invalidationRect = GripsProvider.GetInvalidationRectangle(); invalidationRect.Inflate(VObject.InvalidationMargin); _objectHost.HostViewer.InvalidateViewer(new MultiLayerViewerInvalidationTarget(invalidationRect)); }