Swimlanes

A Swimlanes object is attached to a diagram's SwimlaneDef object and provides a mechanism to access individual swimlanes.

Swimlanes Attributes

Attribute

Type

Notes

Count

Long

Read/Write. Gives the number of swimlanes.

ObjectType

ObjectType

Read only. Distinguishes objects referenced through a Dispatch interface.

Swimlanes Methods

Method

Type

Notes

Add (string Title, long Width)

Swimlane

Adds a new swimlane to the end of the list. Returns a swimlane object representing the newly added entry.

Parameters:

  • Title: String - The title text that appears at the top of the swimlane. Can be the same as an existing swimlane title.
  • Width: Long - The width of the swimlane in pixels.

Delete (object Index)

Void

Deletes a selected swimlane.

If the string matches more than one entry, only the first entry is deleted.

Parameter:

  • Index: Object - Either a string representing the title text or an integer representing the zero-based index of the swimlane to delete.

DeleteAll ()

Void

Removes all swimlanes.

Insert (long Index, string Title, long Width)

Swimlane

Inserts a swimlane at a specific position.Returns a swimlane object representing the newly added entry.

Parameters:

  • Index: Long - The zero-based index of the existing Swimlane before which this new entry is inserted.
  • Title: String - The title text which appears at the top of the swimlane. Can be the same as an existing swimlane title.
  • Width: Long - The width of the swimlane in pixels.

Items (object Index)

Swimlane collection

Accesses an individual swimlane.

If the string matches more than one swimlane title, the first matching swimlane is returned.

Parameter:

  • Index: Object - Either a string representing the title text or an integer representing the zero-based index of the swimlane to get.