Udostępnij za pośrednictwem


IVsSplitter.SplitPane(IVsSplitPane, Int32, Int32, UInt32, IVsSplitter) Method

Definition

Splits the indicated pane of this splitter.

public:
 int SplitPane(Microsoft::VisualStudio::TextManager::Interop::IVsSplitPane ^ pNewPane, int iIndex, int iSize, System::UInt32 dwFlags, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsSplitter ^ % ppSplitter);
public:
 int SplitPane(Microsoft::VisualStudio::TextManager::Interop::IVsSplitPane ^ pNewPane, int iIndex, int iSize, unsigned int dwFlags, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsSplitter ^ &  ppSplitter);
int SplitPane(Microsoft::VisualStudio::TextManager::Interop::IVsSplitPane const & pNewPane, int iIndex, int iSize, unsigned int dwFlags, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsSplitter const & & ppSplitter);
public int SplitPane (Microsoft.VisualStudio.TextManager.Interop.IVsSplitPane pNewPane, int iIndex, int iSize, uint dwFlags, out Microsoft.VisualStudio.TextManager.Interop.IVsSplitter ppSplitter);
abstract member SplitPane : Microsoft.VisualStudio.TextManager.Interop.IVsSplitPane * int * int * uint32 * IVsSplitter -> int
Public Function SplitPane (pNewPane As IVsSplitPane, iIndex As Integer, iSize As Integer, dwFlags As UInteger, ByRef ppSplitter As IVsSplitter) As Integer

Parameters

pNewPane
IVsSplitPane

[in] The IVsSplitPane of the new pane.

iIndex
Int32

[in] The index of the pane.

iSize
Int32

[in] The size of the pane.

dwFlags
UInt32

[in] The flags.

ppSplitter
IVsSplitter

[out] The IVsSplitter.

Returns

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsSplitter::SplitPane(  
   [in] IVsSplitPane *pNewPane,  
   [in] long iIndex,  
   [in] long iSize,  
   [in] DWORD dwFlags,  
   [out] IVsSplitter **ppSplitter  
);  

The provided pane can become either the primary or secondary pane of the newly created splitter pane, which replaces the indicated pane. The iSize parameter refers to the size of the new pane, regardless of if it is becoming the primary or secondary pane.

Applies to