TRVChatMessageCollection.FindInsertionPlace

<< Click to display table of contents >>

TRVChatMessageCollection.FindInsertionPlace

Returns the index in the collection where a new message should be inserted by GlobalIndex.

function FindInsertionPlace(GlobalIndex: Integer): Integer;

This method is rarely used. It assumes that you are receiving messages from some server that maintains its own message counter, and you may receive messages from it in a different order than they should be displayed. In this case, this method indicates where the new message with the given GlobalIndex should be inserted. It assumes that all previously added messages are sorted in ascending order by the GlobalIndex property.

See also:

FindByGlobalIndex, FindItemByGlobalIndex