public void modifyFormatRun(short oldPos, short newLen) {int shift = 0;for(int i=0; i < _formats.length; i++) {CTFormat ctf = _formats[i];if (shift != 0) {ctf.setOffset(ctf.getOffset() + shift);} else if (oldPos == ctf.getOffset() && i < _formats.length - 1){CTFormat nextCTF = _formats[i + 1];shift = newLen - (nextCTF.getOffset() - ctf.getOffset());}}}

public void ModifyFormatRun(short oldPos, short newLen){short shift = (short)0;for (int idx = 0; idx < m_formats.Count; idx++){CTFormat ctf = (CTFormat)m_formats[idx];if (shift != 0){ctf.Offset = ((short)(ctf.Offset + shift));}else if ((oldPos == ctf.Offset) && (idx < (m_formats.Count - 1))){CTFormat nextCTF = (CTFormat)m_formats[idx + 1];shift = (short)(newLen - (nextCTF.Offset - ctf.Offset));}}}
