TextFrame.ColumnSpacing-Eigenschaft (Publisher)

Zurückgeben oder Festlegen einer Variant, der den Abstand zwischen den Textspalten darstellt. Lese-/Schreibzugriff.

Syntax

Ausdruck. ColumnSpacing

Ausdruck Eine Variable, die ein TextFrame-Objekt darstellt.

Rückgabewert

Variant

Bemerkungen

Spacing measures from the end of the text to the end of the column and again from the beginning of the column to the beginning of the text.

Thus, if you enter a ColumnSpacing amount of 0.5 inch, the total spacing between columns is one inch: 0.5 inch measuring from the end of the text to the end of the column in one column, plus 0.5 inch measuring from the beginning of the column to the beginning of the text in a neighboring column.

Beispiel

In diesem Beispiel wird das erste Textfeld in der aktiven Publikation mit drei Spalten und einem Gesamtabstand von 0,5 Zoll zwischen den Spalten formatiert.

Sub SetColumnsAndSpacing() 
 With ActiveDocument.Pages(1).Shapes(1).TextFrame 
 .Columns = 3 
 .ColumnSpacing = InchesToPoints(0.25) 
 End With 
End Sub

Support und Feedback

Haben Sie Fragen oder Feedback zu Office VBA oder zu dieser Dokumentation? Unter Office VBA-Support und Feedback finden Sie Hilfestellung zu den Möglichkeiten, wie Sie Support erhalten und Feedback abgeben können.