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)
1291return (_calculatedColumns); 1917if (_calculatedColumns == null) 1921else if (_calculatedColumns.Length != columns) 1926_calculatedColumns, 1928Math.Min(_calculatedColumns.Length, columns)); 1933if (_calculatedColumns.Length > 0) 1937while (i < _calculatedColumns.Length && i < Table.Columns.Count) 1939_calculatedColumns[i].UserWidth = Table.Columns[i].Width; 1943while (i < _calculatedColumns.Length) 1945_calculatedColumns[i].UserWidth = TableColumn.DefaultWidth; 1952for (int i = 0; i < _calculatedColumns.Length; ++i) 1954switch (_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; 2039for (int i = 0; i < _calculatedColumns.Length; ++i) 2041Debug.Assert(_calculatedColumns[i].UserWidth.GridUnitType == GridUnitType.Auto || _calculatedColumns[i].UserWidth.GridUnitType == GridUnitType.Star || _calculatedColumns[i].UserWidth.GridUnitType == GridUnitType.Pixel, "Unexpected GridUnitType"); 2042if (_calculatedColumns[i].UserWidth.IsAuto) 2044Debug.Assert(0 <= _calculatedColumns[i].DurMinWidth && 0 <= _calculatedColumns[i].DurMaxWidth); 2045durAutoMin += _calculatedColumns[i].DurMinWidth; 2046durAutoMax += _calculatedColumns[i].DurMaxWidth; 2050if (_calculatedColumns[i].UserWidth.IsStar) 2052iP = _calculatedColumns[i].UserWidth.Value; 2063_calculatedColumns[i].UserWidth = new GridLength(iP, GridUnitType.Star); 2077if (_calculatedColumns[i].DurMaxWidth * div > iP * mul) 2079mul = _calculatedColumns[i].DurMaxWidth; 2083durScalableMin += _calculatedColumns[i].DurMinWidth; 2087durAbsoluteMin += _calculatedColumns[i].DurMinWidth; 2088durAbsoluteMax += _calculatedColumns[i].DurMaxWidth; 2325for (int i = 0; i < _calculatedColumns.Length; ++i) 2327if (_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) 2344else if (_calculatedColumns[i].UserWidth.IsStar) 2351? (durTableUserWidth * (fP * _calculatedColumns[i].UserWidth.Value / iPercent) / 100) 2357durAbsoluteAndAutoWidths -= _calculatedColumns[i].DurMinWidth; 2365_calculatedColumns[i].DurWidth = (_calculatedColumns[i].DurMinWidth + durAbsoluteAndAutoWidths); 2369Debug.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) 2393Debug.Assert(_calculatedColumns[i].DurMinWidth <= _calculatedColumns[i].DurMaxWidth); 2395_calculatedColumns[i].UrOffset = durTableWidth + cellSpacing / 2.0; 2397durTableWidth += _calculatedColumns[i].DurWidth + cellSpacing; // Advance to next column 2399if (_calculatedColumns[i].PtsWidthChanged == PTS.True)