IVsLayeredTextView.GetRelativeSelectionState 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取相对于指定层的选定内容。
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[]
弄与指定层相关的选定内容。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 textmgr:
HRESULT IVsLayeredTextView::GetRelativeSelectionState(
[in] DWORD dwFlags,
[in] IVsTextLayer *pReferenceLayer,
[out] SELECTIONSTATE *pSelState
);