<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Setting table cell heights in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/setting-table-cell-heights/m-p/13320766#M909</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15685177"&gt;@Hedge36&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps you should post your code to give people a better chance of determining your issue.&lt;/P&gt;&lt;P&gt;. . . preferably something compilable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 15 Feb 2025 06:22:03 GMT</pubDate>
    <dc:creator>kerry_w_brown</dc:creator>
    <dc:date>2025-02-15T06:22:03Z</dc:date>
    <item>
      <title>Setting table cell heights</title>
      <link>https://forums.autodesk.com/t5/net-forum/setting-table-cell-heights/m-p/13302065#M908</link>
      <description>&lt;P&gt;I believe I've read every available thread on this, but it still evades me.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Situation: the specification is that the table's data row height be 0.25. Cells contain text sized at 0.1563.&amp;nbsp;The default cell vertical margin is .06.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I add a new row to the table (with no content) [table.InsertRows(index, 0.25, 1)], then get properties on any cell in the row, the cell height is 0.3283. That's curious, and I'm wondering if someone can tell me why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I add content to that row, I loop through all the cells and explicitly set cell.Borders.Bottom.Margin and cell.Borders.Top.Margin each to:&lt;BR /&gt;&lt;BR /&gt;rowHeight (0.25) - textHeight (0.1563) / 2 (0.04685 margin, top and bottom)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then loop through all the rows attempting to reinforce the row height:&lt;BR /&gt;&lt;BR /&gt;table.Rows[index].Height = 0.25&lt;BR /&gt;&lt;BR /&gt;This still yields a row where the cell heights are 0.3283. What am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Curiously, if I set the top and bottom margins to 0, the cell heights are correct at 0.25. What I haven't figured out is how this plays against alignment issues.&lt;BR /&gt;&lt;BR /&gt;Pointers appreciated. I think I've gone so far down this rabbit hole that I might be failing to see the glaringly obvious sun.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 19:31:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/setting-table-cell-heights/m-p/13302065#M908</guid>
      <dc:creator>Hedge36</dc:creator>
      <dc:date>2025-02-05T19:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Setting table cell heights</title>
      <link>https://forums.autodesk.com/t5/net-forum/setting-table-cell-heights/m-p/13320766#M909</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15685177"&gt;@Hedge36&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps you should post your code to give people a better chance of determining your issue.&lt;/P&gt;&lt;P&gt;. . . preferably something compilable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2025 06:22:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/setting-table-cell-heights/m-p/13320766#M909</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2025-02-15T06:22:03Z</dc:date>
    </item>
  </channel>
</rss>

