Method of ITextDocument
Adopts white space in provided text to correspond the document settings
var sTextOut = TextDocument.AdoptWhiteSpace(sTextIn);
sTextOut = TextDocument.AdoptWhiteSpace sTextIn
BSTR sTextOut; HRESULT hr = TextDocument.AdoptWhiteSpace(sTextIn, &sTextOut);