TableTextWrapping Property

Gets or sets TextWrapping for table.

Namespace:  Aspose.Words.Tables
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public TextWrapping TextWrapping { get; set; }

Property Value

Type: TextWrapping
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