示例#1
0
        private void RenderDropDown(GH_Canvas canvas, System.Drawing.Graphics graphics, System.Drawing.Color color)
        {
            GH_ValueListItem item = this.Owner.FirstSelectedItem;

            if (item == null)
            {
                return;
            }
            graphics.DrawString(item.Name, GH_FontServer.Standard, System.Drawing.Brushes.Black, item.BoxName, GH_TextRenderingConstants.CenterCenter);
            Mandrill_PdfOrientationAttributes.RenderDownArrow(canvas, graphics, item.BoxRight, color);
        }
示例#2
0
        private static void RenderDownArrow(GH_Canvas canvas, System.Drawing.Graphics graphics, System.Drawing.RectangleF bounds, System.Drawing.Color color)
        {
            int x = System.Convert.ToInt32(bounds.X + 0.5f * bounds.Width);
            int y = System.Convert.ToInt32(bounds.Y + 0.5f * bounds.Height);

            System.Drawing.PointF[] array         = new System.Drawing.PointF[3];
            System.Drawing.PointF[] arg_54_0_cp_0 = array;
            int arg_54_0_cp_1 = 0;

            System.Drawing.PointF pointF = new System.Drawing.PointF((float)x, (float)(y + 6));
            arg_54_0_cp_0[arg_54_0_cp_1] = pointF;
            System.Drawing.PointF[] arg_72_0_cp_0 = array;
            int arg_72_0_cp_1 = 1;

            System.Drawing.PointF pointF2 = new System.Drawing.PointF((float)(x + 6), (float)(y - 6));
            arg_72_0_cp_0[arg_72_0_cp_1] = pointF2;
            System.Drawing.PointF[] arg_90_0_cp_0 = array;
            int arg_90_0_cp_1 = 2;

            System.Drawing.PointF pointF3 = new System.Drawing.PointF((float)(x - 6), (float)(y - 6));
            arg_90_0_cp_0[arg_90_0_cp_1] = pointF3;
            System.Drawing.PointF[] corners = array;
            Mandrill_PdfOrientationAttributes.RenderShape(canvas, graphics, corners, color);
        }