Class TextWrapStyle
Specifies how text should wrap around an image in the document.
Inheritance
Namespace: IronWord.Models.Enums
Assembly: IronWord.dll
Syntax
public sealed class TextWrapStyle : Enum
Control how body text flows around a picture with TextWrapStyle, the wrapping mode you assign when an image shares space with paragraph text. Inline keeps the picture in the text line, Square wraps text in a rectangle around it, and Tight hugs the image contours. Behind places the picture under the text and InFront floats it over the text. The add image to Word document walkthrough shows where this fits.
var wrap = TextWrapStyle.Square;Fields
Behind
Text appears behind the image and is obscured by it.
Declaration
public const TextWrapStyle Behind
Field Value
| Type | Description |
|---|---|
| TextWrapStyle |
InFront
Text appears in front of the image and may overlap it.
Declaration
public const TextWrapStyle InFront
Field Value
| Type | Description |
|---|---|
| TextWrapStyle |
Inline
Text and image appear inline, with text flowing beside the image.
Declaration
public const TextWrapStyle Inline
Field Value
| Type | Description |
|---|---|
| TextWrapStyle |
Square
Text wraps around the image in a square fashion, maintaining a constant margin around the image.
Declaration
public const TextWrapStyle Square
Field Value
| Type | Description |
|---|---|
| TextWrapStyle |
Tight
Text wraps tightly around the image, conforming to its contours and minimizing the surrounding space.
Declaration
public const TextWrapStyle Tight
Field Value
| Type | Description |
|---|---|
| TextWrapStyle |
value__
Declaration
public int value__
Field Value
| Type | Description |
|---|---|
| System.Int32 |