IVsIntellisenseHost.GetSubjectSelection(Int32, Int32) Yöntem

Tanım

IntelliSense 'in üzerinde çalıştığı metne göre seçimi alır.

public:
 int GetSubjectSelection([Runtime::InteropServices::Out] int % piAnchorIndex, [Runtime::InteropServices::Out] int % piEndIndex);
int GetSubjectSelection([Runtime::InteropServices::Out] int & piAnchorIndex, [Runtime::InteropServices::Out] int & piEndIndex);
public int GetSubjectSelection (out int piAnchorIndex, out int piEndIndex);
abstract member GetSubjectSelection : int * int -> int
Public Function GetSubjectSelection (ByRef piAnchorIndex As Integer, ByRef piEndIndex As Integer) As Integer

Parametreler

piAnchorIndex
Int32

dışı Konu metin seçiminin dizini başlatılıyor.

piEndIndex
Int32

dışı Konu metin seçiminin bitiş dizini.

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

IHF_NOSEPARATESUBJECT içeren ve bu yöntemin E_NOTIMPL döndürmesi gerekiyorsa _returns, konu metni bağlam arabelleğinin içeriği olarak kabul edilir.

C++

Singlefileeditor. IDL öğesinden:

HRESULT IVsIntellisenseHost::GetSubjectSelection([out] long *piAnchorIndex, [out] long *piEndIndex);

Şunlara uygulanır