在文本组件中选中指定的起始和结束位置之间的文本内容的方法是( )。

在文本组件中选中指定的起始和结束位置之间的文本内容的方法是( )。
A、String getText()
B、String getSelectedText()
C、String getText(int offs,int len)
D、void select(int selectionStart, int selectionEnd)
【正确答案】:D
【题目解析】:参考教材P201。
掌握对“文本组件”知识点了解。