Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2005

Tip: Looking for answers? Try searching our database.

Finding parents dimensions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeremy - 23 Jun 2005 00:14 GMT
Hi all,

I have a paragraph or range that I need to know the dimensions of its
container. How can I do this? .. I know I can get "range.parent" ..but then
what? ..
Please, advice

Jeremy
Klaus Linke - 23 Jun 2005 19:29 GMT
Hi Jeremy,

Range.Parent doesn't give you the (immediate) container, it gives you the document.

The container would be the story range, and there's no direct method to get its height and width.

Text boxes would probably be the simplest case.
For the main document story, you could calculate the height and width from the (document's/section's) page size and margins.
For the headers and footers, it would work similar.

For footnotes, the width would be equal to the width of the text area, but the height will only be calculated on the fly (as needed).
And for comments, it would depend on how you display them (comment area below the text or comment balloons).

Regards,
Klaus

> Hi all,
>
[quoted text clipped - 4 lines]
>
> Jeremy
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.