Click or drag to resize
GeometrySettingsGeometryTextExport Property
Gets or sets an enum that specifies how text is exported into geometry objects (default value is GlyphRun).

Namespace: Ab2d.Common.ReaderWmf
Assembly: Ab2d.ReaderWmf (in Ab2d.ReaderWmf.dll) Version: 7.1.5512.1040
Syntax
C#
public GeometryTextExportType GeometryTextExport { get; set; }

Property Value

Type: GeometryTextExportType
Remarks

When objects are read as shapes, the text is usually represented with TextBlock elements. When text is read as geometries the text can be represented with GlyphRun.

But using GlyphRun has a big disadvantage when the read drawing is exported into xaml. The only way to set the font that is used by the GlyphRun object is by providing a file path and name to the font file. This makes the exported xaml not very portable to other computers.

To overcome this problem it is possible to set the GeometryTextExport value to PathGeometry. It means that all texts will be converted into PathGeometry and are therefore fully portable to any computer.

It is also possible to skip all texts from the read geometry.

See Also