145 references to Position
System.Web.DataVisualization (145)
Common\ChartTypes\FunnelChart.cs (2)
1611
RectangleF plotAreaPositionAbs = this.Graph.GetAbsoluteRectangle( this.Area.
Position
.ToRectangleF() );
2176
Area.
Position
.ToRectangleF() : Area.PlotAreaPosition.ToRectangleF();
Common\ChartTypes\PieChart.cs (37)
544
graph.SetClip(area.
Position
.ToRectangleF());
568
((ChartGraphics)graph).SetClip( area.
Position
.ToRectangleF() );
780
rectangle = new RectangleF( area.
Position
.ToRectangleF().X, area.
Position
.ToRectangleF().Y, area.
Position
.ToRectangleF().Width, area.
Position
.ToRectangleF().Height );
816
rect.X = (rect.X - area.
Position
.X) / area.
Position
.Width * 100f;
817
rect.Y = (rect.Y - area.
Position
.Y) / area.
Position
.Height * 100f;
818
rect.Width = rect.Width / area.
Position
.Width * 100f;
819
rect.Height = rect.Height / area.
Position
.Height * 100f;
1049
this._labelsOverlap = PrepareLabels( area.
Position
.ToRectangleF() );
1487
labelRect.X = area.
Position
.X;
1488
labelRect.Y = area.
Position
.Y;
1489
labelRect.Width = labelPosition.X - area.
Position
.X;
1490
labelRect.Height = area.
Position
.Height;
1495
labelRect.Y = area.
Position
.Y;
1496
labelRect.Width = area.
Position
.Right - labelPosition.X;
1497
labelRect.Height = area.
Position
.Height;
1754
if( (xOverlap - size.Width) < area.
Position
.X )
1762
if( (xOverlap + size.Width) > area.
Position
.Right )
2489
RectangleF plotingRectangle = new RectangleF( area.
Position
.ToRectangleF().X + 1, area.
Position
.ToRectangleF().Y + 1, area.
Position
.ToRectangleF().Width-2, area.
Position
.ToRectangleF().Height-2 );
2606
rect.X = (rect.X - area.
Position
.X) / area.
Position
.Width * 100f;
2607
rect.Y = (rect.Y - area.
Position
.Y) / area.
Position
.Height * 100f;
2608
rect.Width = rect.Width / area.
Position
.Width * 100f;
2609
rect.Height = rect.Height / area.
Position
.Height * 100f;
3325
brush = graph.GetGradientBrush(graph.GetAbsoluteRectangle(area.
Position
.ToRectangleF()), Color.FromArgb(brushWithoutLight.Color.A, 0, 0, 0), brushWithoutLight.Color, GradientStyle.VerticalCenter);
3837
brush = graph.GetGradientBrush(graph.GetAbsoluteRectangle(area.
Position
.ToRectangleF()), Color.FromArgb(brushWithoutLight.Color.A, 0, 0, 0), brushWithoutLight.Color, GradientStyle.VerticalCenter);
5292
labelColumnLeft = new LabelColumn(area.
Position
.ToRectangleF());
5293
labelColumnRight = new LabelColumn(area.
Position
.ToRectangleF());
5446
RectangleF chartAreaPosition = graph.GetAbsoluteRectangle(area.
Position
.ToRectangleF());
Common\General\Axis.cs (21)
3613
maxLabelSize = (float)GetAxisPosition() - ChartArea.
Position
.Y;
3615
maxLabelSize = ChartArea.
Position
.Bottom - (float)GetAxisPosition();
3617
maxLabelSize = (float)GetAxisPosition() - ChartArea.
Position
.X;
3619
maxLabelSize = ChartArea.
Position
.Right - (float)GetAxisPosition();
3624
maxLabelSize = plotArea.Y - ChartArea.
Position
.Y;
3626
maxLabelSize = ChartArea.
Position
.Bottom - plotArea.Bottom;
3628
maxLabelSize = plotArea.X - ChartArea.
Position
.X;
3630
maxLabelSize = ChartArea.
Position
.Right - plotArea.Right;
5234
maxLabelSize = (float)GetAxisPosition() - ChartArea.
Position
.Y;
5236
maxLabelSize = ChartArea.
Position
.Bottom - (float)GetAxisPosition();
5238
maxLabelSize = (float)GetAxisPosition() - ChartArea.
Position
.X;
5240
maxLabelSize = ChartArea.
Position
.Right - (float)GetAxisPosition();
5245
maxLabelSize = this.PlotAreaPosition.Y - ChartArea.
Position
.Y;
5247
maxLabelSize = ChartArea.
Position
.Bottom - this.PlotAreaPosition.Bottom;
5249
maxLabelSize = this.PlotAreaPosition.X - ChartArea.
Position
.X;
5251
maxLabelSize = ChartArea.
Position
.Right - this.PlotAreaPosition.Right;
5258
maxLabelSize = ChartArea.
Position
.Height;
5260
maxLabelSize = ChartArea.
Position
.Width;
5466
(secondPass) ? rect.Size : ChartArea.
Position
.ToRectangleF().Size,
5480
(secondPass) ? rect.Size : ChartArea.
Position
.ToRectangleF().Size,
5641
RectangleF rectLabels = ChartArea.
Position
.ToRectangleF();
Common\General\Chart.cs (16)
2170
if(area.
Position
.Auto)
2195
if(area.
Position
.Auto)
2210
area.
Position
.SetPositionNoAuto(areaPosition.X, areaPosition.Y, areaPosition.Width, areaPosition.Height);
2222
RectangleF rect = area.
Position
.ToRectangleF();
3161
rect.X = (rect.X - area.
Position
.X) / area.
Position
.Width * 100f;
3162
rect.Y = (rect.Y - area.
Position
.Y) / area.
Position
.Height * 100f;
3163
rect.Width = rect.Width / area.
Position
.Width * 100f;
3164
rect.Height = rect.Height / area.
Position
.Height * 100f;
3201
RectangleF areaPosition = area.
Position
.ToRectangleF();
3210
areaPosition.X = masterArea.
Position
.X;
3211
areaPosition.Width = masterArea.
Position
.Width;
3218
areaPosition.Y = masterArea.
Position
.Y;
3219
areaPosition.Height = masterArea.
Position
.Height;
3223
area.
Position
.SetPositionNoAuto(areaPosition.X, areaPosition.Y, areaPosition.Width, areaPosition.Height);
Common\General\ChartArea.cs (43)
636
return !this.
Position
.Auto;
1230
if(!this.
Position
.Auto)
1232
this.originalAreaPosition = this.
Position
.ToRectangleF();
1266
this.lastAreaPosition = this.
Position
.ToRectangleF();
1267
this.
Position
.SetPositionNoAuto(this.originalAreaPosition.X, this.originalAreaPosition.Y, this.originalAreaPosition.Width, this.originalAreaPosition.Height);
1411
backgroundPosition =
Position
.ToRectangleF();
1467
RectangleF plottingRect =
Position
.ToRectangleF();
1470
plottingRect.X += (
Position
.Width / 100F) * InnerPlotPosition.X;
1471
plottingRect.Y += (
Position
.Height / 100F) * InnerPlotPosition.Y;
1472
plottingRect.Width = (
Position
.Width / 100F) * InnerPlotPosition.Width;
1473
plottingRect.Height = (
Position
.Height / 100F) * InnerPlotPosition.Height;
1705
if (axis.labelNearOffset != 0 && axis.labelNearOffset <
Position
.X)
1707
float offset =
Position
.X - axis.labelNearOffset;
1718
if (axis.labelFarOffset >
Position
.Right)
1720
if ((axis.labelFarOffset -
Position
.Right) < plottingRect.Width * 0.3f)
1722
rectLabelSideSpacing.Width = (float)Math.Max(axis.labelFarOffset -
Position
.Right, rectLabelSideSpacing.Width);
1733
if (axis.labelNearOffset != 0 && axis.labelNearOffset <
Position
.Y)
1735
float offset =
Position
.Y - axis.labelNearOffset;
1746
if (axis.labelFarOffset >
Position
.Bottom)
1748
if ((axis.labelFarOffset -
Position
.Bottom) < plottingRect.Height * 0.3f)
1750
rectLabelSideSpacing.Height = (float)Math.Max(axis.labelFarOffset -
Position
.Bottom, rectLabelSideSpacing.Height);
1768
if (rectLabelSideSpacing.Y > 0 && rectLabelSideSpacing.Y > plottingRect.Y -
Position
.Y)
1770
float delta = (plottingRect.Y -
Position
.Y) - rectLabelSideSpacing.Y;
1774
if (rectLabelSideSpacing.X > 0 && rectLabelSideSpacing.X > plottingRect.X -
Position
.X)
1776
float delta = (plottingRect.X -
Position
.X) - rectLabelSideSpacing.X;
1780
if (rectLabelSideSpacing.Height > 0 && rectLabelSideSpacing.Height >
Position
.Bottom - plottingRect.Bottom)
1782
plottingRect.Height += (
Position
.Bottom - plottingRect.Bottom) - rectLabelSideSpacing.Height;
1784
if (rectLabelSideSpacing.Width > 0 && rectLabelSideSpacing.Width >
Position
.Right - plottingRect.Right)
1786
plottingRect.Width += (
Position
.Right - plottingRect.Right) - rectLabelSideSpacing.Width;
1844
(float)Math.Round((plottingRect.X -
Position
.X) / (
Position
.Width / 100F), 5),
1845
(float)Math.Round((plottingRect.Y -
Position
.Y) / (
Position
.Height / 100F), 5),
1846
(float)Math.Round(plottingRect.Width / (
Position
.Width / 100F), 5),
1847
(float)Math.Round(plottingRect.Height / (
Position
.Height / 100F), 5));
2084
&& !
Position
.Auto)
2087
RectangleF plottingRect =
Position
.ToRectangleF();
2090
plottingRect.X += (
Position
.Width / 100F) * InnerPlotPosition.X;
2091
plottingRect.Y += (
Position
.Height / 100F) * InnerPlotPosition.Y;
2092
plottingRect.Width = (
Position
.Width / 100F) * InnerPlotPosition.Width;
2093
plottingRect.Height = (
Position
.Height / 100F) * InnerPlotPosition.Height;
2441
if(this.
Position
.Width == 0f ||
2442
this.
Position
.Height == 0f)
Common\General\ChartArea3D.cs (10)
1233
area.AxisX.PlotAreaPosition = area.
Position
;
1234
area.AxisY.PlotAreaPosition = area.
Position
;
1235
area.AxisX2.PlotAreaPosition = area.
Position
;
1236
area.AxisY2.PlotAreaPosition = area.
Position
;
1266
RectangleF plottingRect = area.
Position
.ToRectangleF();
1274
&& !area.
Position
.Auto)
1280
plottingRect.X += (area.
Position
.Width / 100F) * area.InnerPlotPosition.X;
1281
plottingRect.Y += (area.
Position
.Height / 100F) * area.InnerPlotPosition.Y;
1282
plottingRect.Width = (area.
Position
.Width / 100F) * area.InnerPlotPosition.Width;
1283
plottingRect.Height = (area.
Position
.Height / 100F) * area.InnerPlotPosition.Height;
Common\General\Label.cs (2)
1385
RectangleF rectLabels = _axis.ChartArea.
Position
.ToRectangleF();
1830
RectangleF rectLabels = area.
Position
.ToRectangleF();
Common\General\Legend.cs (6)
4953
if(!area.
Position
.Auto)
4961
if(!area.
Position
.Auto)
4963
legendPosition.Y = area.
Position
.Bottom + areaSpacing;
4969
if(!area.
Position
.Auto)
4977
if(!area.
Position
.Auto)
4979
legendPosition.X = area.
Position
.Right + areaSpacing;
Common\General\Title.cs (5)
2100
if(!area.
Position
.Auto)
2110
if(!area.
Position
.Auto)
2119
if(!area.
Position
.Auto)
2129
if(!area.
Position
.Auto)
2140
if (!area.
Position
.Auto)
Common\Utilities\ElementPosition.cs (3)
154
bool firstAutoValue = Chart.ChartAreas[0].
Position
.Auto;
158
if(area.
Position
.Auto != firstAutoValue)
188
area.
Position
._auto = autoValue;