Esempio n. 1
0
 public override bool Equals(object obj)
 {
     if (obj is ElementPosition)
     {
         ElementPosition elementPosition = (ElementPosition)obj;
         if (this.auto && this.auto == elementPosition.auto)
         {
             return(true);
         }
         if (this.x == elementPosition.x && this.y == elementPosition.y && this.width == elementPosition.width && this.height == elementPosition.height)
         {
             return(true);
         }
     }
     return(base.Equals(obj));
 }
        private float GetEstimatedSceneDepth()
        {
            ChartArea chartArea = (ChartArea)this;

            this.seriesClusters = null;
            ElementPosition innerPlotPosition = chartArea.InnerPlotPosition;

            chartArea.AxisX.PlotAreaPosition  = chartArea.Position;
            chartArea.AxisY.PlotAreaPosition  = chartArea.Position;
            chartArea.AxisX2.PlotAreaPosition = chartArea.Position;
            chartArea.AxisY2.PlotAreaPosition = chartArea.Position;
            float area3DSceneDepth = this.GetArea3DSceneDepth();

            chartArea.AxisX.PlotAreaPosition  = innerPlotPosition;
            chartArea.AxisY.PlotAreaPosition  = innerPlotPosition;
            chartArea.AxisX2.PlotAreaPosition = innerPlotPosition;
            chartArea.AxisY2.PlotAreaPosition = innerPlotPosition;
            return(area3DSceneDepth);
        }
Esempio n. 3
0
 public ChartPaintEventArgs(ChartGraphics chartGraph, CommonElements common, ElementPosition position)
 {
     this.chartGraph = chartGraph;
     this.common     = common;
     this.position   = position;
 }