ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.DirectWrite Namespace / TextLayout Class / GetLineMetrics Method / GetLineMetrics() Method

In This Topic
    GetLineMetrics() Method
    In This Topic
    Retrieves the information about each individual text line of the text string.
    Syntax
    'Declaration
     
    Public Overloads Function GetLineMetrics() As LineMetrics()
    public LineMetrics[] GetLineMetrics()

    Return Value

    If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
    Remarks
    If maxLineCount is not large enough E_NOT_SUFFICIENT_BUFFER, which is equivalent to HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), is returned and *actualLineCount is set to the number of lines needed.
    See Also