示例#1
0
 public DatAdminDiagramStyle()
 {
     ColumnRegular          = new Font(FontFamily.GenericSansSerif, 9);
     ColumnBold             = new Font(ColumnRegular, FontStyle.Bold);
     HeaderFont             = new Font(FontFamily.GenericSansSerif, 12, FontStyle.Bold);
     Entity.IsDefinedHeader = true;
     Entity.HeaderBg        = GradientDef.Gradient(Color.PaleTurquoise, Color.White);
     Entity.BodyBg          = GradientDef.Solid(Color.White);
 }
示例#2
0
        public VisioDiagramStyle()
        {
            ColumnRegular = new Font(FontFamily.GenericSansSerif, 9);
            ColumnBold    = new Font(ColumnRegular, FontStyle.Bold);
            //ColumnBoldUnderline = new Font(ColumnRegular, FontStyle.Bold | FontStyle.Underline);
            HeaderFont             = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Bold);
            Entity.IsDefinedHeader = true;
            Entity.HeaderBg        = GradientDef.Solid(Color.LightGray);
            Entity.BodyBg          = GradientDef.Solid(Color.White);

            var rs = Reference;

            rs.LineWay = LineWayType.Rectangular;
            var ar = rs.Arrow;

            ar.Width           = 18;
            ar.Length          = 15;
            ar.Delta           = 0;
            ar.DistanceFromEnd = 0;
        }