CanvasSvgNamedElementSetIdAttribute Method |
Namespace: Microsoft.Graphics.Canvas.Svg
public void SetIdAttribute( string attributeName, string attributeValue )
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.