windowsforms-devexpress-dot-xtraeditors-dot-svgimageitem-6efc16d1.md
Gets or sets the item’s text. This property is supported for items that only have text content in the source SVG file.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
public string Text { get; set; }
Public Property Text As String
| Type | Description |
|---|---|
| String |
The item’s text.
|
Items that only have text content are called simple text items. You can use the SvgImageItem.Text property to read and change text for these items. See the SvgImageItem.IsSimpleTextItem property to check whether an item is a simple text item.
It’s not possible to read and change text for items that are not simple text items. The SvgImageItem.Text property returns null in this case.
Consider the following fragment of an SVG file:
<text>
abc
<tspan>simple text</tspan>
</text>
The tspan element is considered a simple text item (it only displays a text string), while the text element is not. You can use the SvgImageItem.Text property to read and change text only for the tspan element.
See Also