IVsTextView.SetSelectionMode(TextSelMode) Yöntem

Tanım

Seçim modunu ayarlar.

public:
 int SetSelectionMode(Microsoft::VisualStudio::TextManager::Interop::TextSelMode iSelMode);
public:
 int SetSelectionMode(Microsoft::VisualStudio::TextManager::Interop::TextSelMode iSelMode);
int SetSelectionMode(Microsoft::VisualStudio::TextManager::Interop::TextSelMode iSelMode);
public int SetSelectionMode (Microsoft.VisualStudio.TextManager.Interop.TextSelMode iSelMode);
abstract member SetSelectionMode : Microsoft.VisualStudio.TextManager.Interop.TextSelMode -> int
Public Function SetSelectionMode (iSelMode As TextSelMode) As Integer

Parametreler

iSelMode
TextSelMode

'ndaki Seçim modunu belirten numaralandırma değeri.

Döndürülenler

Int32

Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.

Açıklamalar

COM Imzası

Textmgr. IDL dosyasından:

HRESULT IVsTextView::SetSelectionMode(  
   [in] TextSelMode iSelMode  
);  

Akışın veya Box seçiminin geçerli seçim modu olup olmadığını ayarlamak için bu yöntemi kullanın. Daha fazla bilgi için bkz. TextSelMode.

Şunlara uygulanır