2 writes to _calculatedColumns
PresentationFramework (2)
MS\Internal\PtsHost\TableParaClient.cs (2)
1919
_calculatedColumns
= new CalculatedColumn[columns];
1930
_calculatedColumns
= newCalculatedColumns;
71 references to _calculatedColumns
PresentationFramework (71)
MS\Internal\PtsHost\TableParaClient.cs (71)
1291
return (
_calculatedColumns
);
1917
if (
_calculatedColumns
== null)
1921
else if (
_calculatedColumns
.Length != columns)
1926
_calculatedColumns
,
1928
Math.Min(
_calculatedColumns
.Length, columns));
1933
if (
_calculatedColumns
.Length > 0)
1937
while (i <
_calculatedColumns
.Length && i < Table.Columns.Count)
1939
_calculatedColumns
[i].UserWidth = Table.Columns[i].Width;
1943
while (i <
_calculatedColumns
.Length)
1945
_calculatedColumns
[i].UserWidth = TableColumn.DefaultWidth;
1952
for (int i = 0; i <
_calculatedColumns
.Length; ++i)
1954
switch (
_calculatedColumns
[i].UserWidth.GridUnitType)
1959
_calculatedColumns
[i].ValidateAuto(1.0, 10e5);
1963
_calculatedColumns
[i].ValidateAuto(1.0, 10e5);
1967
_calculatedColumns
[i].ValidateAuto(
1968
_calculatedColumns
[i].UserWidth.Value,
1969
_calculatedColumns
[i].UserWidth.Value);
1976
_durMinWidth +=
_calculatedColumns
[i].DurMinWidth;
1977
_durMaxWidth +=
_calculatedColumns
[i].DurMaxWidth;
2039
for (int i = 0; i <
_calculatedColumns
.Length; ++i)
2041
Debug.Assert(
_calculatedColumns
[i].UserWidth.GridUnitType == GridUnitType.Auto ||
_calculatedColumns
[i].UserWidth.GridUnitType == GridUnitType.Star ||
_calculatedColumns
[i].UserWidth.GridUnitType == GridUnitType.Pixel, "Unexpected GridUnitType");
2042
if (
_calculatedColumns
[i].UserWidth.IsAuto)
2044
Debug.Assert(0 <=
_calculatedColumns
[i].DurMinWidth && 0 <=
_calculatedColumns
[i].DurMaxWidth);
2045
durAutoMin +=
_calculatedColumns
[i].DurMinWidth;
2046
durAutoMax +=
_calculatedColumns
[i].DurMaxWidth;
2050
if (
_calculatedColumns
[i].UserWidth.IsStar)
2052
iP =
_calculatedColumns
[i].UserWidth.Value;
2063
_calculatedColumns
[i].UserWidth = new GridLength(iP, GridUnitType.Star);
2077
if (
_calculatedColumns
[i].DurMaxWidth * div > iP * mul)
2079
mul =
_calculatedColumns
[i].DurMaxWidth;
2083
durScalableMin +=
_calculatedColumns
[i].DurMinWidth;
2087
durAbsoluteMin +=
_calculatedColumns
[i].DurMinWidth;
2088
durAbsoluteMax +=
_calculatedColumns
[i].DurMaxWidth;
2325
for (int i = 0; i <
_calculatedColumns
.Length; ++i)
2327
if (
_calculatedColumns
[i].UserWidth.IsAuto)
2330
_calculatedColumns
[i].DurWidth =
2332
?
_calculatedColumns
[i].DurMaxWidth - ((
_calculatedColumns
[i].DurMaxWidth -
_calculatedColumns
[i].DurMinWidth) * (durAutoMax - durAutoWidths) / (durAutoMax - durAutoMin))
2334
?
_calculatedColumns
[i].DurMaxWidth + (
_calculatedColumns
[i].DurMaxWidth * (durAutoWidths - durAutoMax) / durAutoMax)
2336
?
_calculatedColumns
[i].DurMaxWidth
2338
?
_calculatedColumns
[i].DurMinWidth
2341
?
_calculatedColumns
[i].DurMinWidth + (
_calculatedColumns
[i].DurMaxWidth * (durAutoWidths - durAutoMin) / durAutoMax)
2344
else if (
_calculatedColumns
[i].UserWidth.IsStar)
2351
? (durTableUserWidth * (fP *
_calculatedColumns
[i].UserWidth.Value / iPercent) / 100)
2357
durAbsoluteAndAutoWidths -=
_calculatedColumns
[i].DurMinWidth;
2365
_calculatedColumns
[i].DurWidth = (
_calculatedColumns
[i].DurMinWidth + durAbsoluteAndAutoWidths);
2369
Debug.Assert(
_calculatedColumns
[i].UserWidth.IsAbsolute);
2372
_calculatedColumns
[i].DurWidth =
2379
?
_calculatedColumns
[i].DurMaxWidth - ((
_calculatedColumns
[i].DurMaxWidth -
_calculatedColumns
[i].DurMinWidth) * (durAbsoluteMax - durAbsoluteWidths) / (durAbsoluteMax - durAbsoluteMin))
2380
:
_calculatedColumns
[i].DurMaxWidth - (
_calculatedColumns
[i].DurMaxWidth * (durAbsoluteMax - durAbsoluteWidths) / durAbsoluteMax)
2382
?
_calculatedColumns
[i].DurMaxWidth + (
_calculatedColumns
[i].DurMaxWidth * (durAbsoluteWidths - durAbsoluteMax) / durAbsoluteMax)
2384
?
_calculatedColumns
[i].DurMaxWidth
2386
?
_calculatedColumns
[i].DurMinWidth
2389
?
_calculatedColumns
[i].DurMinWidth + (
_calculatedColumns
[i].DurMaxWidth * (durAbsoluteWidths - durAbsoluteMin) / durAbsoluteMax)
2393
Debug.Assert(
_calculatedColumns
[i].DurMinWidth <=
_calculatedColumns
[i].DurMaxWidth);
2395
_calculatedColumns
[i].UrOffset = durTableWidth + cellSpacing / 2.0;
2397
durTableWidth +=
_calculatedColumns
[i].DurWidth + cellSpacing; // Advance to next column
2399
if (
_calculatedColumns
[i].PtsWidthChanged == PTS.True)