IEditor Interface

Applies to v2.

Represents a generic editor interface.

Namespace:  Microsoft.WebMatrix.Extensibility.Editor
Assembly:  Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)

Syntax

'Declaration
Public Interface IEditor _
    Inherits IDisposable
'Usage
Dim instance As IEditor
public interface IEditor : IDisposable
public interface class IEditor : IDisposable
type IEditor =  
    interface 
        interface IDisposable 
    end
public interface IEditor extends IDisposable

The IEditor type exposes the following members.

Properties

  Name Description
Public property CommandTarget Gets the command target.
Public property Control Gets the control that will be hosted in the UI.
Public property Dirty Gets or sets a value that indicates whether the text was modified by the user.
Public property FilePath Gets or sets the path to the file.
Public property HasFocus Gets a value that indicates whether the editor has the focus.
Public property ReadOnly Gets or sets a value that indicates whether user cannot edit text.
Public property ServiceProvider Gets the optional services of this editor, for example IEditorSelection.
Public property TechnologyName Gets a string specifying the technology used in the file. For example a javascript file can be browser javascript or NodeJs, and hence will return different technology names.

Top

Methods

  Name Description
Public method Dispose (Inherited from IDisposable.)
Public method Focus Sets focus to the editor.

Top

Events

  Name Description
Public event DirtyChanged Occurs after the value of the Dirty property has changed.
Public event GotFocus Occurs when the focus has changed to the editor. If the editor is disposed no more events will be fired.
Public event ReadOnlyChanging Occurs when ReadOnly property is changing.

Top

See Also

Reference

Microsoft.WebMatrix.Extensibility.Editor Namespace