Skip to content
本页内容

NormalizedHeight (属性)

如果指定艺术字中所有字符(无论大小写)均为同一高度,则该属性值为 msoTrueMsoTriState 类型,可读写。

说明

MsoTriState可以是下列 MsoTriState 常量之一。
msoCTrue
msoFalse
msoTriStateMixed
msoTriStateToggle
msoTrue指定艺术字中的所有字符(无论大小写)均为同一高度。

示例

python
#本示例将包含文本“Test Effect”的艺术字添加到第一张工作表,并为新的艺术字命名为 texteff1。然后,该代码使名为 texteff1 的形状中的所有字符的高度相同
def test():
    worksheet = Application.Worksheets.Item(1)
    worksheet.Shapes.AddTextEffect(msoTextEffect1, "Test Effect", "Courier New", 44, True, False, 10, 10).Name = "texteff1"
    worksheet.Shapes.Item("texteff1").TextEffect.NormalizedHeight = msoTrue
python
#此示例显示活动工作表的第二个艺术字的所有字符是否为同一高度
def test():
    shape = ActiveSheet.Shapes.Item(2)
    print(shape.TextEffect.NormalizedHeight == msoTrue)