C# Класс SIL.FieldWorks.Common.Controls.ReplaceWithMethod

Implement FakeDoIt by replacing whatever matches the pattern with the result.
Наследование: DoItMethod
Показать файл Открыть проект

Открытые методы

Метод Описание
Doit ( int hvo ) : void

This is very like the base Doit, but we can save a duplicate pattern search by calling the BASE version of OkToChange rather than our own version, which tests for at least one match. We DO need to call the base version, e.g., so we don't change wordforms which shouldn't change because they are in use.

ReplaceWithMethod ( SIL.FieldWorks.FDO.FdoCache cache, ISilDataAccessManaged sda, FieldReadWriter accessor, XmlNode spec, IVwPattern pattern, ITsString replacement ) : System

Защищенные методы

Метод Описание
NewValue ( int hvo ) : ITsString

Actually produce the replacement string.

OkToChange ( int hvo ) : bool

We can do a replace if the pattern matches.

Описание методов

Doit() публичный Метод

This is very like the base Doit, but we can save a duplicate pattern search by calling the BASE version of OkToChange rather than our own version, which tests for at least one match. We DO need to call the base version, e.g., so we don't change wordforms which shouldn't change because they are in use.
public Doit ( int hvo ) : void
hvo int
Результат void

NewValue() защищенный Метод

Actually produce the replacement string.
protected NewValue ( int hvo ) : ITsString
hvo int
Результат ITsString

OkToChange() защищенный Метод

We can do a replace if the pattern matches.
protected OkToChange ( int hvo ) : bool
hvo int
Результат bool

ReplaceWithMethod() публичный Метод

public ReplaceWithMethod ( SIL.FieldWorks.FDO.FdoCache cache, ISilDataAccessManaged sda, FieldReadWriter accessor, XmlNode spec, IVwPattern pattern, ITsString replacement ) : System
cache SIL.FieldWorks.FDO.FdoCache
sda ISilDataAccessManaged
accessor FieldReadWriter
spec System.Xml.XmlNode
pattern IVwPattern
replacement ITsString
Результат System