Base class for slide objects, including masters, layouts and notes.
| 37 | |
| 38 | |
| 39 | class _BaseSlide(PartElementProxy): |
| 40 | """Base class for slide objects, including masters, layouts and notes.""" |
| 41 | |
| 42 | _element: CT_Slide |
| 43 | |
| 44 | @lazyproperty |
| 45 | def background(self) -> _Background: |
| 46 | """|_Background| object providing slide background properties. |
| 47 | |
| 48 | This property returns a |_Background| object whether or not the |
| 49 | slide, master, or layout has an explicitly defined background. |
| 50 | |
| 51 | The same |_Background| object is returned on every call for the same |
| 52 | slide object. |
| 53 | """ |
| 54 | return _Background(self._element.cSld) |
| 55 | |
| 56 | @property |
| 57 | def name(self) -> str: |
| 58 | """String representing the internal name of this slide. |
| 59 | |
| 60 | Returns an empty string (`''`) if no name is assigned. Assigning an empty string or |None| |
| 61 | to this property causes any name to be removed. |
| 62 | """ |
| 63 | return self._element.cSld.name |
| 64 | |
| 65 | @name.setter |
| 66 | def name(self, value: str | None): |
| 67 | new_value = "" if value is None else value |
| 68 | self._element.cSld.name = new_value |
| 69 | |
| 70 | |
| 71 | class _BaseMaster(_BaseSlide): |
no outgoing calls
searching dependent graphs…