Height
Inhalt
[
Ausblenden
]HorizontalRuleFormat.Height property
Ruft die Höhe der horizontalen Linie ab oder legt sie fest.
public double Height { get; set; }
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentOutOfRangeException | Wird ausgelöst, wenn das Argument außerhalb des Bereichs gültiger Werte liegt. |
Bemerkungen
Dies ist eine Abkürzung zumHeight
Eigentum.
Gültige Werte reichen von 0 bis einschließlich 1584.
Der Standardwert ist 1,5.
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
- namensraum Aspose.Words.Drawing
- Montage Aspose.Words