Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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 | |
---|---|---|
![]() |
CommandTarget | Gets the command target. |
![]() |
Control | Gets the control that will be hosted in the UI. |
![]() |
Dirty | Gets or sets a value that indicates whether the text was modified by the user. |
![]() |
FilePath | Gets or sets the path to the file. |
![]() |
HasFocus | Gets a value that indicates whether the editor has the focus. |
![]() |
ReadOnly | Gets or sets a value that indicates whether user cannot edit text. |
![]() |
ServiceProvider | Gets the optional services of this editor, for example IEditorSelection. |
![]() |
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 | |
---|---|---|
![]() |
Dispose | (Inherited from IDisposable.) |
![]() |
Focus | Sets focus to the editor. |
Top
Events
Name | Description | |
---|---|---|
![]() |
DirtyChanged | Occurs after the value of the Dirty property has changed. |
![]() |
GotFocus | Occurs when the focus has changed to the editor. If the editor is disposed no more events will be fired. |
![]() |
ReadOnlyChanging | Occurs when ReadOnly property is changing. |
Top