Share via


IVsCodeWindowEx.Initialize Method

Definition

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.

public:
 int Initialize(System::UInt32 grfCodeWindowBehaviorFlags, Microsoft::VisualStudio::Shell::Interop::VSUSERCONTEXTATTRIBUTEUSAGE usageAuxUserContext, System::String ^ szNameAuxUserContext, System::String ^ szValueAuxUserContext, System::UInt32 InitViewFlags, cli::array <Microsoft::VisualStudio::TextManager::Interop::INITVIEW> ^ pInitView);
public:
 int Initialize(unsigned int grfCodeWindowBehaviorFlags, Microsoft::VisualStudio::Shell::Interop::VSUSERCONTEXTATTRIBUTEUSAGE usageAuxUserContext, Platform::String ^ szNameAuxUserContext, Platform::String ^ szValueAuxUserContext, unsigned int InitViewFlags, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::INITVIEW> ^ pInitView);
int Initialize(unsigned int grfCodeWindowBehaviorFlags, Microsoft::VisualStudio::Shell::Interop::VSUSERCONTEXTATTRIBUTEUSAGE usageAuxUserContext, std::wstring const & szNameAuxUserContext, std::wstring const & szValueAuxUserContext, unsigned int InitViewFlags, std::Array <Microsoft::VisualStudio::TextManager::Interop::INITVIEW> const & pInitView);
public int Initialize (uint grfCodeWindowBehaviorFlags, Microsoft.VisualStudio.Shell.Interop.VSUSERCONTEXTATTRIBUTEUSAGE usageAuxUserContext, string szNameAuxUserContext, string szValueAuxUserContext, uint InitViewFlags, Microsoft.VisualStudio.TextManager.Interop.INITVIEW[] pInitView);
abstract member Initialize : uint32 * Microsoft.VisualStudio.Shell.Interop.VSUSERCONTEXTATTRIBUTEUSAGE * string * string * uint32 * Microsoft.VisualStudio.TextManager.Interop.INITVIEW[] -> int
Public Function Initialize (grfCodeWindowBehaviorFlags As UInteger, usageAuxUserContext As VSUSERCONTEXTATTRIBUTEUSAGE, szNameAuxUserContext As String, szValueAuxUserContext As String, InitViewFlags As UInteger, pInitView As INITVIEW()) As Integer

Parameters

grfCodeWindowBehaviorFlags
UInt32

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

usageAuxUserContext
VSUSERCONTEXTATTRIBUTEUSAGE

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

szNameAuxUserContext
String

[in] The name of the auxiliary user context.

szValueAuxUserContext
String

[in] The value of the auxiliary user context.

InitViewFlags
UInt32

[in] Flags to modify the INITVIEW

pInitView
INITVIEW[]

[in] The enumeration which specifies view parameters.

Returns

Returns S_OK if the method succeeds.

Remarks

This method should be called before calling SetBuffer.

Applies to