ShapeBaseAllowOverlap Property

Gets or sets a value that specifies whether this shape can overlap other shapes.

Namespace:  Aspose.Words.Drawing
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public bool AllowOverlap { get; set; }

Property Value

Type: Boolean
Remarks

This property affects behavior of the shape in Microsoft Word. Aspose.Words ignores the value of this property.

This property is applicable only to top level shapes.

The default value is true.

Examples
Shows how get properties for floating tables
Document doc = new Document(MyDir + "Table wrapped by text.docx");

Table table = (Table) doc.GetChild(NodeType.Table, 0, true);

if (table.TextWrapping == TextWrapping.Around)
{
    Assert.AreEqual(RelativeHorizontalPosition.Margin, table.HorizontalAnchor);
    Assert.AreEqual(RelativeVerticalPosition.Paragraph, table.VerticalAnchor);
    Assert.AreEqual(false, table.AllowOverlap);
}
See Also