ICustomEditorFactory.CreateCustomEditor 方法
适用于版本2
创建自定义编辑器。
命名空间: Microsoft.WebMatrix.Extensibility.Editor
程序集: Microsoft.WebMatrix.Extensibility(在 Microsoft.WebMatrix.Extensibility.dll 中)
语法
声明
Function CreateCustomEditor ( _
fileName As String, _
<OutAttribute> ByRef loaderDelegate As Func, _
<OutAttribute> saverDelegate As Boolean _
) As IEditor
用法
Dim instance As ICustomEditorFactory
Dim fileName As String
Dim loaderDelegate As Func
Dim saverDelegate As Boolean
Dim returnValue As IEditor
returnValue = instance.CreateCustomEditor(fileName, _
loaderDelegate, saverDelegate)
IEditor CreateCustomEditor(
string fileName,
out Func loaderDelegate,
bool saverDelegate
)
IEditor^ CreateCustomEditor(
String^ fileName,
[OutAttribute] Func^% loaderDelegate,
[OutAttribute] bool saverDelegate
)
abstract CreateCustomEditor :
fileName:string *
loaderDelegate:Func byref *
saverDelegate:bool byref -> IEditor
function CreateCustomEditor(
fileName : String,
loaderDelegate : Func,
saverDelegate : boolean
) : IEditor
参数
fileName
类型:System.String自定义编辑器的文件名。
loaderDelegate
类型:System.Func<T, TResult>%加载程序委托。
saverDelegate
类型:System.Boolean保护程序委托。
返回值
类型:Microsoft.WebMatrix.Extensibility.Editor.IEditor
已创建的自定义编辑器。