ChartFont Size 屬性 (PowerPoint)ChartFont.Size property (PowerPoint)

會傳回或設定字型的大小。Returns or sets the size of the font. 可讀寫的 VariantRead/write Variant.



_運算式_代表 'ChartFont' 物件的變數。expression A variable that represents a 'ChartFont' object.



[!注意事項] 雖然下列程式碼適用於 Microsoft Word,但是您可以輕易對其進行修改以套用至 PowerPoint。Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

下列範例會將使用中文件內第一張圖表之標題的字型大小設為 12 點。The following example sets the font size for the title of the first chart in the active document to 12 points.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        .Chart.Title.Characters.Font.Size = 12

    End If

End With

另請參閱See also

ChartFont 物件ChartFont Object

支援和意見反應Support and feedback

有關於 Office VBA 或這份文件的問題或意見反應嗎?Have questions or feedback about Office VBA or this documentation? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.