We are using below code and getting exception -
foreach (Shape s in doc.GetChildNodes(NodeType.Shape, true))
{
try
{
// Skip shapes that are textboxes — th…...truncation"); //if shape type is not inline then below setting width will...continue; } s.WrapType = WrapType.Inline; layoutEnumerator.Current =...