Forums

How to get CodeIssue detailed message

Last post 2/9/2010 7:49 AM by Peter Thorpe. 2 replies.
Sort Posts: Previous Next
  • Peter Thorpe

    How to get CodeIssue detailed message

    2/9/2010 5:25 AM
    • Top 150 Contributor
    • Joined on 10/4/2008
    • Posts 120

    When you hover over a code issue in the right hand bar you get a detailed message displaying several details

    e.g.

    Redundant This Qualifier and then in a textbox below "this"

    or

    Unused parameter and in the textbox the name of the parameter.

     

    Is there a way from a codeissue to retrieve the message in the textbox? CodeIssue.Message seems to retrieve the "Reduntant this Qualifier" section but there doesn't seem to be a property to retrieve the message that is shown in the textbox.

    Filed under:
  • AlexS - DevExpress

    Re: How to get CodeIssue detailed message

    2/9/2010 6:23 AM
    • Top 25 Contributor
    • Joined on 5/4/2007
    • Posts 1,658
    Hi Peter,
     
    The detailed message is coming from a source code. The CodeIssue has the "Range" property which allows you to get a text from source code by this range like this:
     

        string GetCodeIssueDetailedMessage(TextDocument doc, CodeIssue issue)

        {

          string issueCode = doc.GetText(issue.Range);

          return issueCode;

        }


    --
    Best Regards, Alex S
     
    R&D, IDE Team DevExpress Inc.
  • Peter Thorpe

    Re: How to get CodeIssue detailed message

    2/9/2010 7:49 AM
    • Top 150 Contributor
    • Joined on 10/4/2008
    • Posts 120

    Oh right of course simple

More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.