IDWriteTextLayout::Draw calls this function to instruct the client to draw a strikethrough.
'Declaration
Public Overridable Function DrawStrikethrough( _
ByVal As System.Object, _
ByVal As System.Single, _
ByVal As System.Single, _
ByRef As Strikethrough, _
ByVal As System.IntPtr _
) As HResult
public virtual HResult DrawStrikethrough(
System.object ,
System.float ,
System.float ,
ref Strikethrough ,
System.IntPtr
)
Parameters
- clientDrawingContext
- The application-defined drawing context passed to IDWriteTextLayout::Draw.
- baselineOriginX
- The pixel location (X-coordinate) at the baseline origin of the run where strikethrough applies.
- baselineOriginY
- The pixel location (Y-coordinate) at the baseline origin of the run where strikethrough applies.
- strikethrough
- Pointer to a structure containing strikethrough logical information.
- clientDrawingEffectPtr
- Application-defined effect to apply to the strikethrough. Usually this argument represents effects such as the foreground brush filling the interior of a line.
Return Value
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.