Exemplo n.º 1
0
        public List <Shape> GetShapesWithMediaType(PpMediaType type, Regex nameRule)
        {
            List <Shape> shapes         = _slide.Shapes.Cast <Shape>().ToList();
            List <Shape> matchingShapes = shapes.Where(current => current.Type == MsoShapeType.msoMedia &&
                                                       current.MediaType == type &&
                                                       nameRule.IsMatch(current.Name)).ToList();

            return(matchingShapes);
        }
        public List<Shape> GetShapesWithMediaType(PpMediaType type, Regex nameRule)
        {
            List<Shape> shapes = _slide.Shapes.Cast<Shape>().ToList();
            List<Shape> matchingShapes = shapes.Where(current => current.Type == MsoShapeType.msoMedia &&
                                                                 current.MediaType == type &&
                                                                 nameRule.IsMatch(current.Name)).ToList();

            return matchingShapes;
        }