NoShade

HorizontalRuleFormat.NoShade property

Indica la presencia de sombreado 3D para la regla horizontal. Siverdadero , entonces la regla horizontal no tiene sombreado 3D y se usa un color sólido.

public bool NoShade { get; set; }

Observaciones

El valor predeterminado esFALSO.

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