2 writes to Axis
System.Windows.Forms.DataVisualization (2)
Common\General\Axis.cs (2)
694majorGrid.Axis = this; 763majorTickMark.Axis = this;
139 references to Axis
System.Windows.Forms.DataVisualization (139)
Common\General\GridTickMarks.cs (131)
162if (this.Axis.majorGrid.GetIntervalType() == DateTimeIntervalType.Auto) 164this.interval = this.Axis.majorGrid.GetInterval() / Grid.NumberOfIntervals; 169DateTimeIntervalType localIntervalType = this.Axis.majorGrid.GetIntervalType(); 170this.interval = Axis.CalcInterval( 171this.Axis.ViewMinimum, 172this.Axis.ViewMinimum + (this.Axis.ViewMaximum - this.Axis.ViewMinimum) / Grid.NumberOfDateTimeIntervals, 177this.intervalOffsetType = this.Axis.majorGrid.GetIntervalOffsetType(); 178this.intervalOffset = this.Axis.majorGrid.GetIntervalOffset(); 188if (Axis.IsCustomTickMarks()) 196if (Axis.axisType == AxisName.X || Axis.axisType == AxisName.X2) 198List<string> seriesArray = Axis.ChartArea.GetXAxesSeries((Axis.axisType == AxisName.X) ? AxisType.Primary : AxisType.Secondary, Axis.SubAxisName); 201axisSeries = Axis.Common.DataManager.Series[seriesArray[0]]; 210double current = Axis.ViewMinimum; 221if (!Axis.ChartArea.chartAreaIsCurcular || 222Axis.axisType == AxisName.Y || 223Axis.axisType == AxisName.Y2) 236if ((Axis.ViewMaximum - Axis.ViewMinimum) / ChartHelper.GetIntervalSize(current, this.GetInterval(), this.GetIntervalType(), axisSeries, 0, DateTimeIntervalType.Number, true) > ChartHelper.MaxNumOfGridlines) 243if (Axis.ViewMaximum <= Axis.ViewMinimum) 263if (Axis.AxisPosition == AxisPosition.Left) 267if (Axis.GetIsMarksNextToAxis()) 268axisPosition = (float)Axis.GetAxisPosition(); 270axisPosition = Axis.PlotAreaPosition.X; 290else if (Axis.AxisPosition == AxisPosition.Right) 294if (Axis.GetIsMarksNextToAxis()) 295axisPosition = (float)Axis.GetAxisPosition(); 297axisPosition = Axis.PlotAreaPosition.Right; 317else if (Axis.AxisPosition == AxisPosition.Top) 321if (Axis.GetIsMarksNextToAxis()) 322axisPosition = (float)Axis.GetAxisPosition(); 324axisPosition = Axis.PlotAreaPosition.Y; 344else if (Axis.AxisPosition == AxisPosition.Bottom) 348if (Axis.GetIsMarksNextToAxis()) 349axisPosition = (float)Axis.GetAxisPosition(); 351axisPosition = Axis.PlotAreaPosition.Bottom; 376while (current <= Axis.ViewMaximum) 382if (this.majorGridTick || this.Axis.IsLogarithmic == false) 408logInterval = Math.Log(1 + this.interval * logStep, Axis.logarithmBase); 425if (current == Axis.ViewMaximum && axisSeries != null) 445if (this.Axis != null && this.Axis.ChartArea != null) 447if (this.Axis.ChartArea.chartAreaIsCurcular && 448((this.Axis.IsReversed == false && current == Axis.ViewMinimum) || 449(this.Axis.IsReversed == true && current == Axis.ViewMaximum))) 457if (!this.majorGridTick && this.Axis.IsLogarithmic) 461if (current > Axis.ViewMaximum) 467if ((decimal)current >= (decimal)Axis.ViewMinimum) 470if (Axis.AxisPosition == AxisPosition.Left) 472first.Y = (float)Axis.GetLinearPosition(current); 477else if (Axis.AxisPosition == AxisPosition.Right) 479first.Y = (float)Axis.GetLinearPosition(current); 484else if (Axis.AxisPosition == AxisPosition.Top) 486first.X = (float)Axis.GetLinearPosition(current); 491else if (Axis.AxisPosition == AxisPosition.Bottom) 493first.X = (float)Axis.GetLinearPosition(current); 497if (Axis.Common.ProcessModeRegions) 499if (this.Axis.ChartArea.chartAreaIsCurcular) 506this.Axis.Common.HotRegionsList.AddHotRegion( 513else if (!this.Axis.ChartArea.Area3DStyle.Enable3D || this.Axis.ChartArea.chartAreaIsCurcular) 517Axis.Common.HotRegionsList.AddHotRegion(rect, this, ChartElementType.TickMarks, true); 521if (!Axis.Common.ProcessModePaint) //if ProcessModePaint is true it will be called later 527if (Axis.Common.ProcessModePaint) 530if (!this.Axis.ChartArea.Area3DStyle.Enable3D || this.Axis.ChartArea.chartAreaIsCurcular) 542if (this.majorGridTick || this.Axis.IsLogarithmic == false) 568double viewMinimum = Axis.ViewMinimum; 603if (Axis.AxisPosition == AxisPosition.Left) 607if (Axis.GetIsMarksNextToAxis()) 608axisPosition = (float)Axis.GetAxisPosition(); 610axisPosition = Axis.PlotAreaPosition.X; 630else if (Axis.AxisPosition == AxisPosition.Right) 634if (Axis.GetIsMarksNextToAxis()) 635axisPosition = (float)Axis.GetAxisPosition(); 637axisPosition = Axis.PlotAreaPosition.Right; 657else if (Axis.AxisPosition == AxisPosition.Top) 661if (Axis.GetIsMarksNextToAxis()) 662axisPosition = (float)Axis.GetAxisPosition(); 664axisPosition = Axis.PlotAreaPosition.Y; 684else if (Axis.AxisPosition == AxisPosition.Bottom) 688if (Axis.GetIsMarksNextToAxis()) 689axisPosition = (float)Axis.GetAxisPosition(); 691axisPosition = Axis.PlotAreaPosition.Bottom; 711foreach (CustomLabel label in Axis.CustomLabels) 716if (position >= Axis.ViewMinimum && position <= Axis.ViewMaximum) 719if (Axis.AxisPosition == AxisPosition.Left) 721first.Y = (float)Axis.GetLinearPosition(position); 726else if (Axis.AxisPosition == AxisPosition.Right) 728first.Y = (float)Axis.GetLinearPosition(position); 733else if (Axis.AxisPosition == AxisPosition.Top) 735first.X = (float)Axis.GetLinearPosition(position); 740else if (Axis.AxisPosition == AxisPosition.Bottom) 742first.X = (float)Axis.GetLinearPosition(position); 746if (Axis.Common.ProcessModeRegions) 748if (!this.Axis.ChartArea.Area3DStyle.Enable3D || this.Axis.ChartArea.chartAreaIsCurcular) 752Axis.Common.HotRegionsList.AddHotRegion(rect, this, ChartElementType.TickMarks, true); 760if (Axis.Common.ProcessModePaint) 763if (!this.Axis.ChartArea.Area3DStyle.Enable3D || this.Axis.ChartArea.chartAreaIsCurcular) 792 ChartArea area = this.Axis.ChartArea; 798 float wallZPosition = Axis.GetMarksZPosition(out axisOnEdge); 807this.Axis.MajorTickMark.TickMarkStyle == TickMarkStyle.AcrossAxis || 808this.Axis.MajorTickMark.TickMarkStyle == TickMarkStyle.InsideArea || 809this.Axis.MinorTickMark.TickMarkStyle == TickMarkStyle.AcrossAxis || 810this.Axis.MinorTickMark.TickMarkStyle == TickMarkStyle.InsideArea) 825if (Axis.AxisPosition == AxisPosition.Bottom && 826(!Axis.GetIsMarksNextToAxis() || axisOnEdge) && 831else if (Axis.AxisPosition == AxisPosition.Left && 832(!Axis.GetIsMarksNextToAxis() || axisOnEdge) && 837else if (Axis.AxisPosition == AxisPosition.Right && 838(!Axis.GetIsMarksNextToAxis() || axisOnEdge) && 843else if (Axis.AxisPosition == AxisPosition.Top && 844(!Axis.GetIsMarksNextToAxis() || axisOnEdge)) 855if (Axis.AxisPosition == AxisPosition.Top) 858float axisPosition = Axis.PlotAreaPosition.Y; 896if (Axis.AxisPosition == AxisPosition.Left && !area.IsSideSceneWallOnLeft()) 899float axisPosition = Axis.PlotAreaPosition.X; 937else if (Axis.AxisPosition == AxisPosition.Right && area.IsSideSceneWallOnLeft()) 940float axisPosition = Axis.PlotAreaPosition.Right; 985Axis.Common, 1001Axis.Common,
Common\General\Selection.cs (8)
2359result.Axis = gridLines.Axis; 2360if (gridLines.Axis != null) 2362result.ChartArea = gridLines.Axis.ChartArea; 2389result.Axis = tickMarks.Axis; 2390if (tickMarks.Axis != null) 2392result.ChartArea = tickMarks.Axis.ChartArea; 2759if (!IsArea3D(grid.Axis.ChartArea)) 2761if (IsChartAreaCircular(grid.Axis.ChartArea))