// This code example demonstrates how to add text to SVG. var document = new SVGDocument(); // Get root svg element of the document var svgElement = document.RootElement; const string @namespace = "http://www.w3.org/2000/svg"; // Define SVG Text element var text = (SVGTextElement)document.CreateElementNS(@namespace, "text"); // Define text to show text.TextContent = "The is a simple SVG text!"; // Set various attributes text.SetAttribute("fill", "blue"); text.SetAttribute("x", "10"); text.SetAttribute("y", "30"); // Append text to the root svgElement.AppendChild(text); // Save as SVG document.Save(@"C:\Files\simple-text.svg");