コード例 #1
0
 internal FaIcon(string iconId, int unicode, bool locked, string name, FaLicenseType license, IList <string> freeStyles, IList <string> proStyles)
 {
     this.Id         = iconId;
     this.IconId     = iconId;
     this.Unicode    = unicode;
     this.Name       = name;
     this.License    = license;
     this.FreeStyles = freeStyles;
     this.ProStyles  = proStyles;
     this.Locked     = locked;
 }
コード例 #2
0
 /// <summary>
 /// Initializes and returns a new instance of a <see cref="FaIcon"/> object.
 /// </summary>
 /// <param name="iconId">The CSS style sheet name of the icon this instance represents.</param>
 /// <param name="unicode">A <see cref="Int32"/> value that represents the Unicode value of the font.</param>
 /// <param name="locked">A value that indicates if the properties on this instance are locked or not.</param>
 /// <param name="name">A <see cref="String"/> that contains the name of this instance.</param>
 /// <param name="license">Indicates the type of license required to use this icon.</param>
 /// <param name="freeStyles">Lists the styles supported with the free license.</param>
 /// <param name="proStyles">Lists the styles supported with the pro license.</param>
 /// <returns>A newly initialized <see cref="FaIcon"/> object.</returns>
 internal static FaIcon Create(string iconId, int unicode, bool locked, string name, FaLicenseType license, IList <string> freeStyles, IList <string> proStyles)
 {
     return(new FaIcon()
     {
         Id = iconId,
         IconId = iconId,
         Unicode = unicode,
         Locked = locked,
         Name = name,
         License = license,
         FreeStyles = freeStyles,
         ProStyles = proStyles
     });
 }