Class Lines (Word VBA)
A collection of Line objects that represents the lines in a Rectangle object that is of type wdTextRectangle. To use a Lines class variable it first needs to be instantiated, for example
For Each
Here is an example of processing the Lines items in a collection.
Dim shp As Rectangle: Set shp =
Dim lin As Line
For Each lin In shp.Lines
With lin
End With
Next lin
Count
Returns a Long that represents the number of lines in the collection.
Dim lns As Lines: Set lns =
Dim lngCount As Long
lngCount = lns.Count
Item
Returns an individual Line object in a collection.
Item (Index)
Index: The individual object to be returned. Can be a Long indicating the ordinal position of the individual object.
Dim lns As Lines: Set lns =
Dim lin As Line
Set lin = lns(Index:=1)