C# Class XWord.Util.UtilityClass

Provides misc functionality for the add-in.
Afficher le fichier Open project: xwiki-contrib/xwiki-office

Méthodes publiques

Méthode Description
GenerateUniqueFileName ( String initialFileName, String folder ) : String

Generates an unique filename based on the existing files in a folder.

IsWildcardMatch ( String wildcard, String text, bool casesensitive ) : bool

Compares a string withs another string that contains whildcards.

Method Details

GenerateUniqueFileName() public static méthode

Generates an unique filename based on the existing files in a folder.
public static GenerateUniqueFileName ( String initialFileName, String folder ) : String
initialFileName String The initial file name.
folder String The folder where the file will be saved.
Résultat String

IsWildcardMatch() public static méthode

Compares a string withs another string that contains whildcards.
public static IsWildcardMatch ( String wildcard, String text, bool casesensitive ) : bool
wildcard String The wildcard string.
text String The compared strings.
casesensitive bool Specifies if the comparation shouls be case sensitive or not.
Résultat bool