Center a shape vertically on the slide using the presentation's slide height. :param prs: The Presentation object (which holds slide_height). :param shape: The shape to center.
(prs, shape)
| 1692 | shape.left = new_left |
| 1693 | |
| 1694 | def center_shape_vertically(prs, shape): |
| 1695 | """ |
| 1696 | Center a shape vertically on the slide using the presentation's slide height. |
| 1697 | |
| 1698 | :param prs: The Presentation object (which holds slide_height). |
| 1699 | :param shape: The shape to center. |
| 1700 | """ |
| 1701 | new_top = (prs.slide_height - shape.height) // 2 |
| 1702 | shape.top = new_top |
| 1703 | |
| 1704 | def set_shape_text(shape, text, clear_first=True): |
| 1705 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected