public void CloseFigureWithQuadraticBezier(Point q, int figureIndex) { PathFigureEditor pathFigureEditor = this.CreatePathFigureEditor(figureIndex); if (!PathFigureUtilities.IsOpen(pathFigureEditor.PathFigure)) { throw new InvalidOperationException(ExceptionStringTable.FigureMustBeOpenToAppendAQuadraticCurve); } pathFigureEditor.QuadraticCurveToAndCloseFigure(q); }