ITextEditorFactoryService.CreateTextViewHost Method

Creates a host for the text view.

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

Syntax

声明
Function CreateTextViewHost ( _
    wpfTextView As IWpfTextView, _
    setFocus As Boolean _
) As IWpfTextViewHost
IWpfTextViewHost CreateTextViewHost(
    IWpfTextView wpfTextView,
    bool setFocus
)
IWpfTextViewHost^ CreateTextViewHost(
    IWpfTextView^ wpfTextView, 
    bool setFocus
)
abstract CreateTextViewHost : 
        wpfTextView:IWpfTextView * 
        setFocus:bool -> IWpfTextViewHost 
function CreateTextViewHost(
    wpfTextView : IWpfTextView, 
    setFocus : boolean
) : IWpfTextViewHost

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Editor.IWpfTextViewHost
An IWpfTextViewHost.

Exceptions

Exception Condition
ArgumentNullException

wpfTextView is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ITextEditorFactoryService Interface

Microsoft.VisualStudio.Text.Editor Namespace