VisualTreeHelper::GetDpi Method (Visual^)

 

Gets the DPI information at which this Visual is measured and rendered.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public:
static DpiScale GetDpi(
	Visual^ visual
)

Parameters

visual
Type: System.Windows.Media::Visual^

The Visual target object.

Return Value

Type: System.Windows::DpiScale

A DPIScale value.

.NET Framework
Available since 4.6.2
Return to top
Show: