IVsLanguageTextOps.GetPairExtent(IVsTextLayer, TextAddress, TextSpan[]) Метод

Определение

Определяет расположение соответствующих парной скобки, круглой скобки, кавычек, прямой скобки или любого другого элемента, которому должна соответствовать языковая служба.

public:
 int GetPairExtent(Microsoft::VisualStudio::TextManager::Interop::IVsTextLayer ^ pTextLayer, Microsoft::VisualStudio::TextManager::Interop::TextAddress ta, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts);
public:
 int GetPairExtent(Microsoft::VisualStudio::TextManager::Interop::IVsTextLayer ^ pTextLayer, Microsoft::VisualStudio::TextManager::Interop::TextAddress ta, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts);
int GetPairExtent(Microsoft::VisualStudio::TextManager::Interop::IVsTextLayer const & pTextLayer, Microsoft::VisualStudio::TextManager::Interop::TextAddress ta, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pts);
public int GetPairExtent (Microsoft.VisualStudio.TextManager.Interop.IVsTextLayer pTextLayer, Microsoft.VisualStudio.TextManager.Interop.TextAddress ta, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pts);
abstract member GetPairExtent : Microsoft.VisualStudio.TextManager.Interop.IVsTextLayer * Microsoft.VisualStudio.TextManager.Interop.TextAddress * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Function GetPairExtent (pTextLayer As IVsTextLayer, ta As TextAddress, pts As TextSpan()) As Integer

Параметры

pTextLayer
IVsTextLayer

[in] Объект IVsTextLayer, представляющий текстовый файл.

ta
TextAddress

[in] Указывает адрес текста для первого элемента в паре. Адрес текста дан относительно расположения текста в слое текста. Для получения дополнительной информации см. TextAddress.

pts
TextSpan[]

[out] возвращает диапазон текста, содержащий второй элемент в паре. Для получения дополнительной информации см. TextSpan.

Возвращаемое значение

Int32

Если метод завершается успешно, возвращает значение S_OK. В противном случае функция возвращает код ошибки.

Комментарии

Подпись COM

Из текстмгр. IDL:

HRESULT IVsLanguageTextOps::GetPairExtent(  
   [in] IVsTextLayer *pTextLayer,   
   [in] TextAddress ta,   
   [out, retval] TextSpan *pts  
);  

Пары символов включают фигурные скобки, круглые скобки, кавычки, квадратные скобки и т. д.

Примечание

ptsЗначение представляет собой текстовый диапазон в соответствующем слое, который был передан (то есть в pTextLayer ). Не возвращайте этот объект как текстовый диапазон из базового слоя (текстового буфера).

Применяется к