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.1.0)

Syntax

C#
public static GlyphRun CreateGlyphRun(
	Glyphs glyphs,
	FrameworkElement relativeTo
)
Visual Basic
Public Shared Function CreateGlyphRun ( _
	glyphs As Glyphs, _
	relativeTo As FrameworkElement _
) As GlyphRun
Visual C++
public:
static GlyphRun^ CreateGlyphRun(
	Glyphs^ glyphs, 
	FrameworkElement^ relativeTo
)

Parameters

glyphs
Type: System.Windows.Documents..::..Glyphs
The glyphs.
relativeTo
Type: System.Windows..::..FrameworkElement
The relative to.

Return Value

The created GlyphRun.

Remarks

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

See Also