what's in the word.range?

W

WordPusher

I noticed that when I add a Textbox which is anchored to a range then the
range end is increased by 1. So suppose just before executing .AddTextbox
method the range is Myrange.Start = 0 and Myrange.End 17 and also
Myrange.End - Myrange.Start = len(Myrange.text)

After executing the .AddTextbox method all parameters of Myrange seem to be
unchanged except that Myrange.End = 18 now and
Myrange.End - Myrange.Start is no longer equal to len(Myrange.text)

I realize that the anchoring has to be stored somewhere within the range.
My question is where exactly in the range the anchor is stored? It is not in
Myrange.fields because Myrange.Fields.Count is still zero. The same is true
with InlineShapes, and other parameters I checked in the watch window. So
where? I need to know this so I can check later whether the range length
increase is due to adding a textbox or because of something else.

Thanks for any help
 
W

Word Heretic

G'day "WordPusher" <[email protected]>,

in a binary character used to provide the offset details to the object
definition. This character exists as the first character in the
paragraph so assist in placing it on the screen.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


WordPusher reckoned:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top