GridFigure
以上列举说明GridPattern中作为子的路径元素如何被用来绘制正格.
字段
public const GridFigure HorizontalBar
value = GridFigure.HorizontalBar
绘制正水平条; 向路径提供“ 填充” 属性。 刷入适用于整个 GridPattern, 而不是每个栏。 通过设置所附带的 BarThicknessProperty 来控制单元格大小单位中的每个栏的宽度 。
public const GridFigure HorizontalCross
value = GridFigure.HorizontalCross
在网格点为交叉绘制水平线条。 您需要提供 Stroke 刷线属性, 以给每行一个颜色。 如果您不指定非零 StrokeThickness, 则将设置为 1. GridPattern 将自动设置其它“ Stroke...” 属性。 通过设置 CrossLengthProperty 来控制每个破折线的长度 。
public const GridFigure HorizontalDot
value = GridFigure.HorizontalDot
在网格点上按照水平线绘制正则点。 您需要提供 Stroke 刷子属性, 给每个点一个颜色。 StrokeThickness 指定了每个点的大小。 如果您不指定非零 StrokeThickness, 则将设置为 1. GridPattern 将自动设置其它“ Stroke...” 属性 。
public const GridFigure HorizontalLine
value = GridFigure.HorizontalLine
绘制正则水平线; 提供“ Stroke... ” 属性到路径 。
public const GridFigure VerticalBar
value = GridFigure.VerticalBar
绘制正则垂直条; 向路径提供“ 覆盖” 属性。 刷入适用于整个 GridPattern, 而不是每个栏。 通过设置附加的 BarThicknessProperty 来控制单元格大小单位中每个栏的宽度 。
public const GridFigure VerticalCross
value = GridFigure.VerticalCross
绘制网格点的横线垂直线条。 您需要提供 Stroke 刷线属性, 以给每行一个颜色。 如果您不指定非零 StrokeThickness, 则将设置为 1. GridPattern 将自动设置其它“ Stroke... ” 属性。 通过设置 CrossLengthProperty 来控制每个破折线的长度 。
public const GridFigure VerticalDot
value = GridFigure.VerticalDot
在网格点上按照垂直线绘制正则点。 您需要提供 Stroke 刷子属性, 给每个点一个颜色 。 StrokeThickness 指定了每个点的大小。 如果您不指定非零 StrokeThickness, 则将设置为 1. GridPattern 将自动设置其他“ Stroke...” 属性 。
public const GridFigure VerticalLine
value = GridFigure.VerticalLine
绘制正则垂直行; 向路径提供“ Stroke...” 属性 。