HorizontalRuleFormat
Shape.HorizontalRuleFormat property
Bietet Zugriff auf die Eigenschaften der horizontalen Linienform. Gibt für eine Form, die keine horizontale Linie ist, Folgendes zurück:null
.
public HorizontalRuleFormat HorizontalRuleFormat { get; }
Beispiele
Zeigt, wie Sie eine horizontale Regelform einfügen und ihre Formatierung anpassen.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shape shape = builder.InsertHorizontalRule();
HorizontalRuleFormat horizontalRuleFormat = shape.HorizontalRuleFormat;
horizontalRuleFormat.Alignment = HorizontalRuleAlignment.Center;
horizontalRuleFormat.WidthPercent = 70;
horizontalRuleFormat.Height = 3;
horizontalRuleFormat.Color = Color.Blue;
horizontalRuleFormat.NoShade = true;
Assert.True(shape.IsHorizontalRule);
Assert.True(shape.HorizontalRuleFormat.NoShade);
Siehe auch
- class HorizontalRuleFormat
- class Shape
- namensraum Aspose.Words.Drawing
- Montage Aspose.Words