<?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: how to I get the A character highlight in the Keywords? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-i-get-the-a-character-highlight-in-the-keywords/m-p/8110411#M25430</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AutoCAD automatically highlights the uppercase successive characters in the keywords (they have to be different for each keyword.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;            var ed = Application.DocumentManager.MdiActiveDocument.Editor;
            var options = new PromptKeywordOptions("\nChoose an option: ");
            options.Keywords.Add("First");
            options.Keywords.Add("sEcond");
            options.Keywords.Default = "First";
            var result = ed.GetKeywords(options);
            if (result.Status != PromptStatus.OK)
                return;
            ed.WriteMessage("\n" + result.StringResult);&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="keywords.png" style="width: 504px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/519547i1694196B16F83CF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="keywords.png" alt="keywords.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jul 2018 06:24:18 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2018-07-05T06:24:18Z</dc:date>
    <item>
      <title>how to I get the A character highlight in the Keywords?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-i-get-the-a-character-highlight-in-the-keywords/m-p/8110206#M25429</link>
      <description>&lt;P&gt;I am writing a code in C# and need to add few options in the cmd line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example :&lt;/P&gt;&lt;P&gt;pkeyopt.keywords.add("First")&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;pkeyopt.keywords.add("Second")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I only want to make The F highlight in "First"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or E in "Second"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;See the pic for the example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If anyone knows please show me how thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I did try keywords[0].Displayname&amp;nbsp;but it still shows the whole word.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/519506i73C898F2B0550F94/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 02:56:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-i-get-the-a-character-highlight-in-the-keywords/m-p/8110206#M25429</guid>
      <dc:creator>tranmanh1992</dc:creator>
      <dc:date>2018-07-05T02:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to I get the A character highlight in the Keywords?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-i-get-the-a-character-highlight-in-the-keywords/m-p/8110411#M25430</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AutoCAD automatically highlights the uppercase successive characters in the keywords (they have to be different for each keyword.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;            var ed = Application.DocumentManager.MdiActiveDocument.Editor;
            var options = new PromptKeywordOptions("\nChoose an option: ");
            options.Keywords.Add("First");
            options.Keywords.Add("sEcond");
            options.Keywords.Default = "First";
            var result = ed.GetKeywords(options);
            if (result.Status != PromptStatus.OK)
                return;
            ed.WriteMessage("\n" + result.StringResult);&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="keywords.png" style="width: 504px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/519547i1694196B16F83CF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="keywords.png" alt="keywords.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 06:24:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-i-get-the-a-character-highlight-in-the-keywords/m-p/8110411#M25430</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-07-05T06:24:18Z</dc:date>
    </item>
  </channel>
</rss>

