VSTO 2010 Word - Multi Select RRS feed

  • Question

  • I know that in previous version of VSTO there is no ability to select multiple ranges (i.e. Holding CTRL key and selecting ranges which can then be protected/unprotected).

    In VSTO2010 has this become available? I haven't noticed any way to get a collection of Ranges, or have the Selection interface have multiple ranges either.

    If this isn't possible - is it possible to loop through and protect ranges? Or can it only be done via a section? Ideally, I'd like to protect certain area's of a section similar to what is done using the UI tools.




    Monday, August 1, 2011 2:59 PM


  • Hi Leon

    This functionality doesn't come from VSTO, but from Word. And no, nothing has changed in this respect in WORD 2010.

    You can apply "can't edit" protection (without needing sections) to a Word document. This was introduced in version 2003 - I'm not sure which version you're familiar with, so it's a bit difficult to know at what level to discuss this with you...

    Cindy Meister, VSTO/Word MVP
    Tuesday, August 2, 2011 1:12 PM