IDirectManipulationPrimaryContent::SetVerticalAlignment method

Specifies the vertical alignment of the primary content in the viewport.

Syntax


HRESULT SetVerticalAlignment(
  [in]  DIRECTMANIPULATION_VERTICALALIGNMENT alignment
);

Parameters

alignment [in]

One or more values from DIRECTMANIPULATION_VERTICALALIGNMENT.

Note  You cannot combine DIRECTMANIPULATION_VERTICALALIGNMENT_TOP, DIRECTMANIPULATION_VERTICALALIGNMENT_CENTER, or DIRECTMANIPULATION_VERTICALALIGNMENT_BOTTOM. DIRECTMANIPULATION_VERTICALALIGNMENT_UNLOCKCENTER can be combined with any option but cannot be configured by itself.

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

DirectManipulation.h

IDL

DirectManipulation.idl

IID

IID_IDirectManipulationPrimaryContent is defined as C12851E4-1698-4625-B9B1-7CA3EC18630B

See also

IDirectManipulationPrimaryContent

 

 

Community Additions

ADD
Show:
© 2014 Microsoft