获取图形段的笔划定义。
Syntax
HRESULT GetSegmentStrokes(
[in, out] UINT32 *segmentCount,
[in, out] BOOL *segmentStrokes
);
参数
[in, out] segmentCount
由 segmentStrokes 引用的数组的大小。 此参数不得为 NULL。
如果方法成功返回, segmentCount 将包含 由 segmentStrokes 引用的数组中返回的元素数。
如果在调用方法时 segmentStrokes 为 NULL ,则必须将 segmentCount 设置为零。
如果在 segmentStrokes 中返回 NULL 指针,则 segmentCount 的值将包含指定为元素数所需的缓冲区大小。
[in, out] segmentStrokes
一个数组,其元素数与 segmentCount 中指定的元素数相同。 如果调用方要求此方法仅返回所需的缓冲区大小,请将此值设置为 NULL。
如果数组足够大,此方法会将段笔划值复制到数组中,并在 segmentCount 中返回复制的段笔划值数。 如果 segmentData 为 NULL 或引用的缓冲区不够大,将返回 NULL 指针,不会复制任何数据, segmentCount 将包含指定为元素数的所需缓冲区大小。
下表显示了 由 segmentStrokes 引用的数组中元素的可能值。
| 价值 | Meaning |
|---|---|
|
段被笔划。 |
|
不划线段。 |
返回值
如果方法成功,则返回S_OK;否则,它将返回 HRESULT 错误代码。
| 返回代码 | Description |
|---|---|
|
方法成功。 |
|
segmentCount 为 NULL。 |
|
segmentStrokes 为 NULL 或引用的缓冲区不够大,无法接收段笔划数据。 segmentCount 包含所需的元素数。 |
要求
| Requirement | 价值 |
|---|---|
| 最低支持的客户端 | 适用于 Windows Vista 的 Windows 7、带有 SP2 和平台更新的 Windows Vista [桌面应用 |UWP 应用] |
| 支持的最低服务器 | Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008 [桌面应用 |UWP 应用] |
| 目标平台 | Windows操作系统 |
| Header | xpsobjectmodel.h |