Nexus.UI.FontSet.FontSet C# (CSharp) Method

FontSet() public method

Creates a new instance of the FontSet class.
If the or parameters are null. If the or parameters are zero length, or the parameters contains null, or empty string entires.
public FontSet ( string families ) : System
families string The list of font familes this set uses. The familes will try and be used in the order they were passed, e.g. index 0 to n.
return System
		public FontSet(string[] families)
		{
			if (families == null)
				throw new ArgumentNullException("families");

			if (families.Length == 0)
				throw new ArgumentException("Invalid argument passed, the families parameter can't be zero length.");

			if (Array.Exists(families, delegate(string family) { return string.IsNullOrEmpty(family); }))
				throw new ArgumentException("Invalid argument passed, the families parameter contains a null or empty value.");

			this.Families = families;
		}