Esempio n. 1
0
    public XTypefaceHack(string fontFamilyName, XFontStyle style, XFontWeight weight, XFontStretch stretch)
    {
      if (String.IsNullOrEmpty(fontFamilyName))
        throw new ArgumentNullException("fontFamilyName");

      this.fontFamilyName = fontFamilyName;
      this.style = style;
      this.weight = weight;
      this.stretch = stretch;
    }
Esempio n. 2
0
        public XTypefaceHack(string fontFamilyName, XFontStyle style, XFontWeight weight, XFontStretch stretch)
        {
            if (String.IsNullOrEmpty(fontFamilyName))
            {
                throw new ArgumentNullException("fontFamilyName");
            }

            this.fontFamilyName = fontFamilyName;
            this.style          = style;
            this.weight         = weight;
            this.stretch        = stretch;
        }