xlwings是否支持“自动换行"?财产? [英] Does xlwings support "Wrap Text" property?

查看:489
本文介绍了xlwings是否支持“自动换行"?财产?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用Python + xlwings控制单元格的自动换行"属性吗?

Can I control the "Wrap Text" property of a cell using Python+xlwings?

推荐答案

当前尚未实现,但我已经打开了功能请求此处.同时,您始终可以通过以下方法来解决:访问Windows上的基础COM对象:Range('A1').xl_range.WrapText = True或Mac上的appscript对象:Range('A1').xl_range.wrap_text.set(True).

It's currently not implemented but I've opened a feature request here. In the meantime, you can always work around by accessing the underlying COM object on Windows: Range('A1').xl_range.WrapText = True or appscript object on Mac: Range('A1').xl_range.wrap_text.set(True).

这篇关于xlwings是否支持“自动换行"?财产?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆