---
UID: NF:d2d1.ID2D1GeometrySink.AddLine
title: ID2D1GeometrySink::AddLine (d2d1.h)
description: Creates a line segment between the current point and the specified end point and adds it to the geometry sink.
old-location: direct2d\ID2D1GeometrySink_AddLine.htm
tech.root: Direct2D
ms.assetid: 9ab11c38-784b-4834-bced-cd560a5273f6
ms.date: 12/05/2018
ms.keywords: AddLine, AddLine method [Direct2D], AddLine method [Direct2D],ID2D1GeometrySink interface, ID2D1GeometrySink interface [Direct2D],AddLine method, ID2D1GeometrySink.AddLine, ID2D1GeometrySink::AddLine, d2d1/ID2D1GeometrySink::AddLine, direct2d.ID2D1GeometrySink_AddLine
f1_keywords:
- d2d1/ID2D1GeometrySink.AddLine
dev_langs:
- c++
req.header: d2d1.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps \| UWP apps]
req.target-min-winversvr: Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps \| UWP apps]
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: D2d1.lib
req.dll: D2d1.dll
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- D2d1.dll
api_name:
- ID2D1GeometrySink.AddLine
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# ID2D1GeometrySink::AddLine


## -description


Creates a line segment between the current point and the specified end point and adds it to the geometry sink. 


## -parameters




### -param point

Type: <b><a href="https://docs.microsoft.com/windows/desktop/Direct2D/d2d1-point-2f">D2D1_POINT_2F</a></b>

The end point of the line to draw.


## -returns



This method does not return a value.




## -see-also




<a href="https://docs.microsoft.com/windows/desktop/Direct2D/direct2d-geometries-overview">Geometries Overview</a>



<a href="https://docs.microsoft.com/windows/desktop/Direct2D/how-to-draw-and-fill-a-complex-shape">How to Draw and Fill a Complex Shape</a>



<a href="https://docs.microsoft.com/windows/desktop/api/d2d1/nn-d2d1-id2d1geometrysink">ID2D1GeometrySink</a>
 

 

