IVsLayeredTextView.GetRelativeSelectionState 方法

定义

获取相对于指定层的选定内容。

public:
 int GetRelativeSelectionState(System::UInt32 dwFlags, Microsoft::VisualStudio::TextManager::Interop::IVsTextLayer ^ pReferenceLayer, cli::array <Microsoft::VisualStudio::TextManager::Interop::SELECTIONSTATE> ^ pSelState);
public:
 int GetRelativeSelectionState(unsigned int dwFlags, Microsoft::VisualStudio::TextManager::Interop::IVsTextLayer ^ pReferenceLayer, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::SELECTIONSTATE> ^ pSelState);
int GetRelativeSelectionState(unsigned int dwFlags, Microsoft::VisualStudio::TextManager::Interop::IVsTextLayer const & pReferenceLayer, std::Array <Microsoft::VisualStudio::TextManager::Interop::SELECTIONSTATE> const & pSelState);
public int GetRelativeSelectionState (uint dwFlags, Microsoft.VisualStudio.TextManager.Interop.IVsTextLayer pReferenceLayer, Microsoft.VisualStudio.TextManager.Interop.SELECTIONSTATE[] pSelState);
abstract member GetRelativeSelectionState : uint32 * Microsoft.VisualStudio.TextManager.Interop.IVsTextLayer * Microsoft.VisualStudio.TextManager.Interop.SELECTIONSTATE[] -> int
Public Function GetRelativeSelectionState (dwFlags As UInteger, pReferenceLayer As IVsTextLayer, pSelState As SELECTIONSTATE()) As Integer

参数

dwFlags
UInt32

中选择状态标志。 从获取值 RelativeSelectionStateFlags

pReferenceLayer
IVsTextLayer

中除非指定,否则必须为 null rssRelativeLayer 。 如果为 null,则指定最顶层的层。

pSelState
SELECTIONSTATE[]

弄与指定层相关的选定内容。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 textmgr:

HRESULT IVsLayeredTextView::GetRelativeSelectionState(  
   [in] DWORD dwFlags,  
   [in] IVsTextLayer *pReferenceLayer,  
   [out] SELECTIONSTATE *pSelState  
);  

适用于