/// <summary> /// Найти таблицы в фигуре /// </summary> public static IEnumerable <Table> GetTablesFromShapes(Shapes shapes) => shapes.ToEnumerable(). Where(shape => shape.AutoShapeType != MsoAutoShapeType.msoShapeMixed). SelectMany(shape => shape.TextFrame.ContainingRange.Tables.ToEnumerable());