# TypedPoint type
{: .no_toc }

A point of a path together with its type.

A path stores its points and their types in two arrays. A **TypedPoint** keeps one point and its type together, so that code can handle them as one value. [**PathData**](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/PathData.md) takes an array of them, and [**TypedPoints**](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/TypedPoints.md) returns one.

## Fields

| Field | Type | Meaning |
|:------|:-----|:--------|
| **pos** | [**GpPointF**](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/GpPointF.md) | The position of the point. |
| **type** | [**PathPointType**](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/PathPointType.md) | What kind of point it is. |

```tb check_build check_run
Dim user As GdiPlusUser = GdiPlusUser()
Dim tp As TypedPoint
tp.pos = GpPointF(3, 4)
tp.type._value = PathPointTypeLine
Debug.Print tp.pos.X & "," & tp.pos.Y & " " & CLng(tp.type.PointType)      ' 3,4 1
```

## See Also

- [PathPointType](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/PathPointType.md) type
- [TypedPoints](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Types/TypedPoints.md) type -- an array of typed points with a count
- [PathData](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/PathData.md) class
- [PathIterator](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/PathIterator.md) class -- **Enumerate** returns typed points
