Drawing3d documented Class Library

FeaturesW32.GetTextMetrics Method

Gets the Matrixs of a font

[Visual Basic]
<PreserveSig> _
<DllImport(EntryPoint:="GetTextMetrics", CharSet:=CharSet.None, SetLastError:=False, ExactSpelling:=False, PreserveSig:=True, CallingConvention:=CallingConvention.Winapi, BestFitMapping:=False, ThrowOnUnmappableChar:=False, Value:="gdi32")> _
Public Shared Sub GetTextMetrics( _
   ByVal hDC As IntPtr, _
   ByRef lpMetrics As TEXTMETRIC _
)
[C#]
[PreserveSig]
[DllImport(EntryPoint="GetTextMetrics", CharSet=CharSet.None, SetLastError=False, ExactSpelling=False, PreserveSig=True, CallingConvention=CallingConvention.Winapi, BestFitMapping=False, ThrowOnUnmappableChar=False, Value="gdi32")]
public static int GetTextMetrics(
   IntPtr hDC,
   ref TEXTMETRIC lpMetrics
);

Parameters

hDC
Dc who has a font
lpMetrics
Metrics FeaturesW32.TEXTMETRIC

Return Value

See Also

FeaturesW32 Class | Drawing3d.OS.Windows Namespace