IDirectManipulationContent::GetContentRect method

Retrieves the bounding rectangle of the content, relative to the bounding rectangle of the viewport (if defined).

Syntax


HRESULT GetContentRect(
  [out]  RECT *contentSize
);

Parameters

contentSize [out]

The bounding rectangle of the content.

Return value

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

If the bounding rectangle has not been set using SetContentRect, then UI_E_VALUE_NOT_SET is returned. However, the actual content rectangle is (-FLT_MAX, -FLT_MAX, FLT_MAX, FLT_MAX).

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_IDirectManipulationContent is defined as B89962CB-3D89-442B-BB58-5098FA0F9F16

See also

IDirectManipulationContent

 

 

Community Additions

ADD
Show:
© 2014 Microsoft