Gdi32GetTextMetricsA(SafeHandle, TextMetricA) 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.Ansi)]
public static bool GetTextMetricsA(
SafeHandle hdc,
ref TextMetricA refMetrics
)
<DllImportAttribute("GDI32.dll", CharSet := CharSet.Ansi>]
Public Shared Function GetTextMetricsA (
hdc As SafeHandle,
ByRef refMetrics As TextMetricA
) As Boolean
Dim hdc As SafeHandle
Dim refMetrics As TextMetricA
Dim returnValue As Boolean
returnValue = Gdi32.GetTextMetricsA(hdc,
refMetrics)
public:
[DllImportAttribute(L"GDI32.dll", CharSet = CharSet::Ansi)]
static bool GetTextMetricsA(
SafeHandle^ hdc,
TextMetricA% refMetrics
)
[<DllImportAttribute("GDI32.dll", CharSet = CharSet.Ansi)>]
static member GetTextMetricsA :
hdc : SafeHandle *
refMetrics : TextMetricA 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 TextMetricA
-
A pointer to the TextMetricA structure that receives the text metrics.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.