Поделиться через


ITextSearchService2.FindForReplace - метод (SnapshotPoint, String, String, FindOptions, String%)

Пространство имен:  Microsoft.VisualStudio.Text.Operations
Сборка:  Microsoft.VisualStudio.Text.Logic (в Microsoft.VisualStudio.Text.Logic.dll)

Синтаксис

'Декларация
Function FindForReplace ( _
    startingPosition As SnapshotPoint, _
    searchPattern As String, _
    replacePattern As String, _
    options As FindOptions, _
    <OutAttribute> ByRef expandedReplacePattern As String _
) As Nullable(Of SnapshotSpan)
Nullable<SnapshotSpan> FindForReplace(
    SnapshotPoint startingPosition,
    string searchPattern,
    string replacePattern,
    FindOptions options,
    out string expandedReplacePattern
)
Nullable<SnapshotSpan> FindForReplace(
    SnapshotPoint startingPosition, 
    String^ searchPattern, 
    String^ replacePattern, 
    FindOptions options, 
    [OutAttribute] String^% expandedReplacePattern
)
abstract FindForReplace : 
        startingPosition:SnapshotPoint * 
        searchPattern:string * 
        replacePattern:string * 
        options:FindOptions * 
        expandedReplacePattern:string byref -> Nullable<SnapshotSpan> 
function FindForReplace(
    startingPosition : SnapshotPoint, 
    searchPattern : String, 
    replacePattern : String, 
    options : FindOptions, 
    expandedReplacePattern : String
) : Nullable<SnapshotSpan>

Параметры

  • searchPattern
    Тип: String
  • replacePattern
    Тип: String
  • expandedReplacePattern
    Тип: String%

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

Тип: Nullable<SnapshotSpan>

Безопасность платформы .NET Framework

См. также

Ссылки

ITextSearchService2 Интерфейс

FindForReplace - перегрузка

Microsoft.VisualStudio.Text.Operations - пространство имен