Freigeben über


IDWriteTextFormat::GetLineSpacing Method

Gets the line spacing adjustment set for a multiline text paragraph.

Syntax

virtual HRESULT GetLineSpacing(
  [out]  DWRITE_LINE_SPACING_METHOD * lineSpacingMethod,
  [out]  FLOAT * lineSpacing,
  [out]  FLOAT * baseline
) = 0;

Parameter

  • lineSpacingMethod [out]
    A value that indicates how line height is determined.

  • lineSpacing [out]
    When this method returns, contains the line height, or distance between one baseline to another.

  • baseline [out]
    When this method returns, contains the distance from top of line to baseline. A reasonable ratio to lineSpacing is 80 percent.

Rückgabewert

Ist Methode erfolgreich, wird "S_OK" zurückgegeben. Andernfalls wird ein HRESULT-Fehlercode zurückgegeben.

Anforderungen

Mindestens unterstützter Client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista

Mindestens unterstützter Server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008

Header

Dwrite.h

Bibliothek

Dwrite.lib

DLL

Dwrite.dll

Siehe auch

IDWriteTextFormat