Height

HorizontalRuleFormat.Height property

Obtiene o establece la altura de la regla horizontal.

public double Height { get; set; }

Excepciones

excepcióncondición
ArgumentOutOfRangeExceptionSe lanza cuando el argumento estaba fuera del rango de valores válidos.

Observaciones

Este es un atajo hacia elHeight propiedad.

Los valores válidos oscilan entre 0 y 1584 inclusive.

El valor predeterminado es 1,5.

Ejemplos

Muestra cómo insertar una forma de 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