ITextEditorFactory.CreateTextEditor Method
Applies to v2.
Create a text editor.
Namespace: Microsoft.WebMatrix.Extensibility.Editor
Assembly: Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)
Syntax
'Declaration
Function CreateTextEditor ( _
fileName As String, _
text As String _
) As IEditor
'Usage
Dim instance As ITextEditorFactory
Dim fileName As String
Dim text As String
Dim returnValue As IEditor
returnValue = instance.CreateTextEditor(fileName, _
text)
IEditor CreateTextEditor(
string fileName,
string text
)
IEditor^ CreateTextEditor(
String^ fileName,
String^ text
)
abstract CreateTextEditor :
fileName:string *
text:string -> IEditor
function CreateTextEditor(
fileName : String,
text : String
) : IEditor
Parameters
fileName
Type: System.StringThe name of the file to load.
text
Type: System.StringThe default text.
Return Value
Type: Microsoft.WebMatrix.Extensibility.Editor.IEditor
An editor instance.