Partager via


IWpfTextViewHost Interface

Contains an IWpfTextView and the margins that surround it, such as a scrollbar or line number gutter.

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

Syntax

'Déclaration
Public Interface IWpfTextViewHost
public interface IWpfTextViewHost
public interface class IWpfTextViewHost
type IWpfTextViewHost =  interface end
public interface IWpfTextViewHost

The IWpfTextViewHost type exposes the following members.

Properties

  Name Description
Public property HostControl Gets the WPF control for this IWpfTextViewHost.
Public property IsClosed Determines whether this text view has been closed.
Public property TextView Gets the IWpfTextView that is contained within this IWpfTextViewHost.

Top

Methods

  Name Description
Public method Close Closes the text view host and its underlying text view.
Public method GetTextViewMargin Gets the ITextViewMargin with the specified margin name that is attached to an edge of this IWpfTextView.

Top

Events

  Name Description
Public event Closed Occurs immediately after closing the text view.

Top

See Also

Reference

Microsoft.VisualStudio.Text.Editor Namespace