You can bind the C1Editor control to a document specified in the Document property. If the document is edited within the C1Editor, the underlying XmlDocument syncs to match it. If the XmlDocument changes in code, these changes are visible in the C1Editor control at run time.
To write code in Visual Basic
Visual Basic |
Copy Code |
---|---|
Imports C1.Win.C1Editor Imports System.Xml |
To write code in C#
C# |
Copy Code |
---|---|
using C1.Win.C1Editor; using System.Xml; |
To write code in Visual Basic
Visual Basic |
Copy Code |
---|---|
Dim myDoc as new XmlDocument() C1Editor1.Document = myDoc |
To write code in C#
C# |
Copy Code |
---|---|
XmlDocument myDoc = new XmlDocument(); c1Editor1.Document = myDoc; |