#NEWLINE# def collapse( self , start ) : #NEWLINE# #INDENT# '\n        Collapses the range into a cursor, either to the start or end point\n\n        @param start if True, cursor is the start point, otherwise the end point\n        ' #NEWLINE# if ( self . m_range is not None ) : #NEWLINE# #INDENT# collapse ( self . m_range , start ) #NEWLINE# self . m_startPoint = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if start : #NEWLINE# #INDENT# self . m_endPoint = self . m_startPoint #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . m_startPoint = self . m_endPoint