Partager via


IMouseProcessorProvider Interface

Creates a WPF mouse processor for a given text view.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

'Declaration
Public Interface IMouseProcessorProvider
public interface IMouseProcessorProvider
public interface class IMouseProcessorProvider
type IMouseProcessorProvider =  interface end
public interface IMouseProcessorProvider

The IMouseProcessorProvider type exposes the following members.

Methods

  Name Description
Public method GetAssociatedProcessor Creates an IMouseProcessor for a IWpfTextView.

Top

Remarks

This is a MEF component part, and should be exported with the following attributes:

[Export(typeof(IMouseProcessorProvider))] 
[ContentType("SomeContentType")]
[Name("SomeProvider")]
[TextViewRole(PredefinedTextViewRoles.Editable)]

See PredefinedTextViewRoles for the complete set of roles. See Editor Extension Points for an explanation of text view roles.

See Also

Reference

Microsoft.VisualStudio.Text.Editor Namespace