A collection of graphic lines.
Methods
GraphicLineadd ([layer:
Layer][, at:
LocationOptions=UNKNOWN ][, reference:
any][, withProperties:
Object])
Creates a new GraphicLine
| Parameter | Type | Description |
|---|---|---|
| layer | Layer | The layer on which to create the GraphicLine. (Optional) |
| at | LocationOptions : BEFORE AFTER AT_END AT_BEGINNING UNKNOWN |
The location at which to insert the GraphicLine relative to the reference object or within the container object. (Optional) (default: UNKNOWN ) |
| reference | Document Spread MasterSpread Page Layer PageItem |
The reference object. Note: Required when the at parameter is before or after. Can accept: Document, Spread, MasterSpread, Page, Layer or PageItem. (Optional) |
| withProperties | Object | Initial values for properties of the new GraphicLine (Optional) |
GraphicLineanyItem ()
Returns any GraphicLine in the collection.
number count ()
Displays the number of elements in the GraphicLine.
Array of GraphicLineeveryItem ()
Returns every GraphicLine in the collection.
GraphicLinefirstItem ()
Returns the first GraphicLine in the collection.
GraphicLineitem (index:
any)
Returns the GraphicLine with the specified index or name.
| Parameter | Type | Description |
|---|---|---|
| index | Long Integer String |
The index or name. Can accept: Long Integer or String. |
GraphicLineitemByID (id:
number)
Returns the GraphicLine with the specified ID.
| Parameter | Type | Description |
|---|---|---|
| id | number | The ID. |
GraphicLineitemByName (name:
string)
Returns the GraphicLine with the specified name.
| Parameter | Type | Description |
|---|---|---|
| name | string | The name. |
Array of GraphicLineitemByRange (from:
any, to:
any)
Returns the GraphicLines within the specified range.
| Parameter | Type | Description |
|---|---|---|
| from | GraphicLine Long Integer String |
The GraphicLine, index, or name at the beginning of the range. Can accept: GraphicLine, Long Integer or String. |
| to | GraphicLine Long Integer String |
The GraphicLine, index, or name at the end of the range. Can accept: GraphicLine, Long Integer or String. |
GraphicLinelastItem ()
Returns the last GraphicLine in the collection.
GraphicLinemiddleItem ()
Returns the middle GraphicLine in the collection.
GraphicLinenextItem (obj:
GraphicLine)
Returns the GraphicLine whose index follows the specified GraphicLine in the collection.
| Parameter | Type | Description |
|---|---|---|
| obj | GraphicLine | The GraphicLine whose index comes before the desired GraphicLine. |
GraphicLinepreviousItem (obj:
GraphicLine)
Returns the GraphicLine with the index previous to the specified index.
| Parameter | Type | Description |
|---|---|---|
| obj | GraphicLine | The index of the GraphicLine that follows the desired GraphicLine. |
string toSource ()
Generates a string which, if executed, will return the GraphicLine.
Element of:
Button.graphicLines
Cell.graphicLines
Character.graphicLines
Document.graphicLines
Footnote.graphicLines
GraphicLine.graphicLines
Group.graphicLines
InsertionPoint.graphicLines
Layer.graphicLines
Line.graphicLines
MasterSpread.graphicLines
Oval.graphicLines
Page.graphicLines
PageItem.graphicLines
Paragraph.graphicLines
Polygon.graphicLines
Rectangle.graphicLines
Spread.graphicLines
State.graphicLines
Story.graphicLines
Table.graphicLines
Text.graphicLines
TextColumn.graphicLines
TextFrame.graphicLines
TextStyleRange.graphicLines
Word.graphicLines