ReSharper API for Visual Studio project model resides in JetBrains.ReSharper.ProjectModel namespace.
All read access to project model should be done under read lock.
ReSharper works with text of files through
JetBrains.ReSharper.Editor.IDocument interface. This interface provides methods for reading and modifying text, and events that you can subscribe to if you want to listen to document changes.
You can also create document directly from text. Use
JetBrains.ReSharper.Editor.DocumentFactory to do so. This document will not be associeated with any project file.
Modifying documents and project model
JetBrains.ReSharper.ProjectModel.dll – Project Model APIs
JetBrains.ReSharper.DocumentModel.dll – IDocument and DocumentFactory
JetBrains.ReSharper.DocumentManager.dll – DocumentManager, linking project model and document model
Samples and power toys