NoShade

HorizontalRuleFormat.NoShade property

Указывает наличие 3D-затенения для горизонтальной линейки. Еслиистинный то горизонтальная линейка без 3D-затенения и используется сплошной цвет.

public bool NoShade { get; set; }

Примечания

Значение по умолчанию:ЛОЖЬ.

Примеры

Показывает, как вставить фигуру горизонтальной линейки и настроить ее форматирование.

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);

Смотрите также