ShapeBaseIsHorizontalRule Property
Returns true if this shape is a horizontal rule.

Namespace: Aspose.Words.Drawing
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.12
Syntax
public bool IsHorizontalRule { get; }

Property Value

Type: Boolean
Examples
Shows how to insert horizontal rule shape in a document.
// Use a document builder to insert a horizontal rule
DocumentBuilder builder = new DocumentBuilder();
builder.InsertHorizontalRule();

// Get the rule from the document's shape collection and verify it
Shape horizontalRule = (Shape)builder.Document.GetChild(NodeType.Shape, 0, true);
Assert.True(horizontalRule.IsHorizontalRule);
See Also