iTextSharp.text.FontFactoryImp.IsRegistered C# (CSharp) Метод

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

Checks if a certain font is registered.
public IsRegistered ( string fontname ) : bool
fontname string the name of the font that has to be checked
Результат bool
        public virtual bool IsRegistered(string fontname)
        {
            return trueTypeFonts.ContainsKey(fontname.ToLower(CultureInfo.InvariantCulture));
        }

Usage Example

Пример #1
0
 /// <summary>
 /// Checks whether the given font is contained within the object
 /// </summary>
 /// <param name="fontname">the name of the font</param>
 /// <returns>true if font is contained within the object</returns>
 public static bool Contains(string fontname)
 {
     return(fontImp.IsRegistered(fontname));
 }