ID2D1Properties::GetSubProperties (U,ID2D1Properties**) 方法 (d2d1_1.h)

按索引获取所提供的属性的子属性。 这是模板重载。 请参阅“备注”。

语法

HRESULT GetSubProperties(
        U               index,
  [out] ID2D1Properties **subProperties
);

参数

index

类型: U

要检索的子属性的索引。

[out] subProperties

类型: ID2D1Properties**

此方法返回时,包含指向子属性的指针的地址。

返回值

类型: HRESULT

该方法返回 HRESULT。 可能的值包括(但并不限于)下表中的项。

HRESULT 说明
S_OK 未发生错误。
D2DERR_NO_SUBPROPERTIES 指定的属性不存在。

注解

如果没有子属性, subProperties 将为 NULL,并且将返回 D2DERR_NO_SUBPROPERTIES

template<typename U>
          HRESULT GetSubProperties(
          U index,
          _Outptr_opt_ ID2D1Properties **subProperties
          ) CONST;
        

要求

要求
最低受支持的客户端 适用于 Windows 7 的 Windows 8 和平台更新 [桌面应用 |UWP 应用]
最低受支持的服务器 Windows Server 2012 和适用于 Windows Server 2008 R2 的平台更新 [桌面应用 |UWP 应用]
目标平台 Windows
标头 d2d1_1.h
Library D2d1.lib
DLL D2d1.dll

另请参阅

ID2D1Properties