Share via


PathF.Close Method

Definition

Closes the current sub-path by appending a close segment if it is not already closed.

public:
 void Close();
public void Close();
member this.Close : unit -> unit
Public Sub Close ()

Remarks

Closing a path is typically required for fill operations to work correctly. Attempting to fill an unclosed path may result in undefined behavior or exceptions in some graphics implementations. A closed path ensures that the shape is properly defined for filling operations.

Applies to