Re: How to check if text wraps in a table cell
- From: "Jean-Guy Marcil" <NoSpam@LeaveMeAlone>
- Date: Fri, 29 Sep 2006 07:57:42 -0400
Jean-Guy Marcil was telling us:
Jean-Guy Marcil nous racontait que :
Jay Freedman was telling us:
Jay Freedman nous racontait que :
On Thu, 28 Sep 2006 21:40:44 -0400, "Jean-Guy Marcil"
<NoSpam@LeaveMeAlone> wrote:
JS was telling us:
JS nous racontait que :
Hi All:
I need to know if existing text in a table's cell is wrapping
(i.e., too long to fit in a cell, this wrapping and doubling the
height of the cell - and entire row of the table). I could not
find a Cell property that tells if a cell wrapped or not - is
this possible? TYA, JS
There is no such property.
You could determine a default height (When there is only one line of
text) and then compare the current height with that value.
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@xxxxxxxxxxxxxxxxxxxxxxx
Word MVP site: http://www.word.mvps.org
It's worse than that: If the row height isn't specified in the Table
Table Properties > Row dialog, then the row's .Height property willreturn a value of 9999999 (which is the constant wdUndefined). If
that happens, the only way remaining is to get the property
.Information(wdVerticalPositionRelativeToPage) for the current row's
range, get the same property for the next row's range, and take the
difference (checking first that they aren't on different pages).
The code for the general case is quite a mess.
Right, had forgotten about that.
In that case, if there aren't any merged cells, we can use this
workaround:
Ooops... forget about that...
I just realized that this always gives the same result, i.e 12 points high,
regardless of the actual cell height.
I thought I could just adapt some code I had for dealing with table width...
but apparently not!
Sorry about that!
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@xxxxxxxxxxxxxxxxxxxxxxx
Word MVP site: http://www.word.mvps.org
.
- Follow-Ups:
- References:
- Re: How to check if text wraps in a table cell
- From: Jean-Guy Marcil
- Re: How to check if text wraps in a table cell
- From: Jay Freedman
- Re: How to check if text wraps in a table cell
- From: Jean-Guy Marcil
- Re: How to check if text wraps in a table cell
- Prev by Date: Re: Option boxes
- Next by Date: Re: Languages
- Previous by thread: Re: How to check if text wraps in a table cell
- Next by thread: Re: How to check if text wraps in a table cell
- Index(es):
Relevant Pages
|