C# does not recognize Section, Paragraph, Table

3 posts, 0 answers
  1. Claude
    Claude avatar
    63 posts
    Member since:
    Apr 2009

    Posted 04 Feb 2013 Link to this post

    I created a new project to start working with the RadRichTextBox item.  However, when I have tried to copy code from the forum into the project (for instance, the code found at http://www.telerik.com/community/forums/winforms/richtextbox/inserting-an-image-into-richtextbox-table.aspx), the project fails to recognize the types Section, Table, TableRow, TableCell, ImagineInline, Paragraph, as well as all the others not defined in standard C#.  I think all the required dlls are present, and I am supplying the correct using statements at the top.

    I cannot find out where those classes are defined in the telerik namespace so I can refer to them.

    I am using the latest version, 2012 Q3.

    Any suggestions would be appreciated.
  2. Plamen
    Plamen avatar
    132 posts

    Posted 07 Feb 2013 Link to this post

    Hi Claude,

    Thank you for writing.

    The assembly that contains these types is Telerik.WinControls.RichTextBox.dll and you should add a reference to it. Next, you have to include the following namespace in the form where the types in question are used:
    using Telerik.WinControls.RichTextBox.Model;

    For more information about tables in RadRichTextBox, you can read the following documentation article: http://www.telerik.com/help/winforms/richtextbox-features-document-elements-tables.html.

    I hope this helps.

    Kind regards,
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
  3. Claude
    Claude avatar
    63 posts
    Member since:
    Apr 2009

    Posted 10 Feb 2013 Link to this post

    Thanks.  The using statement you provided solved the problem.
Back to Top