IVsCodeWindowEx::Initialize Method (UInt32, VSUSERCONTEXTATTRIBUTEUSAGE, String^, String^, UInt32, array<INITVIEW>^)

 

Customizes some of the behavior of a code window, such as making the window read-only, hiding the dropdown bar and splitter, and provide auxiliary user context.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

int Initialize(
	unsigned int grfCodeWindowBehaviorFlags,
	VSUSERCONTEXTATTRIBUTEUSAGE usageAuxUserContext,
	String^ szNameAuxUserContext,
	String^ szValueAuxUserContext,
	unsigned int InitViewFlags,
	array<INITVIEW>^ pInitView
)

Parameters

grfCodeWindowBehaviorFlags
Type: System::UInt32

[in] Enumeration value which determines the behavior of the code window. Possible values are: CWB _DEFAULT, CWB_DISABLEDROPDOWNBAR, or CWB_DISABLESPLITTER.

usageAuxUserContext
Type: Microsoft.VisualStudio.Shell.Interop::VSUSERCONTEXTATTRIBUTEUSAGE

[in] Enumeration value which determines the use of the auxiliary user context.

szNameAuxUserContext
Type: System::String^

[in] The name of the auxiliary user context.

szValueAuxUserContext
Type: System::String^

[in] The value of the auxiliary user context.

InitViewFlags
Type: System::UInt32

[in] Flags to modify the INITVIEW

pInitView
Type: array<Microsoft.VisualStudio.TextManager.Interop::INITVIEW>^

[in] The enumeration which specifies view parameters.

Return Value

Type: System::Int32

Returns S_OK if the method succeeds.

This method should be called before calling SetBuffer.

Return to top
Show: