Articles in this section
Category / Section

Load and save contents of WinForms SyntaxEditor from memory stream

2 mins read

Load or save the content

The below code helps you to know on how to load and save the contents of the Edit Control from or to a memory stream.

C#

// Sample to load the contents of any desired file into the Edit Control.
this.editControl1.LoadStream(streamName);
this.editControl1.LoadStream(streamName, config);
// Sample to save the contents of the Edit Control into the memory stream.
this.editControl1.SaveToStream();
this.editControl1.SaveToStream(streamName);

 

VB

' Sample to load the contents of any desired file into the Edit Control.
Me.editControl1.LoadStream(streamName)
Me.editControl1.LoadStream(streamName, config)
' Sample to save the contents of the Edit Control into the memory stream.
Me.editControl1.SaveToStream()
Me.editControl1.SaveToStream(streamName)

 

Reference link: https://help.syncfusion.com/windowsforms/syntax-editor/file-operation


Conclusion

I hope you enjoyed learning about how to load and save contents of WinForms SyntaxEditor from memory stream.

You can refer to our WinForms Syntax Editor feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our 
WinForms Syntax Editor example
 to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied