如何允许文本溢出Excel中的单元格?
我在vba上发现了这个
"Allow text to overflow shape" in excel 2010 vba
我想做与xlOartHorizontalOverflowOverflow
等效的操作-允许溢出,但在C#中会溢出单元格(而不是形状)
我尝试过:
worksheet.Cells[1, 1].Style.OverflowText = true;
worksheet.Cells[1, 1].AllowEditOverflow = true;
worksheet.Cells[1, 1].TextFrame2.HorizontalOverflow = true;
worksheet.Cells[1, 1] = Excel.xlOartHorizontalOverflowOverflow;
worksheet.Cells[1, 1].TextFrame2.HorizontalOverflow = Excel.xlOartHorizontalOverflowOverflow;
但无济于事
任何帮助都会得到体现
答案 0 :(得分:0)
worksheet.Cells[1, 1].Style.WrapText = false;