Share via


IDWriteTextLayout::SetDrawingEffect Method

Sets the application-defined drawing effect.

Syntax

virtual HRESULT SetDrawingEffect(
  IUnknown * drawingEffect,
  DWRITE_TEXT_RANGE  textRange
) = 0;

Parameter

  • drawingEffect
    Application-defined drawing effects that apply to the range. This data object will be passed back to the application's drawing callbacks for final rendering.

  • textRange
    The text range to which this change applies.

Rückgabewert

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

Hinweise

An ID2D1Brush, such as a color or gradient brush, can be set as a drawing effect if you are using the ID2D1RenderTarget::DrawTextLayout to draw text and that brush will be used to draw the specified range of text.

This drawing effect is associated with the specified range and will be passed back to the application by way of the callback when the range is drawn at drawing time.

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

IDWriteTextLayout