Height
Inhalt
[
Ausblenden
]HorizontalRuleFormat.Height property
Ruft die Höhe der horizontalen Regel ab oder legt sie fest.
public double Height { get; set; }
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentOutOfRangeException | Wird ausgelöst, wenn das Argument außerhalb des gültigen Wertebereichs lag. |
Bemerkungen
Dies ist eine Verknüpfung zumHeight
Eigentum.
Gültige Werte reichen von 0 bis einschließlich 1584.
Der Standardwert ist 1,5.
Beispiele
Zeigt, wie man eine horizontale Regelform einfügt und deren Formatierung anpasst.
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