Picture
- class Picture(impl=None)
The picture object is a member of the
picturescollection:>>> import xlwings as xw >>> sht = xw.books['Book1'].sheets[0] >>> sht.pictures[0] # or sht.charts['PictureName'] <Picture 'Picture 1' in <Sheet [Book1]Sheet1>>
在 0.9.0 版本发生变更.
- property api: Any
Returns the native object (
pywin32orappscriptobj) of the engine being used.在 0.9.0 版本加入.
- property lock_aspect_ratio: bool
Truewill keep the original proportion,Falsewill allow you to change height and width independently of each other (read/write).在 0.24.0 版本加入.
- property parent: Sheet
返回图片所属的对象。
在 0.9.0 版本加入.