---
UID: NF:d2d1.ID2D1StrokeStyle.GetEndCap
title: ID2D1StrokeStyle::GetEndCap (d2d1.h)
description: Retrieves the type of shape used at the end of a stroke.
old-location: direct2d\ID2D1StrokeStyle_GetEndCap.htm
tech.root: Direct2D
ms.assetid: 06cf4629-9fa8-471a-9f92-94bdfb18c2d1
ms.date: 12/05/2018
ms.keywords: GetEndCap, GetEndCap method [Direct2D], GetEndCap method [Direct2D],ID2D1StrokeStyle interface, ID2D1StrokeStyle interface [Direct2D],GetEndCap method, ID2D1StrokeStyle.GetEndCap, ID2D1StrokeStyle::GetEndCap, d2d1/ID2D1StrokeStyle::GetEndCap, direct2d.ID2D1StrokeStyle_GetEndCap
f1_keywords:
- d2d1/ID2D1StrokeStyle.GetEndCap
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:
- ID2D1StrokeStyle.GetEndCap
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# ID2D1StrokeStyle::GetEndCap


## -description


Retrieves the type of shape used at the end of a stroke.


## -parameters






## -returns



Type: <b><a href="https://docs.microsoft.com/windows/desktop/api/d2d1/ne-d2d1-d2d1_cap_style">D2D1_CAP_STYLE</a></b>

The type of shape used at the end of a stroke.




## -see-also




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

 

