Hello Dave,
Sorry for my delayed response.
So is w:tcW the width after the indents are applied? Because the way
the docs describe it, the gridCol is where all the columns fall to include
every column in every row. And tcW was then the width of however
many columns each cell used up.
Yes, w:tcW is the width after the indents are applied.
So if I have a table like this
| cell 0, 0 is very long | cell 0, 1 |
| cell 1, 0 | cell 1, 1, is very long |
Won't gridCol have 3 columns - so how do I determine the size of each
cell if the paragraphs in the cell are indented?
I did a test with a table like:
| aaaa | bbbb |
| cccc | dddd |
The first two cells in the first row are merged and the last two in the
second row are also merged.
The following is the xml format for the table:
It has three columns defined in w:tblGrid.
<w:gridSpan w:val="2"/> specifies the merge operation.
The size of each cell is still defined in w:tcW w:w. The value equals the
width of merged cells after indention is applied. Therefore, if I
understand your question correctly, we could directly use w:tcW w:w as the
size of each cell. The size of each column could be retrieved from
w:gridCol w:w value.
<w:tbl>
<w:tblPr><w:tblStyle w:val="TableGrid"/><w:tblW w:w="8568"
w:type="dxa"/><w:tblLook w:val="01E0"/></w:tblPr>
<w:tblGrid> // three columns are defined
<w:gridCol w:w="2840"/>
<w:gridCol w:w="2841"/>
<w:gridCol w:w="2887"/>
</w:tblGrid>
<w:tr wsp:rsidR="000924AA" wsp:rsidTr="000924AA"> // here is the first row
<w:tc>
<w:tcPr><w:tcW w:w="5681" w:type="dxa"/>
<w:gridSpan w:val="2"/>
</w:tcPr><w
wsp:rsidR="000924AA" wsp:rsidRDefault="000924AA"
wsp:rsidP="000924AA">
<w
Pr><w:ind w:left-chars="342" w:right-chars="202"/>
<w:rPr><w:rFonts w:hint="fareast"/>
</w:rPr></w
Pr><w:r><w:rPr><w:rFonts w:hint="fareast"/></w:rPr>
<w:t>aaaa</w:t>
</w:r></w
></w:tc>
<w:tc>
<w:tcPr><w:tcW w:w="2887" w:type="dxa"/>
</w:tcPr><w
wsp:rsidR="000924AA" wsp:rsidRDefault="000924AA"
wsp:rsidP="000924AA">
<w
Pr><w:ind w:left-chars="294" w:right-chars="205"/>
<w:rPr><w:rFonts w:hint="fareast"/>
</w:rPr></w
Pr><w:r><w:rPr><w:rFonts w:hint="fareast"/></w:rPr>
<w:t>bbbb</w:t>
</w:r></w
></w:tc>
</w:tr>
<w:tr wsp:rsidR="000924AA" wsp:rsidTr="000924AA"> // here is the second
row
<w:tc>
<w:tcPr><w:tcW w:w="2840" w:type="dxa"/>
</w:tcPr>
<w
wsp:rsidR="000924AA" wsp:rsidRDefault="000924AA"
wsp:rsidP="000924AA">
<w
Pr><w:ind w:left-chars="342" w:right-chars="135"/>
<w:rPr><w:rFonts w:hint="fareast"/>
</w:rPr></w
Pr><w:r><w:rPr><w:rFonts w:hint="fareast"/></w:rPr>
<w:t>cccc</w:t>
</w:r></w
></w:tc>
<w:tc>
<w:tcPr><w:tcW w:w="5728" w:type="dxa"/>
<w:gridSpan w:val="2"/>
</w:tcPr><w
wsp:rsidR="000924AA" wsp:rsidRDefault="000924AA"
wsp:rsidP="000924AA">
<w
Pr><w:ind w:left-chars="361" w:right-chars="205"/>
<w:rPr><w:rFonts w:hint="fareast"/>
</w:rPr></w
Pr><w:r><w:rPr><w:rFonts w:hint="fareast"/></w:rPr>
<w:t>dddd</w:t>
</w:r></w
></w:tc>
</w:tr>
</w:tbl>
If you have any other concern or need anything else, please feel free to
let me know.
Sincerely,
Jialiang Ge (
[email protected], remove 'online.')
Microsoft Online Community Support
=================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from your issue.
=================================================
This posting is provided "AS IS" with no warranties, and confers no rights.