[nvda] Expanding range to enclose format in MS Word
- From: "Michael Curran" <mick@xxxxxxxxxx>
- To: <nvda@xxxxxxxxxxxxx>
- Date: Mon, 20 Nov 2006 10:00:20 +1100
Hi all,
Just wondering if anyone knows how I could expand a range or selection in MS
Word to enclose the current formatting at that position?
As in, ... well, currently in wordpad, and other ITextDocument supported
controls, I can do
rangeObj=self.dom.Selection
rangeObj.Start=rangeObj.End=pos
rangeObj.Expand(tomCharFormat)
return (rangeObj.Start,rangeObj.End)
(self.dom holds an ITextDocument object, and tomCharFormat is a constant
from the ITextDocument definition.
I try to do this in MS Word and it gives me errors... for starters
wdCharFormat doesn't seem to exist... I don't think, tomCharFormat certainly
gives errors.
I am needing this so that NVDA is able to successfully read font and style
changes with in a line that is being spoken. If I check each character on
the line it is way too slow, but in wordpad at least, I am able to jump in
format field incriments at least.
Thanks
Mick
To post messages to the list send email to
nvda@xxxxxxxxxxxxx
To unsubscribe from the list send a blank message to:
nvda-request@xxxxxxxxxxxxx
with 'unsubscribe' in the Subject field.
Thank you for your continued support of NVDA.
Other related posts:
- » [nvda] Expanding range to enclose format in MS Word