title: Selected items on a sharepoint 2010 listitemcollection
body: <p>Is there a way to get just the selected items of a document library from the server side? I was looking for something like this:</p>
  
  <pre><code>SPDocumentLibrary docLib = web.Lists[list.Title] as SPDocumentLibrary;
  SPListItemCollection items = docLib.Items;
  foreach (SPListItem item in items){
    //if (item.Selected)
  }
  </code></pre>