ShapeBaseIsInline Property

A quick way to determine if this shape is positioned inline with text.

Namespace:  Aspose.Words.Drawing
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.5
public bool IsInline { get; }

Property Value

Type: Boolean

Has effect only for top level shapes.

Shows how to test if a shape in the document is inline or floating.
Document doc = new Document(MyDir + "Rendering.docx");

foreach (Shape shape in doc.GetChildNodes(NodeType.Shape, true).OfType<Shape>())
    Console.WriteLine(shape.IsInline ? "Shape is inline." : "Shape is floating.");
See Also