Click or drag to resize
CanvasSvgTextElement Class
[Win10_15063] Object representing a part of an SVG document which can contain only text.
Inheritance Hierarchy
SystemObject
  Microsoft.Graphics.Canvas.SvgCanvasSvgTextElement

Namespace:  Microsoft.Graphics.Canvas.Svg
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public sealed class CanvasSvgTextElement : IDisposable

The CanvasSvgTextElement type exposes the following members.

Properties
  NameDescription
Public propertyText
[Win10_15063] Gets or sets the text for this element.
Top
Methods
  NameDescription
Public methodDispose
[Win10_15063] Releases all resources used by the CanvasSvgTextElement.
Top
Remarks

This API is only available when running on Windows 10 build 15063 (Creators Update) or greater.

Win2D only permits text elements where they are allowed, according to what constitutes valid SVG. In particular, title and desc elements may contain text, but other types of named elements might not. For more information, see SVG Support
See Also