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: 19.12
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.Distance.docx");

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

if (table.TextWrapping == TextWrapping.Around)
{
    Assert.AreEqual(HorizontalAlignment.Default, table.RelativeHorizontalAlignment);
    Assert.AreEqual(VerticalAlignment.Default, table.RelativeVerticalAlignment);
    Assert.AreEqual(RelativeHorizontalPosition.Margin, table.HorizontalAnchor);
    Assert.AreEqual(RelativeVerticalPosition.Paragraph, table.VerticalAnchor);
    Assert.AreEqual(0, table.AbsoluteHorizontalDistance);
    Assert.AreEqual(4.8, table.AbsoluteVerticalDistance);
    Assert.AreEqual(true, table.AllowOverlap);
}
See Also