Word 2010 VSTO间距字体属性 - 它是否可用于API?

时间:2012-02-16 14:26:30

标签: vsto

是否可以在VSTO中访问此选项:

Right click on paragraph -> Font -> Advanced Tab -> Spacing Option

并改变它?

1 个答案:

答案 0 :(得分:0)

我相信。这些是您可以与之交互的不同参数。

Sub Sample()
    With Selection.Font
        .Name = "+Body"
        .Size = 11
        .Bold = False
        .Italic = False
        .Underline = 0 ' wdUnderlineNone
        .UnderlineColor = -16777216  'wdColorAutomatic
        .StrikeThrough = False
        .DoubleStrikeThrough = False
        .Outline = False
        .Emboss = False
        .Shadow = False
        .Hidden = False
        .SmallCaps = False
        .AllCaps = False
        .Color = -16777216
        .Engrave = False
        .Superscript = False
        .Subscript = False
        .Spacing = -1.1
        .Scaling = 150
        .Position = 4
        .Kerning = 0
        .Animation = 0 'wdAnimationNone
    End With
End Sub