Method SetEditorSource
- Namespace
- Alternet.FormDesigner.Integration
- Assembly
- Alternet.FormDesigner.Integration.v9.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
edit
IScriptEditIScriptEdit
to update source code.fileName
stringNew file name.
source
EditorFormDesignerDataSourceEditorFormDesignerDataSource
that 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.