Project: SWT
Bug 35589 StyledText - add getStyleRanges(start, offset) API
Reported: 2003-03-24 13:09:43 | Status: resolved fixed

Currently you can get the style range at a particular offset and you can get all style ranges, but there is no API for getting the styles for a particular range of text. While getStyleRanges could be used to ascertain this information, this could be inefficient if your text has a lot of text (i.e., this method creates a copy of all style ranges).

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_StyledText.java