2 writes to _calculatedColumns
PresentationFramework (2)
MS\Internal\PtsHost\TableParaClient.cs (2)
1925
_calculatedColumns
= new CalculatedColumn[columns];
1936
_calculatedColumns
= newCalculatedColumns;
71 references to _calculatedColumns
PresentationFramework (71)
MS\Internal\PtsHost\TableParaClient.cs (71)
1297
return (
_calculatedColumns
);
1923
if (
_calculatedColumns
== null)
1927
else if (
_calculatedColumns
.Length != columns)
1932
_calculatedColumns
,
1934
Math.Min(
_calculatedColumns
.Length, columns));
1939
if (
_calculatedColumns
.Length > 0)
1943
while (i <
_calculatedColumns
.Length && i < Table.Columns.Count)
1945
_calculatedColumns
[i].UserWidth = Table.Columns[i].Width;
1949
while (i <
_calculatedColumns
.Length)
1951
_calculatedColumns
[i].UserWidth = TableColumn.DefaultWidth;
1958
for (int i = 0; i <
_calculatedColumns
.Length; ++i)
1960
switch (
_calculatedColumns
[i].UserWidth.GridUnitType)
1965
_calculatedColumns
[i].ValidateAuto(1.0, 10e5);
1969
_calculatedColumns
[i].ValidateAuto(1.0, 10e5);
1973
_calculatedColumns
[i].ValidateAuto(
1974
_calculatedColumns
[i].UserWidth.Value,
1975
_calculatedColumns
[i].UserWidth.Value);
1982
_durMinWidth +=
_calculatedColumns
[i].DurMinWidth;
1983
_durMaxWidth +=
_calculatedColumns
[i].DurMaxWidth;
2045
for (int i = 0; i <
_calculatedColumns
.Length; ++i)
2047
Debug.Assert(
_calculatedColumns
[i].UserWidth.GridUnitType == GridUnitType.Auto ||
_calculatedColumns
[i].UserWidth.GridUnitType == GridUnitType.Star ||
_calculatedColumns
[i].UserWidth.GridUnitType == GridUnitType.Pixel, "Unexpected GridUnitType");
2048
if (
_calculatedColumns
[i].UserWidth.IsAuto)
2050
Debug.Assert(0 <=
_calculatedColumns
[i].DurMinWidth && 0 <=
_calculatedColumns
[i].DurMaxWidth);
2051
durAutoMin +=
_calculatedColumns
[i].DurMinWidth;
2052
durAutoMax +=
_calculatedColumns
[i].DurMaxWidth;
2056
if (
_calculatedColumns
[i].UserWidth.IsStar)
2058
iP =
_calculatedColumns
[i].UserWidth.Value;
2069
_calculatedColumns
[i].UserWidth = new GridLength(iP, GridUnitType.Star);
2083
if (
_calculatedColumns
[i].DurMaxWidth * div > iP * mul)
2085
mul =
_calculatedColumns
[i].DurMaxWidth;
2089
durScalableMin +=
_calculatedColumns
[i].DurMinWidth;
2093
durAbsoluteMin +=
_calculatedColumns
[i].DurMinWidth;
2094
durAbsoluteMax +=
_calculatedColumns
[i].DurMaxWidth;
2331
for (int i = 0; i <
_calculatedColumns
.Length; ++i)
2333
if (
_calculatedColumns
[i].UserWidth.IsAuto)
2336
_calculatedColumns
[i].DurWidth =
2338
?
_calculatedColumns
[i].DurMaxWidth - ((
_calculatedColumns
[i].DurMaxWidth -
_calculatedColumns
[i].DurMinWidth) * (durAutoMax - durAutoWidths) / (durAutoMax - durAutoMin))
2340
?
_calculatedColumns
[i].DurMaxWidth + (
_calculatedColumns
[i].DurMaxWidth * (durAutoWidths - durAutoMax) / durAutoMax)
2342
?
_calculatedColumns
[i].DurMaxWidth
2344
?
_calculatedColumns
[i].DurMinWidth
2347
?
_calculatedColumns
[i].DurMinWidth + (
_calculatedColumns
[i].DurMaxWidth * (durAutoWidths - durAutoMin) / durAutoMax)
2350
else if (
_calculatedColumns
[i].UserWidth.IsStar)
2357
? (durTableUserWidth * (fP *
_calculatedColumns
[i].UserWidth.Value / iPercent) / 100)
2363
durAbsoluteAndAutoWidths -=
_calculatedColumns
[i].DurMinWidth;
2371
_calculatedColumns
[i].DurWidth = (
_calculatedColumns
[i].DurMinWidth + durAbsoluteAndAutoWidths);
2375
Debug.Assert(
_calculatedColumns
[i].UserWidth.IsAbsolute);
2378
_calculatedColumns
[i].DurWidth =
2385
?
_calculatedColumns
[i].DurMaxWidth - ((
_calculatedColumns
[i].DurMaxWidth -
_calculatedColumns
[i].DurMinWidth) * (durAbsoluteMax - durAbsoluteWidths) / (durAbsoluteMax - durAbsoluteMin))
2386
:
_calculatedColumns
[i].DurMaxWidth - (
_calculatedColumns
[i].DurMaxWidth * (durAbsoluteMax - durAbsoluteWidths) / durAbsoluteMax)
2388
?
_calculatedColumns
[i].DurMaxWidth + (
_calculatedColumns
[i].DurMaxWidth * (durAbsoluteWidths - durAbsoluteMax) / durAbsoluteMax)
2390
?
_calculatedColumns
[i].DurMaxWidth
2392
?
_calculatedColumns
[i].DurMinWidth
2395
?
_calculatedColumns
[i].DurMinWidth + (
_calculatedColumns
[i].DurMaxWidth * (durAbsoluteWidths - durAbsoluteMin) / durAbsoluteMax)
2399
Debug.Assert(
_calculatedColumns
[i].DurMinWidth <=
_calculatedColumns
[i].DurMaxWidth);
2401
_calculatedColumns
[i].UrOffset = durTableWidth + cellSpacing / 2.0;
2403
durTableWidth +=
_calculatedColumns
[i].DurWidth + cellSpacing; // Advance to next column
2405
if (
_calculatedColumns
[i].PtsWidthChanged == PTS.True)