//public static XFontWeight FromOpenTypeWeight(int weightValue) //{ // if (weightValue < 1 || weightValue > 999) // throw new ArgumentOutOfRangeException("weightValue", "Parameter must be between 1 and 999."); // return new XFontWeight(weightValue); //} /// <summary> /// Compares the specified font weights. /// </summary> public static int Compare(XFontWeight left, XFontWeight right) { return(left._weight - right._weight); }
/// <summary> /// Determines whether the specified <see cref="XFontWeight"/> is equal to the current <see cref="XFontWeight"/>. /// </summary> public bool Equals(XFontWeight obj) { return(this == obj); }