Einhugur Word Plugin for Xojo |

# Run.ComplexRunPart Method

Returns Run at given index belonging to a complex Run.

ComplexRunPart(
index as Integer) as EinhugurWord.Run

#### Parameters

index
  Index of the run part to fetch (zero based).

#### Returns

EinhugurWord.Run
  The requested run or OutOfBounds exception is thrown if you asked for run part out of bounds.

#### Remarks

Note that when your on the grouped run then smart logic is used to keep integrity of the document correct. So for example if you change text color of a Date field then text color is set in all 5 runs which the Date field uses. And if you read the Text property in a Date field then it will automatically read from correct Run in the set of 5 runs.
But the runs returned when you ask for the parts are by design “detached”, which means a tinkerer can read details on each run or change something but if you do not know what your doing then setting property on just one run from such set can compromise the document.

#### See Also

Run Class