'Declaration Public Overridable Function DrawUnderline( _ ByVal clientDrawingContext As System.Object, _ ByVal baselineOriginX As System.Single, _ ByVal baselineOriginY As System.Single, _ ByRef underline As Underline, _ ByVal clientDrawingEffectPtr As System.IntPtr _ ) As HResult
public virtual HResult DrawUnderline( System.object clientDrawingContext, System.float baselineOriginX, System.float baselineOriginY, ref Underline underline, System.IntPtr clientDrawingEffectPtr )
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 underline applies.
- baselineOriginY
- The pixel location (Y-coordinate) at the baseline origin of the run where underline applies.
- underline
- Pointer to a structure containing underline logical information.
- clientDrawingEffectPtr
- Application-defined effect to apply to the underline. 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.