<?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: Table cell text bold in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/table-cell-text-bold/m-p/8111184#M25426</link>
    <description>&lt;P&gt;I tried this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;string myString = "BoldText";
acTable.SetTextString(currentRow, currentColumn, 0, "{\\fArial|b1|i0|c0|p34;" + myString + "}");&lt;BR /&gt;//and&lt;BR /&gt;acTable.SetText(currentRow, currentColumn, "{\\fArial|b1|i0|c0|p34;" + myString + "}");&lt;BR /&gt;//and&lt;BR /&gt;acTable.SetCellValue(currentRow, currentColumn, "{\\fArial|b1|i0|c0|p34;" + myString + "}");&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;all&amp;nbsp;give me &lt;STRONG&gt;no&lt;/STRONG&gt; bold text. It's the normal arial font like in all other cells.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jul 2018 12:38:10 GMT</pubDate>
    <dc:creator>stefan.hofer</dc:creator>
    <dc:date>2018-07-05T12:38:10Z</dc:date>
    <item>
      <title>Table cell text bold</title>
      <link>https://forums.autodesk.com/t5/net-forum/table-cell-text-bold/m-p/8110540#M25423</link>
      <description>&lt;P&gt;I have my Table:&lt;/P&gt;&lt;PRE&gt;AcadTable acTable = new AcadTable();
acTable = thisDrawing.PaperSpace.AddTable(insertPoint, rows, columns, defaultRowHeight, defaultColumnWidth);
acTable.SetTextHeight((int)AcRowType.acTitleRow, 3);
acTable.SetTextHeight((int)AcRowType.acHeaderRow, 2);
acTable.SetTextHeight((int)AcRowType.acDataRow, 2);
acTable.SetTextStyle((int)AcRowType.acTitleRow, "Arial");
acTable.SetTextStyle((int)AcRowType.acHeaderRow, "Arial");
acTable.SetTextStyle((int)AcRowType.acDataRow, "Arial");
acTable.RowHeight = defaultRowHeight;
acTable.Layer = "0";&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and can change the text color:&lt;/P&gt;&lt;PRE&gt;acTable.SetCellContentColor(currentRow, currentColumn, (AcadAcCmColor)myColor);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i make the text from a cell or column BOLD ?&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>Thu, 05 Jul 2018 07:39:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/table-cell-text-bold/m-p/8110540#M25423</guid>
      <dc:creator>stefan.hofer</dc:creator>
      <dc:date>2018-07-05T07:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Table cell text bold</title>
      <link>https://forums.autodesk.com/t5/net-forum/table-cell-text-bold/m-p/8111006#M25424</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems to me you're using the COM/ActiveX API, so all available methods for the AcadTable object ar described &lt;A href="https://help.autodesk.com/view/OARX/2019/FRA/?guid=GUID-7B82400C-53D0-4D1A-94FA-66BB3040F0AA" target="_blank"&gt;&amp;gt;&amp;gt;here&amp;lt;&amp;lt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;As far as I know, the only way is to force the mtext using format code (&lt;A href="http://adndevblog.typepad.com/autocad/2017/09/dissecting-mtext-format-codes.html" target="_blank"&gt;see &amp;gt;&amp;gt;here&amp;lt;&amp;lt;&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;acTable.SetTextString(currentRow, currentColumn, 0, "{\\fArial|b1|i0;Your text here);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 11:17:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/table-cell-text-bold/m-p/8111006#M25424</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-07-05T11:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Table cell text bold</title>
      <link>https://forums.autodesk.com/t5/net-forum/table-cell-text-bold/m-p/8111009#M25425</link>
      <description>&lt;P&gt;&lt;FONT face="georgia,palatino" size="4"&gt;Hi, &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino" size="4"&gt;Maybe one solution is to wrap the string with the bold codes like this: &lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;"{\\fArial|b1|i0|c0|p34;" &lt;STRONG&gt;MyString&lt;/STRONG&gt; "}"&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jul 2018 11:18:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/table-cell-text-bold/m-p/8111009#M25425</guid>
      <dc:creator>_Tharwat</dc:creator>
      <dc:date>2018-07-05T11:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Table cell text bold</title>
      <link>https://forums.autodesk.com/t5/net-forum/table-cell-text-bold/m-p/8111184#M25426</link>
      <description>&lt;P&gt;I tried this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;string myString = "BoldText";
acTable.SetTextString(currentRow, currentColumn, 0, "{\\fArial|b1|i0|c0|p34;" + myString + "}");&lt;BR /&gt;//and&lt;BR /&gt;acTable.SetText(currentRow, currentColumn, "{\\fArial|b1|i0|c0|p34;" + myString + "}");&lt;BR /&gt;//and&lt;BR /&gt;acTable.SetCellValue(currentRow, currentColumn, "{\\fArial|b1|i0|c0|p34;" + myString + "}");&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;all&amp;nbsp;give me &lt;STRONG&gt;no&lt;/STRONG&gt; bold text. It's the normal arial font like in all other cells.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 12:38:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/table-cell-text-bold/m-p/8111184#M25426</guid>
      <dc:creator>stefan.hofer</dc:creator>
      <dc:date>2018-07-05T12:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Table cell text bold</title>
      <link>https://forums.autodesk.com/t5/net-forum/table-cell-text-bold/m-p/8111342#M25427</link>
      <description>&lt;P&gt;Forget my last post, it works fine.&lt;/P&gt;&lt;P&gt;I changed the wrong part in my code....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 13:27:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/table-cell-text-bold/m-p/8111342#M25427</guid>
      <dc:creator>stefan.hofer</dc:creator>
      <dc:date>2018-07-05T13:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Table cell text bold</title>
      <link>https://forums.autodesk.com/t5/net-forum/table-cell-text-bold/m-p/8111408#M25428</link>
      <description>&lt;P&gt;This works for me:&lt;/P&gt;
&lt;PRE&gt;string yourString = "NormalText";
acTable.SetTextString(currentRow, currentColumn, 0, yourString);
currentRow++;
yourString = "BoldText";
acTable.SetTextString(currentRow, currentColumn, 0, "{\\fArial|b1|c0;" + yourString + "}");&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bold.png" style="width: 673px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/519722iC98F3E2EC5628CBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="bold.png" alt="bold.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 13:46:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/table-cell-text-bold/m-p/8111408#M25428</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-07-05T13:46:56Z</dc:date>
    </item>
  </channel>
</rss>

