How to get top item from a collection

Hi Everyone,

I have a collection which has 5 document names and I want to retrieve only top 1 from that collection. Could anyone give hint?

Thanks,
Ulaga

Collection(0).ToString this will return you first Element fo the collection…