public override IFont CreateFont(Object nativeFont) { if (nativeFont is Font) { NETFont lwuitFont = new NETFont(); lwuitFont.font = (Font)nativeFont; return lwuitFont; }else{ throw new ArgumentException("Font type is not valid"); } }
public override IFont CreateFont(Object nativeFont) { if (nativeFont is Font) { NETFont lwuitFont = new NETFont(); lwuitFont.font = (Font)nativeFont; return(lwuitFont); } else { throw new ArgumentException("Font type is not valid"); } }