public FlowChartNodeStyle()
 {
     NodeStyle = new ShapeNodeStyle
     {
         Brush = new LinearGradientBrush(new PointF(0, 0), new PointF(1, 1), Color.FromArgb(255, 221, 136), Color.FromArgb(255, 153, 0)),
         Pen   = new Pen(new SolidBrush(Color.FromArgb(255, 153, 0)))
     };
     PortStyle = new CirclePortStyle();
 }
コード例 #2
0
 public FlowChartNodeStyle()
 {
     NodeStyle = new ShapeNodeStyle()
     {
         Brush = new LinearGradientBrush
         {
             StartPoint    = new PointD(0, 0),
             EndPoint      = new PointD(1, 1),
             GradientStops = new GradientStopCollection
             {
                 new GradientStop(Color.FromRgb(255, 221, 136), 0.3),
                 new GradientStop(Color.FromRgb(255, 153, 0), 0.6)
             }
         },
         Pen = new Pen(new SolidColorBrush(Color.FromRgb(255, 153, 0)), 1),
     };
     PortStyle = new CirclePortStyle();
 }