共用方式為


ParagraphFormat.LineRuleWithin (PowerPoint)

會判斷基準行之間的行距是設定為特定的點數或行數。 讀取/寫入。

語法

expressionLineRuleWithin

一個代表 ParagraphFormat 物件的變數。

傳回值

MsoTriState

註解

LineRuleWithin 屬性的值可以是下列其中一個 MsoTriState 常數。

常數 描述
msoFalse 基準行之間的行距已設定為特定的點數。
msoTrue 基準行之間的行距已設定為特定的行數。

範例

本範例會顯示一個訊息方塊,其中顯示作用中的簡報第一張投影片上第二個圖案中文字的行距設定。

With Application.ActivePresentation.Slides(1).Shapes(2).TextFrame

    With .TextRange.ParagraphFormat

        ls = .SpaceWithin

        If .LineRuleWithin Then

            lsUnits = " lines"

        Else

            lsUnits = " points"

        End If

    End With

End With

MsgBox "Current line spacing: " & ls & lsUnits

另請參閱

ParagraphFormat 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應