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
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