operator [] method

TextFragment operator [](
  1. int index
)

Implementation

TextFragment operator [](int index) {
  return _fragments[index];
}