ParagraphFormat.Bullet.Visible值的错误行为

本文关键字:错误 Bullet Visible ParagraphFormat | 更新日期: 2023-09-27 18:27:43

我有一个值为ParagraphFormat.Bullet.Visible的奇怪行为。我有几个带有项目符号的段落(项目符号看起来像矩形)。因此,当我为所有项目符号调用TextFrame2.TextRange.ParagraphFormat.Bullet.Visible = msoFalse;时,它们会被隐藏,但当我试图使某些项目符号可见TextFrame2.TextRange.ParagraphFormat.Bullet.Visible = msoTrue;时,它会变为可见,视图错误,在我的情况下,项目符号看起来像数字1.对我来说,这看起来像PP2010中的错误,如果我们将Bullet.Visible设置为false,它会重置项目符号设置。

ParagraphFormat.Bullet.Visible值的错误行为

我认为您想要的属性是:

TextFrame2.TextRange.ParagraphFormat.Bullet.Type = ppBulletUnnumbered;

否则,Powerpoint非直观性似乎会将项目符号默认为数字。