PathPointType 枚举


指定 GraphicsPath 对象中点的类型。Specifies the type of point in a GraphicsPath object.

public enum class PathPointType
public enum PathPointType
type PathPointType = 
Public Enum PathPointType


Bezier 3

默认贝塞尔曲线。A default Bézier curve.

Bezier3 3

立体贝塞尔曲线。A cubic Bézier curve.

CloseSubpath 128

子路径的终结点。The endpoint of a subpath.

DashMode 16

对应线段为虚线。The corresponding segment is dashed.

Line 1

连线线段。A line segment.

PathMarker 32

路径标记。A path marker.

PathTypeMask 7

遮盖点。A mask point.

Start 0

GraphicsPath 对象的起始点。The starting point of a GraphicsPath object.


GraphicsPath对象中的每个点都有一个与之关联的类型。Each point in a GraphicsPath object has a type associated with it. 类型决定了如何使用点绘制路径。The type determines how the point is used to draw the path. 构成形状的点类型包括起点、停止点和贝塞尔曲线点。Point types that make up shapes include start points, stop points, and Bézier curve points. 类型还包括标记, 这允许轻松遍历路径或屏蔽以显示或隐藏点。Types also include markers, which allow easy traversal of a path or a mask to show or hide points. 线条类型和任何贝塞尔类型都可以与 CloseSubpath (通过使用按位运算符OR) 组合, 以指示相应的点是图形中的最后一个点, 并且该图形应闭合。The Line type and any of the Bezier types can be combined with CloseSubpath (by using the bitwise operator OR) to indicate that the corresponding point is the last point in a figure and that the figure should be closed.