Share via


ParagraphFormat.SpaceWithin Property

Returns or sets the amount of space between base lines in the specified text, in points or lines. Read/write.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Property SpaceWithin As Single
    Get
    Set
'Usage
Dim instance As ParagraphFormat
Dim value As Single

value = instance.SpaceWithin

instance.SpaceWithin = value
float SpaceWithin { get; set; }

Property Value

Type: System.Single
Single

Examples

This example sets line spacing to 21 points for the text in shape two on slide two in the active presentation.

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

    With .TextFrame.TextRange.ParagraphFormat

        .LineRuleWithin = False

        .SpaceWithin= 21

    End With

End With

See Also

Reference

ParagraphFormat Interface

ParagraphFormat Members

Microsoft.Office.Interop.PowerPoint Namespace