Graphics::GetPageUnit method (gdiplusgraphics.h)

The Graphics::GetPageUnit method gets the unit of measure currently set for this Graphics object.

Syntax

Unit GetPageUnit();

Return value

Type: Unit

This method returns an element of the Unit enumeration that indicates the unit of measure currently set for this Graphics object.

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplusgraphics.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Graphics

Graphics::GetDpiX

Graphics::GetDpiY

Graphics::GetPageScale

Graphics::SetPageScale

Graphics::SetPageUnit

Types of Coordinate Systems

Unit