TextFrame2.Ruler Property
Returns a [Ruler2#SameCHM] object that represents the ruler for the specified text. Read-only.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
ReadOnly Property Ruler As Ruler2
Get
'Usage
Dim instance As TextFrame2
Dim value As Ruler2
value = instance.Ruler
Ruler2 Ruler { get; }
Property Value
Type: Microsoft.Office.Core.Ruler2
Ruler2
Examples
This example 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.
Public Sub Ruler_Example()
Dim pptSlide As Slide
Set pptSlide = ActivePresentation.Slides(1)
pptSlide.Shapes(1).TextFrame2.Ruler.TabStops.Add ppTabStopLeft, 144
End Sub