public void SetSquareRootPosition(Position containerOrigin, SquareRoot squareRoot)
        {
            squareRoot.Position = containerOrigin;

            // containerOrigin.X += squareRoot.FontStyle.FontHeight;
            //  containerOrigin.Y += squareRoot.FontStyle.FontHeight * 0.2;

            SetElementPosition(containerOrigin, squareRoot.InnerExpression);

            // containerOrigin.Y -= squareRoot.FontStyle.FontHeight * 0.2;
        }
        protected void ExportSquareRoot(Graphics graphics, SquareRoot squareRoot)
        {
            ExportElement(graphics, squareRoot.InnerExpression);

            var p = Paths.GetSquareRootPath(squareRoot.InnerExpression.OuterWidth, squareRoot.InnerExpression.OuterHeight);

            graphics.FillPath(Brushes.Black, p);

            if (squareRoot.DrawConstructionLines)
            {
                DrawConstructionLines(graphics, squareRoot.Position, squareRoot.SizeIncludingOuterMargin);
            }
        }
        public void SetSquareRootSize(SquareRoot squareRoot)
        {
            SetElementSize(squareRoot.InnerExpression);

            squareRoot.SizeOfContent.Width  = squareRoot.InnerExpression.OuterWidth;
            squareRoot.SizeOfContent.Height = squareRoot.InnerExpression.OuterHeight;

            SetSizesOfElement(squareRoot);

            var centreAlignmentPoint = new Position();

            centreAlignmentPoint.X = squareRoot.OuterWidth / 2;
            centreAlignmentPoint.Y = squareRoot.OuterHeight / 2;

            squareRoot.CentreAlignmentPoint = centreAlignmentPoint;
        }