[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.TextLayout.GetDrawingEffect

GetDrawingEffect Method

GetDrawingEffect(int)

Gets the application-defined drawing effect at the specified text position.

Declaration
public IntPtr GetDrawingEffect(int currentPosition)
Public Function GetDrawingEffect(currentPosition As Integer) As IntPtr
Parameters
Type Name Description
int currentPosition

The position of the text whose drawing effect is to be retrieved.

Returns
Type Description
IntPtr

a reference to the current application-defined drawing effect. Usually this effect is a foreground brush that is used in glyph drawing.

GetDrawingEffect(int, out TextRange)

HRESULT IDWriteTextLayout::GetDrawingEffect([In] unsigned int currentPosition,[Out] void** drawingEffect,[Out, Optional] DWRITE_TEXT_RANGE* textRange)

Declaration
public IntPtr GetDrawingEffect(int currentPosition, out TextRange textRange)
Public Function GetDrawingEffect(currentPosition As Integer, ByRef textRange As TextRange) As IntPtr
Parameters
Type Name Description
int currentPosition
TextRange textRange
Returns
Type Description
IntPtr