C# Класс hoTools.Find.FindAndReplace

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ChangeString ( string stringToChange, string newString = "" ) : string

Change strings of items to the stored 'newString' value. Optional you may use your own 'newString' parameter.

FindAndReplace ( EA rep, EA pkg, string findString, string replaceString, bool isCaseSensitive, bool isRegularExpression, bool isIgnoreWhiteSpace, bool isNameSearch, bool isDescriptionSearch, bool isStereotypeSearch, bool isTagSearch, string taggedValueNames, bool isPackageSearch, bool isElementSearch, bool isDiagramSearch, bool isAttributeSearch, bool isOperationSearch ) : System
FindInPackageRecursive ( ) : void

Find all choosen items beneath selected package (recursive). - Create item list (l_items) The task is delegated doRecursivePackage

FindNext ( ) : void
FindPrevious ( ) : void
FindStringInItem ( EA object_type, string GUID ) : int

Find the count of found searches in item: - add item to l_items - update item to l_items if item is already available

ItemShortDescription ( ) : string
LocateCurrentElement ( ) : void
ReplaceAll ( ) : void
ReplaceItem ( ) : int

Replace all occurences of "Search string" by "Replace String" in current selected item.

SetRtfBoxText ( System.Windows.Forms.RichTextBox rtfBox, string from ) : int

Output 'from' string to rtfBox and mark all possible changes. It returns the count of possible changes

currentItem ( ) : FindAndReplaceItem
lastItem ( ) : FindAndReplaceItem

Приватные методы

Метод Описание
PrepareRegexp ( ) : Regex

Prepare a regular expression and returns it

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

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

Change strings of items to the stored 'newString' value. Optional you may use your own 'newString' parameter.
public ChangeString ( string stringToChange, string newString = "" ) : string
stringToChange string
newString string "Change the found values to 'neString'."
Результат string

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

public FindAndReplace ( EA rep, EA pkg, string findString, string replaceString, bool isCaseSensitive, bool isRegularExpression, bool isIgnoreWhiteSpace, bool isNameSearch, bool isDescriptionSearch, bool isStereotypeSearch, bool isTagSearch, string taggedValueNames, bool isPackageSearch, bool isElementSearch, bool isDiagramSearch, bool isAttributeSearch, bool isOperationSearch ) : System
rep EA
pkg EA
findString string
replaceString string
isCaseSensitive bool
isRegularExpression bool
isIgnoreWhiteSpace bool
isNameSearch bool
isDescriptionSearch bool
isStereotypeSearch bool
isTagSearch bool
taggedValueNames string
isPackageSearch bool
isElementSearch bool
isDiagramSearch bool
isAttributeSearch bool
isOperationSearch bool
Результат System

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

Find all choosen items beneath selected package (recursive). - Create item list (l_items) The task is delegated doRecursivePackage
public FindInPackageRecursive ( ) : void
Результат void

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

public FindNext ( ) : void
Результат void

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

public FindPrevious ( ) : void
Результат void

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

Find the count of found searches in item: - add item to l_items - update item to l_items if item is already available
public FindStringInItem ( EA object_type, string GUID ) : int
object_type EA
GUID string
Результат int

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

public ItemShortDescription ( ) : string
Результат string

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

public LocateCurrentElement ( ) : void
Результат void

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

public ReplaceAll ( ) : void
Результат void

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

Replace all occurences of "Search string" by "Replace String" in current selected item.
public ReplaceItem ( ) : int
Результат int

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

Output 'from' string to rtfBox and mark all possible changes. It returns the count of possible changes
public SetRtfBoxText ( System.Windows.Forms.RichTextBox rtfBox, string from ) : int
rtfBox System.Windows.Forms.RichTextBox
from string
Результат int

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

public currentItem ( ) : FindAndReplaceItem
Результат FindAndReplaceItem

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

public lastItem ( ) : FindAndReplaceItem
Результат FindAndReplaceItem