Exemple #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);
 }
Exemple #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;
        }
Exemple #3
0
 public void SetupGradient(Color c1, Color c2, float angle)
 {
     Gradient = new GradientDef {
         BgColor = c1, GradientColor = c2, Angle = angle, IsGradient = true
     };
 }