返回一个代表字符格式的 Font 对象。只读。
本示例为当前演示文稿第一张幻灯片的第一个形状设置文本格式。
With ActivePresentation.Slides(1).Shapes(1)
With .TextFrame.TextRange.Font
.Size = 48
.Name = "Palatino"
.Bold = True
.Color.RGB = RGB(255, 127, 255)
End With
End With
本示例设置第一张幻灯片第二个形状中项目符号的颜色和字体名称。
With ActivePresentation.Slides(1).Shapes(2)
With .TextFrame.TextRange.ParagraphFormat.Bullet
.Visible = True
With .Font
.Name = "Palatino"
.Color.RGB = RGB(0, 0, 255)
End With
End With
End With