2 writes to FillWeight
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
312destColumn.FillWeight = srcColumn.FillWeight;
System.Windows.Forms.Tests (1)
System\Windows\Forms\DataGridViewColumnCollectionTests.cs (1)
471FillWeight = ushort.MaxValue - 99
39 references to FillWeight
System.Windows.Forms (36)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (34)
578weightSum += dataGridViewColumnTmp.FillWeight; 602float oldWeight = dataGridViewColumn.FillWeight; 611dataGridViewColumnTmp.FillWeightInternal = (weightSum - newWeight) * dataGridViewColumnTmp.FillWeight / (weightSum - oldWeight); 613if (dataGridViewColumnTmp.FillWeight < (dataGridViewColumnTmp.MinimumWidth * weightSum) / widthSum) 641dataGridViewColumnTmp.UsedFillWeight = dataGridViewColumnTmp.FillWeight; 643weightSumNoneMinimal -= dataGridViewColumnTmp.FillWeight; 650weightSumNoneMinimal -= dataGridViewColumnTmp.FillWeight; 664dataGridViewColumnTmp.FillWeight * usedWeightSumNoneMinimal / weightSumNoneMinimal, 681dataGridViewColumnTmp.UsedFillWeight = dataGridViewColumnTmp.FillWeight; 721oldWeightSum += dataGridViewColumnTmp.FillWeight; 732weightSum += dataGridViewColumnTmp.FillWeight; 756float oldWeight = dataGridViewColumn.FillWeight; 767dataGridViewColumnTmp.FillWeightInternal = dataGridViewColumnTmp.FillWeight * newWeightSum / oldWeightSum; 779if (dataGridViewColumnTmp.FillWeight < (dataGridViewColumnTmp.MinimumWidth * weightSum) / availableWidth) 807? dataGridViewColumnTmp.FillWeight 811weightSumNoneMinimal -= dataGridViewColumnTmp.FillWeight; 818weightSumNoneMinimal -= dataGridViewColumnTmp.FillWeight; 831dataGridViewColumnTmp.UsedFillWeight = Math.Max(dataGridViewColumnTmp.FillWeight * usedWeightSumNoneMinimal / weightSumNoneMinimal, 848dataGridViewColumnTmp.UsedFillWeight = dataGridViewColumnTmp.FillWeight; 911weightSum += dataGridViewColumn.FillWeight; 1003float desiredFillWidth = (dataGridViewColumn.FillWeight / weightSum) * availableWidth; 1030weightSumNoneMinimal -= dataGridViewColumn.FillWeight; 1039dataGridViewColumn.UsedFillWeight = dataGridViewColumn.FillWeight * usedWeightSumNoneMinimal / weightSumNoneMinimal; 1050dataGridViewColumn.UsedFillWeight = dataGridViewColumn.FillWeight; 1079fillWeightRatioSum += dataGridViewColumn.FillWeight / dataGridViewColumn.UsedFillWeight; 1096floatDesiredWidths[columnEntry] += dataGridViewColumn.FillWeight / dataGridViewColumn.UsedFillWeight / fillWeightRatioSum; 1100floatDesiredWidths[columnEntry] += dataGridViewColumn.FillWeight / weightSum; 1140fillWeightRatio = dataGridViewColumn.UsedFillWeight / dataGridViewColumn.FillWeight; 1152float floatDesiredWidth = (stepDownAvailableWidthForFillColumns * mostDeservingDataGridViewColumn.UsedFillWeight / weightSum) - widthLoss * mostDeservingDataGridViewColumn.UsedFillWeight / mostDeservingDataGridViewColumn.FillWeight / fillWeightRatioSum; 1222weightDiscrepancy = Math.Abs(dataGridViewColumn.UsedFillWeight - dataGridViewColumn.FillWeight) / dataGridViewColumn.FillWeight; 10780float weightSum = Columns.GetColumnsFillWeight(DataGridViewElementStates.None) + dataGridViewColumn.FillWeight; 10911weightSum += dataGridViewColumn.FillWeight; 13517float weightSum = Columns.GetColumnsFillWeight(DataGridViewElementStates.None) - dataGridViewColumn.FillWeight + fillWeight;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
838dataGridViewColumn.FillWeightInternal = FillWeight;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
541weightSum += _items[columnIndex].FillWeight;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
312destColumn.FillWeight = srcColumn.FillWeight;
System.Windows.Forms.Tests (2)
System\Windows\Forms\DataGridViewColumnTests.cs (2)
26Assert.Equal(100, column.FillWeight); 77Assert.Equal(100, column.FillWeight);