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

Aligning Visio shape text to the top and to the left using Powershell

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

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

试试这个代码

$squareshape.cells('VerticalAlign') = 0

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