Partilhar via


VsTextViewClass.Initialize(IVsTextLines, IntPtr, UInt32, INITVIEW[]) Method

Definition

Creates the view and allows clients to specify one or more TextViewInitFlags options.

public:
 virtual int Initialize(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer, IntPtr hwndParent, System::UInt32 InitFlags, cli::array <Microsoft::VisualStudio::TextManager::Interop::INITVIEW> ^ pInitView) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::Initialize;
public:
 virtual int Initialize(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer, IntPtr hwndParent, System::UInt32 InitFlags, cli::array <Microsoft::VisualStudio::TextManager::Interop::INITVIEW> ^ pInitView);
public virtual int Initialize (Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pBuffer, IntPtr hwndParent, uint InitFlags, Microsoft.VisualStudio.TextManager.Interop.INITVIEW[] pInitView);
abstract member Initialize : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * nativeint * uint32 * Microsoft.VisualStudio.TextManager.Interop.INITVIEW[] -> int
override this.Initialize : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * nativeint * uint32 * Microsoft.VisualStudio.TextManager.Interop.INITVIEW[] -> int
Public Overridable Function Initialize (pBuffer As IVsTextLines, hwndParent As IntPtr, InitFlags As UInteger, pInitView As INITVIEW()) As Integer

Parameters

pBuffer
IVsTextLines

[in] Pointer to a text buffer object to attach the view to.

hwndParent
IntPtr

nativeint

[in] Specifies a handle to the parent window.

InitFlags
UInt32

[in] Specifies view options. For a list of InitFlags values, see TextViewInitFlags.

pInitView
INITVIEW[]

[in] Pointer to the view you want to initialize.

Returns

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

Implements

Applies to