Table of Contents

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 IScriptEdit

IScriptEdit to update source code.

fileName string

New file name.

source EditorFormDesignerDataSource

EditorFormDesignerDataSource 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.