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

也可以看看