Share via


PathF.LineTo Method

Definition

Overloads

LineTo(PointF)

Adds a straight line segment to the specified end point (starting a new sub-path if the path is empty).

LineTo(Single, Single)

Adds a straight line segment to the specified coordinates.

LineTo(PointF)

Source:
PathF.cs
Source:
PathF.cs
Source:
PathF.cs

Adds a straight line segment to the specified end point (starting a new sub-path if the path is empty).

public:
 Microsoft::Maui::Graphics::PathF ^ LineTo(Microsoft::Maui::Graphics::PointF point);
public Microsoft.Maui.Graphics.PathF LineTo(Microsoft.Maui.Graphics.PointF point);
member this.LineTo : Microsoft.Maui.Graphics.PointF -> Microsoft.Maui.Graphics.PathF
Public Function LineTo (point As PointF) As PathF

Parameters

point
PointF

The end point.

Returns

The current path.

Remarks

If this is the first operation on an empty path, it will automatically create an initial MoveTo operation to the specified point. For paths intended to be filled, ensure the path forms a closed shape by calling Close() or explicitly connecting back to the starting point.

Applies to

LineTo(Single, Single)

Source:
PathF.cs
Source:
PathF.cs
Source:
PathF.cs

Adds a straight line segment to the specified coordinates.

public:
 Microsoft::Maui::Graphics::PathF ^ LineTo(float x, float y);
public Microsoft.Maui.Graphics.PathF LineTo(float x, float y);
member this.LineTo : single * single -> Microsoft.Maui.Graphics.PathF
Public Function LineTo (x As Single, y As Single) As PathF

Parameters

x
Single

The x-coordinate of the end point.

y
Single

The y-coordinate of the end point.

Returns

The current path.

Applies to