Back to DOM
TextBoxTightWrapValuesEnum
Definition
- Namespace
- DOM.Enums
- Assembly
- DOM.dll
Specifies how tightly text should wrap around a text box that uses a wrap polygon.
Remarks
Used by . When a text box has a custom wrap polygon, this value determines which lines are pushed away from the polygon: all lines, only the first and last, only the first, or only the last. ParagraphStyle.TextBoxTightWrap
Examples
csharp
1// 1. No tight wrap
2var style = new ParagraphStyle { TextBoxTightWrap = TextBoxTightWrapValues.none };
3
csharp
1// 2. All lines wrap tightly
2var style = new ParagraphStyle { TextBoxTightWrap = TextBoxTightWrapValues.allLines };
3
csharp
1// 3. First and last lines wrap
2var style = new ParagraphStyle { TextBoxTightWrap = TextBoxTightWrapValues.firstAndLastLine };
3
csharp
1// 4. Only the first line wraps
2var style = new ParagraphStyle { TextBoxTightWrap = TextBoxTightWrapValues.firstLineOnly };
3
Fields
allLines
All lines wrap tightly around the text box.
firstAndLastLine
Only the first and last lines wrap tightly.
firstLineOnly
Only the first line wraps tightly.
lastLineOnly
Only the last line wraps tightly.
none
No tight wrapping.