[]
IDWriteTextLayout::Draw calls this function to instruct the client to render a run of glyphs.
public override HResult DrawGlyphRun(object clientDrawingContext, float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun glyphRun, GlyphRunDescription glyphRunDescription, IntPtr clientDrawingEffectPtr)
Public Overrides Function DrawGlyphRun(clientDrawingContext As Object, baselineOriginX As Single, baselineOriginY As Single, measuringMode As MeasuringMode, glyphRun As GlyphRun, glyphRunDescription As GlyphRunDescription, clientDrawingEffectPtr As IntPtr) As HResult
| Type | Name | Description |
|---|---|---|
| object | clientDrawingContext | |
| float | baselineOriginX | |
| float | baselineOriginY | |
| MeasuringMode | measuringMode | |
| GlyphRun | glyphRun | |
| GlyphRunDescription | glyphRunDescription | |
| IntPtr | clientDrawingEffectPtr |
| Type | Description |
|---|---|
| HResult |
IDWriteTextLayout::Draw calls this function to instruct the client to render a run of glyphs.
public virtual HResult DrawGlyphRun(object clientDrawingContext, float baselineOriginX, float baselineOriginY, GlyphOrientationAngle orientationAngle, MeasuringMode measuringMode, GlyphRun glyphRun, GlyphRunDescription glyphRunDescription, IntPtr clientDrawingEffectPtr)
Public Overridable Function DrawGlyphRun(clientDrawingContext As Object, baselineOriginX As Single, baselineOriginY As Single, orientationAngle As GlyphOrientationAngle, measuringMode As MeasuringMode, glyphRun As GlyphRun, glyphRunDescription As GlyphRunDescription, clientDrawingEffectPtr As IntPtr) As HResult
| Type | Name | Description |
|---|---|---|
| object | clientDrawingContext | The application-defined drawing context passed to Draw(object, TextRenderer, float, float). |
| float | baselineOriginX | The pixel location (X-coordinate) at the baseline origin of the glyph run. |
| float | baselineOriginY | The pixel location (Y-coordinate) at the baseline origin of the glyph run. |
| GlyphOrientationAngle | orientationAngle | Orientation of the glyph run. |
| MeasuringMode | measuringMode | The measuring method for glyphs in the run, used with the other properties to determine the rendering mode. |
| GlyphRun | glyphRun | Pointer to the glyph run instance to render. |
| GlyphRunDescription | glyphRunDescription | A pointer to the optional glyph run description instance which contains properties of the characters associated with this run. |
| IntPtr | clientDrawingEffectPtr | Application-defined drawing effects for the glyphs to render. Usually this argument represents effects such as the foreground brush filling the interior of text. |
| Type | Description |
|---|---|
| HResult | If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. |