Class WrapText
Specifies the manner in which an image wraps around text in the document.
Inheritance
Namespace: IronWord.Models.Enums
Assembly: IronWord.dll
Syntax
public sealed class WrapText : Enum
Image text-wrapping behavior on a picture or shape is what WrapText sets, assigned to Image.WrapText and Shape.WrapText. InLineWithText keeps the image on the text line, Square and Tight wrap surrounding text in a rectangle or along the contours, and Through lets text flow into gaps. TopAndBottom reserves whole lines above and below, BehindText and InFrontOfText layer the image under or over the text, and None leaves the flow untouched. The add image to Word document walkthrough places a picture.
image.WrapText = WrapText.Square;Fields
BehindText
The image is positioned behind the text, appearing only through gaps in the text.
Declaration
public const WrapText BehindText
Field Value
| Type | Description |
|---|---|
| WrapText |
InFrontOfText
The image is positioned in front of the text, obscuring any text underneath.
Declaration
public const WrapText InFrontOfText
Field Value
| Type | Description |
|---|---|
| WrapText |
InLineWithText
The image is placed inline with the text, flowing alongside it on the same line.
Declaration
public const WrapText InLineWithText
Field Value
| Type | Description |
|---|---|
| WrapText |
None
No wrapping occurs. The image sits alongside the text without interfering with its flow.
Declaration
public const WrapText None
Field Value
| Type | Description |
|---|---|
| WrapText |
Square
The image is placed within a square frame and positioned alongside the text.
Declaration
public const WrapText Square
Field Value
| Type | Description |
|---|---|
| WrapText |
Through
The text flows through the image, allowing gaps for the image content.
Declaration
public const WrapText Through
Field Value
| Type | Description |
|---|---|
| WrapText |
Tight
The image is wrapped tightly around the text, conforming to its shape.
Declaration
public const WrapText Tight
Field Value
| Type | Description |
|---|---|
| WrapText |
TopAndBottom
The image is placed above and below the text, separated by spacing.
Declaration
public const WrapText TopAndBottom
Field Value
| Type | Description |
|---|---|
| WrapText |
value__
Declaration
public int value__
Field Value
| Type | Description |
|---|---|
| System.Int32 |