TextFrame2.Ruler 屬性 (Office)TextFrame2.Ruler property (Office)

會傳回代表指定之文字的尺規 Ruler2 物件。Returns a Ruler2 object that represents the ruler for the specified text. 唯讀。Read-only.



_運算式_會傳回**TextFrame2** 物件的運算式。expression An expression that returns a TextFrame2 object.


下列程式碼會顯示如何在作用中簡報的投影片 1 之圖形 1 中,將文字的靠左對齊定位停駐點設定為 2 英吋 (144 點)。The following code shows how to set a left-aligned tab stop at 2 inches (144 points) for the text in shape one on slide one in the active presentation.

Dim pptSlide As Slide 
Set pptSlide = ActivePresentation.Slides(1) 
pptSlide.Shapes(1).TextFrame2.Ruler.TabStops.Add ppTabStopLeft, 144 

請參閱See also

支援和意見反應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.