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
'Declaration
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
wpfTextView
Type: Microsoft.VisualStudio.Text.Editor.IWpfTextViewThe text view to host.
setFocus
Type: Booleantrue if the IWpfTextViewHost should take focus after it is initialized, false otherwise.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.