Export (0) Print
Expand All

GraphicsPath.PathTypes Property

Gets the types of the corresponding points in the PathPoints array.

Namespace:  System.Drawing.Drawing2D
Assembly:  System.Drawing (in System.Drawing.dll)

public byte[] PathTypes { get; }

Property Value

Type: System.Byte[]
An array of bytes that specifies the types of the corresponding points in the path.

The array of bytes returned by the PathTypes property specifies point types and flags for the data points in a path. For each point, bits 0 through 2 indicate the type of a point, and bits 3 through 7 hold a set of flags that specify the attributes of a point. The following table shows possible values and their meanings.

Value

Meaning

0

Indicates that the point is the start of a figure.

1

Indicates that the point is one of the two endpoints of a line.

3

Indicates that the point is an endpoint or control point of a cubic Bézier spline.

0x7

Masks all bits except for the three low-order bits, which indicate the point type.

0x20

Specifies that the point is a marker.

0x80

Specifies that the point is the last point in a closed subpath (figure).

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft