aboutsummaryrefslogtreecommitdiff
path: root/src/PriceListTools
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2022-01-28 12:37:02 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2022-01-28 12:37:02 +0300
commitbb6cee1fe08befe918c0e85fa9f4a52b554b741d (patch)
tree4b64d523b12547cfbf7cec897f2cad3b1cee15c6 /src/PriceListTools
parentaea6e224c28401755c80d6b90b9398c59c09b161 (diff)
Wrap new column header text
Diffstat (limited to 'src/PriceListTools')
-rw-r--r--src/PriceListTools/CombineTool.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/PriceListTools/CombineTool.cs b/src/PriceListTools/CombineTool.cs
index 6550179..a5864b7 100644
--- a/src/PriceListTools/CombineTool.cs
+++ b/src/PriceListTools/CombineTool.cs
@@ -18,7 +18,9 @@ namespace RehauSku.PriceListTools
.EntireColumn
.Insert(XlInsertShiftDirection.xlShiftToRight, XlInsertFormatOrigin.xlFormatFromRightOrBelow);
- TargetFile.Sheet.Cells[TargetFile.amountCell.Row, TargetFile.amountCell.Column - 1].Value2 = $"{source.Name}";
+ Range newColumnHeader = TargetFile.Sheet.Cells[TargetFile.amountCell.Row, TargetFile.amountCell.Column - 1];
+ newColumnHeader.Value2 = $"{source.Name}";
+ newColumnHeader.WrapText = true;
FillColumn(source.PositionAmount, TargetFile.amountCell.Column - 1);
FillColumn(source.PositionAmount, TargetFile.amountCell.Column);