IVsTextView.GetSelectionMode 方法
傳回目前的選取模式。
命名空間: Microsoft.VisualStudio.TextManager.Interop
組件: Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
語法
'宣告
Function GetSelectionMode As TextSelMode
TextSelMode GetSelectionMode()
TextSelMode GetSelectionMode()
abstract GetSelectionMode : unit -> TextSelMode
function GetSelectionMode() : TextSelMode
傳回值
類型:Microsoft.VisualStudio.TextManager.Interop.TextSelMode
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。
備註
COM 簽章
從 textmgr.idl:
HRESULT IVsTextView::GetSelectionMode();
使用這個方法來判斷資料流或] 方塊中選取項目是否為目前的選取模式。 如需詳細資訊,請參閱 TextSelMode。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。