public ICharacterProperties getCharacterProperties(int begin, int length) {
try {
ITextCursor cursor = textAdaptee.getTextCursorService()
.getTextCursor();
cursor.gotoStart(false);
cursor.goRight((short) begin, false);
cursor.goRight((short) length, true);
return cursor.getCharacterProperties();
} catch (TextException e) {
// TODO Auto-generated catch block
e.printStackTrace();