Skip to main content
All docs
V23.2

SvgImageItem.Text Property

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.v23.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

Declaration

public string Text { get; set; }

Property Value

Type Description
String

The item’s text.

Remarks

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