Click or drag to resize
CanvasSvgNamedElementSetIdAttribute Method
[Win10_15063] Sets an ID attribute.

Namespace:  Microsoft.Graphics.Canvas.Svg
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public void SetIdAttribute(
	string attributeName,
	string attributeValue
)

Parameters

attributeName
Type: SystemString
attributeValue
Type: SystemString
Remarks

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

When setting an ID attribute using this method, the serialized SVG will look identical to that using SetStringAttribute, but the syntax is more convenient for attributes which reference that ID. In particular, there is no need to use "#" or other operators when specifying an ID using this method. However, this method can only be used for attributes which are compatible with IDs.
See Also