'''' This code is part of Document Solutions for Word demos.'' Copyright (c) MESCIUS inc. All rights reserved.''ImportsGrapeCity.Documents.Word PublicClassCanAddParaFunctionCreateDocx() AsGcWordDocumentDim doc = NewGcWordDocument()Dim p = doc.Body.Paragraphs.Add()Dim cc = p.AddContentControl(ContentControlType.RichText).ContentIf cc.CanAdd(GetType(Paragraph)) Then'' returns false since the content control was created on inline level cc.AddParagraph("Paragraph added to Rich Text Content Control.")Else cc.AddRun("Run added to Rich Text Content Control.")EndIfReturn docEndFunctionEndClass