public override bool Equals(object obj) { if (obj is ElementPosition) { ElementPosition elementPosition = (ElementPosition)obj; if (auto && auto == elementPosition.auto) { return(true); } if (x == elementPosition.x && y == elementPosition.y && width == elementPosition.width && height == elementPosition.height) { return(true); } } return(base.Equals(obj)); }
private float GetEstimatedSceneDepth() { ChartArea chartArea = (ChartArea)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 = GetArea3DSceneDepth(); chartArea.AxisX.PlotAreaPosition = innerPlotPosition; chartArea.AxisY.PlotAreaPosition = innerPlotPosition; chartArea.AxisX2.PlotAreaPosition = innerPlotPosition; chartArea.AxisY2.PlotAreaPosition = innerPlotPosition; return(area3DSceneDepth); }
public ChartPaintEventArgs(ChartGraphics chartGraph, CommonElements common, ElementPosition position) { this.chartGraph = chartGraph; this.common = common; this.position = position; }