C# Sample code for generating VSDX documents. Use this code for creating VSDX files within VB.NET, Asp.NET or any .NET based application.... Add text in the page. Use Save method...= diagram.Pages[ 0 ]; // Add Text shape. Shape shape = page.AddText(...