Esempio n. 1
0
        protected override void DrawCore(IGraphicContext graphicContext)
        {
            float yLine = m_TopRow.TopGap.Bottom - BottomOffset + 4;
            float yText = yLine + 2;

            float xStart = Parent.Location.X;
            float xEnd   = Parent.Location.X + Parent.Size.Width;

            if (!m_IsFirst)
            {
                graphicContext.DrawDashedLine(new Point(xStart, yLine), new Point(xEnd, yLine), Style.Fragment.OperandSeparatorWidth, Style.Fragment.OperandSeparatorColor, Style.Common.LineStyle);
            }

            Point textLocation = new Point(xStart + 5, yText);

            graphicContext.FillRectangle(textLocation, Size, Color.SemiTransparent);
            graphicContext.DrawText(
                textLocation, Size,
                m_GuardExpressionText,
                Style.Common.Font, Style.GuardExpression.FontSize, Style.GuardExpression.TextColor,
                HorizontalAlignment.Left, VerticalAlignment.Middle);

            base.DrawCore(graphicContext);
        }