InDesign Server2025
API 20.5.0.49
Collection of GraphicLine

GraphicLines

A collection of graphic lines.

Properties

NameType AccessDescription
Number readonly The number of objects in the collection.

Methods

GraphicLine

Returns the GraphicLine with the specified index.

index Number The index.
GraphicLine

Creates a new GraphicLine

layer? Layer The layer on which to create the GraphicLine.
at? LocationOptions The location at which to insert the GraphicLine relative to the reference object or within the container object.
reference? Document | Layer | MasterSpread | Page | Spread | PageItem The reference object. Note: Required when the at parameter is before or after. Can accept: Document, Spread, MasterSpread, Page, Layer or PageItem.
withProperties? Object Initial values for properties of the new GraphicLine
GraphicLine

Returns any GraphicLine in the collection.

Number

Displays the number of elements in the GraphicLine.

GraphicLine[]

Returns every GraphicLine in the collection.

GraphicLine

Returns the first GraphicLine in the collection.

GraphicLine

Returns the GraphicLine with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
GraphicLine

Returns the GraphicLine with the specified ID.

id Number The ID.
GraphicLine

Returns the GraphicLine with the specified name.

name String The name.
GraphicLine[]

Returns the GraphicLines within the specified range.

from GraphicLine | LongInteger | String The GraphicLine, index, or name at the beginning of the range. Can accept: GraphicLine, Long Integer or String.
to GraphicLine | LongInteger | String The GraphicLine, index, or name at the end of the range. Can accept: GraphicLine, Long Integer or String.
GraphicLine

Returns the last GraphicLine in the collection.

GraphicLine

Returns the middle GraphicLine in the collection.

GraphicLine

Returns the GraphicLine whose index follows the specified GraphicLine in the collection.

obj GraphicLine The GraphicLine whose index comes before the desired GraphicLine.
GraphicLine

Returns the GraphicLine with the index previous to the specified index.

obj GraphicLine The index of the GraphicLine that follows the desired GraphicLine.
String

Generates a string which, if executed, will return the GraphicLine.

Object of 37

Properties elsewhere that hold a GraphicLines.