powershell - powershell 将 viso 容器设置为自动调整内容
问题描述
任何人都可以帮我在 viso 中设置容器自动适合内容。
为了便于理解,请看下图
我试过用marco记录这个动作看命令
Application.ActiveWindow.Selection.SetContainerFormat visContainerFormatFitToContents
但我不知道如何通过 powershell 运行它
我试过了
$pages.selection.SetContainerFormat =2
但有错误
The property 'SetContainerFormat' cannot be found on this object. Verify that the property exists and can be set.
At line:19 char:1
+ $pages.selection.SetContainerFormat =2
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
解决方案
这段代码是工作
$viso.ActiveWindow.Selection.SetContainerFormat(2)
推荐阅读
- apache-kafka - 将 apache kafka 与 Spring Cloud netflix 堆栈一起使用
- nuget - 我可以忽略这个关于没有 API KEY 的 nuget 警告吗?
- c# - 在 Unity 中执行长时间任务以不影响帧速率的正确方法
- php - 在 Woocommerce 中更改“新订单”电子邮件的回复标题
- ios - 2个collectionView在同一个ViewController,但是只有一个可以执行segue
- r - 只保留语料库中包含特定关键词的句子(在 R 中)
- html - 如何在没有标签重叠的情况下在换行符上插入段落标签?
- r - 如何在弹出模式(用户操作)中从 DT 获取选定的行
- java - Selenium WebDrivder ebDriverException:未知错误:元素
- sql - 需要根据 SQL Server 中的日期条件计算某些行