public static CTFontDescriptor GetFontDescriptor(MACaptionAppearanceDomain domain, ref MACaptionAppearanceBehavior behavior, MACaptionAppearanceFontStyle fontStyle) { nint b = (int)behavior; var rv = new CTFontDescriptor(MACaptionAppearanceCopyFontDescriptorForStyle((int)domain, ref b, (int)fontStyle), owns: true); behavior = (MACaptionAppearanceBehavior)(int)b; return(rv); }
public static CTFontDescriptor GetFontDescriptor(MACaptionAppearanceDomain domain, ref MACaptionAppearanceBehavior behavior, MACaptionAppearanceFontStyle fontStyle) { nint b = (int) behavior; var rv = new CTFontDescriptor (MACaptionAppearanceCopyFontDescriptorForStyle ((int) domain, ref b, (int) fontStyle), owns: true); behavior = (MACaptionAppearanceBehavior) (int) b; return rv; }