GlyphHelperCreateGlyphRun Method (Glyphs, FrameworkElement)Document Toolkit Help
Creates a GlyphRun instance for specified Glyphs element. The glyphs bounds are calculated relative to the specified framework element.

Namespace: FirstFloor.Documents.Fonts
Assembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.11.0)
Syntax

public static GlyphRun CreateGlyphRun(
	Glyphs glyphs,
	FrameworkElement relativeTo
)

Parameters

glyphs
Type: System.Windows.DocumentsGlyphs
The glyphs.
relativeTo
Type: System.WindowsFrameworkElement
The relative to.

Return Value

Type: GlyphRun
The created GlyphRun.
Remarks

This method only works when the associated font uri references a resource in an assembly.

See Also

Reference