VsTextViewClass::Initialize Method (IVsTextLines^, IntPtr, UInt32, array<INITVIEW>^)

 

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)

public:
virtual int Initialize(
	IVsTextLines^ pBuffer,
	IntPtr hwndParent,
	unsigned int InitFlags,
	array<INITVIEW>^ pInitView
)

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

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Return to top
Show: