Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Specifies the vertical alignment of the primary content in the viewport.
Syntax
HRESULT SetVerticalAlignment(
[in] DIRECTMANIPULATION_VERTICALALIGNMENT alignment
);
Parameters
[in] alignment
One or more values from DIRECTMANIPULATION_VERTICALALIGNMENT.
Return value
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
If you have activated a configuration consisting only of zoom or zoom inertia, specify DIRECTMANIPULATION_VERTICALALIGNMENT_UNLOCKCENTER to respect the zoom center point.
Examples
The following example shows how to use this method.
HRESULT hr = pContent->SetVerticalAlignment(
DIRECTMANIPULATION_VERTICALALIGNMENT_CENTER| DIRECTMANIPULATION_VERTICALALIGNMENT_UNLOCKCENTER);
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 8 [desktop apps only] |
| Minimum supported server | Windows Server 2012 [desktop apps only] |
| Target Platform | Windows |
| Header | directmanipulation.h |