示例#1
0
 private Size GetRootIndexSize()
 {
     if (null == RootIndex)
     {
         return(new Size(FontManager.Instance.FontSize / 2, FontManager.Instance.FontSize));
     }
     else
     {
         return(RootIndex.GetSize());
     }
 }
示例#2
0
        public double GetVerticalAlignmentCenter()
        {
            Size rootIndexSize;

            if (null == RootIndex)
            {
                rootIndexSize = new Size(12, FontManager.Instance.FontSize);
            }
            else
            {
                rootIndexSize = RootIndex.GetSize();
            }


            if (null == Radicand)
            {
                return(FontManager.Instance.FontSize / 2 + rootIndexSize.Height / 3);
            }
            else
            {
                double verticalCenter = Radicand.GetVerticalAlignmentCenter();
                return(verticalCenter + rootIndexSize.Height / 3);
            }
        }