ExpansionProvider.GetFieldSpan(String, TextSpan) 方法

定义

获取指定字段的字段跨度

public:
 virtual bool GetFieldSpan(System::String ^ field, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::TextSpan % pts);
public:
 virtual bool GetFieldSpan(Platform::String ^ field, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::TextSpan &  pts);
 virtual bool GetFieldSpan(std::wstring const & field, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::TextSpan & pts);
public virtual bool GetFieldSpan (string field, out Microsoft.VisualStudio.TextManager.Interop.TextSpan pts);
abstract member GetFieldSpan : string * TextSpan -> bool
override this.GetFieldSpan : string * TextSpan -> bool
Public Overridable Function GetFieldSpan (field As String, ByRef pts As TextSpan) As Boolean

参数

field
String

要为其获取文本跨距的字段。

pts
TextSpan

弄返回 TextSpan ,如果不存在,则可能为空 ExpansionSession

返回

Boolean

true 如果不 ExpansionSessionnull ,则为; 否则为 false

注解

此方法调用 GetFieldSpan 方法。

适用于