使用Powershell将Visio形状文本对齐到顶部和左侧

时间:2017-06-25 15:58:35

标签: powershell visio

我遇到下面第二行的问题。如何使用PowerShell对齐形状文本?

$squareshape.text = "abc";
$squareshape.align.top;

1 个答案:

答案 0 :(得分:0)

试试这段代码

  

$ squareshape.cells('VerticalAlign')= 0

     

$ squareshape.cells('Para.HorzAlign')= 0