Method SetEditorSource
- Namespace
 - Alternet.FormDesigner.Integration.Wpf
 
- Assembly
 - Alternet.FormDesigner.Integration.Wpf.v10.dll
 
SetEditorSource(IScriptEdit, string, EditorFormDesignerDataSource)
Updates the source code of the given IScriptEdit control according to the specified parameters.
public static void SetEditorSource(IScriptEdit edit, string fileName, EditorFormDesignerDataSource source)
Parameters
editIScriptEditIScriptEditto update source code.fileNamestringNew file name.
sourceEditorFormDesignerDataSourceEditorFormDesignerDataSourcethat is source of the code.
Remarks
As EditorFormDesignerDataSource contains several ITextSource objects related to the designer-generated code, user code, or resource code, FormDesignerEditorHelpers should decide which of them will be displayed by the editor control.