Creates the view and allows clients to specify one or more TextViewInitFlags options.
Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
声明
Public Overridable Function Initialize ( _
    pBuffer As IVsTextLines, _
    hwndParent As IntPtr, _
    InitFlags As UInteger, _
    pInitView As INITVIEW() _
) As Integer
用法
Dim instance As VsTextViewClass
Dim pBuffer As IVsTextLines
Dim hwndParent As IntPtr
Dim InitFlags As UInteger
Dim pInitView As INITVIEW()
Dim returnValue As Integer
returnValue = instance.Initialize(pBuffer, _
    hwndParent, InitFlags, pInitView)
public virtual int Initialize(
    IVsTextLines pBuffer,
    IntPtr hwndParent,
    uint InitFlags,
    INITVIEW[] pInitView
)
public:
virtual int Initialize(
    [InAttribute] IVsTextLines^ pBuffer, 
    [InAttribute] IntPtr hwndParent, 
    [InAttribute] unsigned int InitFlags, 
    [InAttribute] array<INITVIEW>^ pInitView
)
abstract Initialize : 
        pBuffer:IVsTextLines * 
        hwndParent:IntPtr * 
        InitFlags:uint32 * 
        pInitView:INITVIEW[] -> int 
override Initialize : 
        pBuffer:IVsTextLines * 
        hwndParent:IntPtr * 
        InitFlags:uint32 * 
        pInitView:INITVIEW[] -> int 
public function Initialize(
    pBuffer : IVsTextLines, 
    hwndParent : IntPtr, 
    InitFlags : uint, 
    pInitView : INITVIEW[]
) : int
Parameters
- pBuffer
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLines
[in] Pointer to a text buffer object to attach the view to. 
- hwndParent
Type: System.IntPtr
[in] Specifies a handle to the parent window. 
- InitFlags
Type: System.UInt32
[in] Specifies view options. For a list of InitFlags values, see TextViewInitFlags. 
- pInitView
Type: array<Microsoft.VisualStudio.TextManager.Interop.INITVIEW[]
[in] Pointer to the view you want to initialize. 
Return Value
Type: System.Int32
Implements
IVsTextView.Initialize(IVsTextLines, IntPtr, UInt32, array<INITVIEW[])
.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.