TextWrapping Enumeration

Specifies how text is wrapped around the table.

Namespace:  Aspose.Words.Tables
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public enum TextWrapping
Members
  Member nameValueDescription
None0 Text and table is displayed in the order of their appearance in the document.
Around1 Text is wrapped around the table occupying available side space.
Default0 Default value.
Examples
Shows 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