Wrap Text
ndrogers opened this issue · 3 comments
ndrogers commented
Options should be added to allow the user to set the wrap text property to a range.
Wrap text requires the same extension to cellXfs XML generation found in StyleXML. See #15
ndrogers commented
@PaulMansour @mkromberg
Wrap text is solved, however I have questions on the design for the API.
WrapText could be a boolean property for range namespaces. My idea is that the user can set a scalar, or a boolean vector, or boolean matrix , like how the current style settings work.
r1.WrapText←1 ⍝ all cells will wrap text
r2.WrapText←1 0 0 0 1 0 ⍝ columns 1 and 5 will wrap text for a 6 column range
r3.WrapText← 6 6⍴1 0 0 0 1 0 ⍝ columns 1 and 5 will wrap text for a 6x6 range
Is this sufficient, or are there other factors to consider with wrap text?
PaulMansour commented
That's fine. That's all one does in the Excel object model. In fact less, as I think you can only set WrapText to 1 for a entire range, not for individual cells within a range.