ID2D1Properties::GetPropertyIndex method (d2d1_1.h)

Gets the index corresponding to the given property name.

Syntax

UINT32 GetPropertyIndex(
  [in] PCWSTR name
);

Parameters

[in] name

Type: PCWSTR

The name of the property to retrieve.

Return value

Type: UINT32

The index of the corresponding property name.

Remarks

If the property doesn't exist, then this method returns D2D1_INVALID_PROPERTY_INDEX. This reserved value will never map to a valid index, and will cause NULL or sentinel values to be returned from other parts of the property interface.

Requirements

Requirement Value
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1_1.h
DLL D2d1.dll

See also

D2D1_INVALID_PROPERTY_INDEX

ID2D1DeviceContext::CreateEffect

ID2D1Properties