DiagramSerializer.Write Method