Specifies how text is wrapped around the table.
Namespace:
Aspose.Words.Tables
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
SyntaxPublic Enumeration TextWrapping
public enum class TextWrapping
Members
| Member name | Value | Description |
---|
| None | 0 |
Text and table is displayed in the order of their appearance in the document.
|
| Around | 1 |
Text is wrapped around the table occupying available side space.
|
| Default | 0 |
Default value.
|
ExamplesShows how to work with table text wrapping.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Table table = DocumentHelper.InsertTable(builder);
if (table.TextWrapping == TextWrapping.Around)
{
Assert.AreEqual(HorizontalAlignment.Default, table.RelativeHorizontalAlignment);
Assert.AreEqual(VerticalAlignment.Default, table.RelativeVerticalAlignment);
Assert.AreEqual(RelativeHorizontalPosition.Column, table.HorizontalAnchor);
Assert.AreEqual(RelativeVerticalPosition.Margin, table.VerticalAnchor);
Assert.AreEqual(0, table.AbsoluteHorizontalDistance);
Assert.AreEqual(0, table.AbsoluteVerticalDistance);
Assert.AreEqual(true, table.AllowOverlap);
}
See Also