HorizontalRuleAlignment

HorizontalRuleAlignment enumeration

Representa la alineación de la regla horizontal especificada.

public enum HorizontalRuleAlignment

Valores

NombreValorDescripción
Left0Alineado a la izquierda.
Center1Alineado al centro.
Right2Alineado 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