Picture
- class Picture
The picture object is a member of the
picturescollection:>>> import xlwings as xw >>> sheet = xw.books['Book1'].sheets[0] >>> sheet.pictures[0] # or sheet.charts['PictureName'] <Picture 'Picture 1' in 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 版本加入.