HorizontalRuleAlignment
HorizontalRuleAlignment enumeration
Representa la alineación de la regla horizontal especificada.
public enum HorizontalRuleAlignment
Valores
Nombre | Valor | Descripción |
---|---|---|
Left | 0 | Alineado a la izquierda. |
Center | 1 | Alineado al centro. |
Right | 2 | Alineado a la derecha. |
Ejemplos
Muestra cómo insertar una regla horizontal y personalizar su formato.
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);
Ver también
- espacio de nombres Aspose.Words.Drawing
- asamblea Aspose.Words