Gdi32GetTextMetricsW(SafeHandle, TextMetricW) Method
Fills the specified buffer with the metrics for the currently selected font.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("GDI32.dll", CharSet = CharSet.Unicode)]
public static bool GetTextMetricsW(
SafeHandle hdc,
ref TextMetricW refMetrics
)
<DllImportAttribute("GDI32.dll", CharSet := CharSet.Unicode>]
Public Shared Function GetTextMetricsW (
hdc As SafeHandle,
ByRef refMetrics As TextMetricW
) As Boolean
Dim hdc As SafeHandle
Dim refMetrics As TextMetricW
Dim returnValue As Boolean
returnValue = Gdi32.GetTextMetricsW(hdc,
refMetrics)
public:
[DllImportAttribute(L"GDI32.dll", CharSet = CharSet::Unicode)]
static bool GetTextMetricsW(
SafeHandle^ hdc,
TextMetricW% refMetrics
)
[<DllImportAttribute("GDI32.dll", CharSet = CharSet.Unicode)>]
static member GetTextMetricsW :
hdc : SafeHandle *
refMetrics : TextMetricW byref -> bool
No code example is currently available or this language may not be supported.
- hdc SafeHandle
-
A handle To a DC (Device Context).
- refMetrics TextMetricW
-
A pointer to the TextMetricW structure that receives the text metrics.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.