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
建立的自訂編輯器。