MonobjcMonobjc Documented Class Library
ConvertFontToNotHaveTrait Method (aFont, fontTraitMask)
NamespacesMonobjc.AppKitNSFontManagerConvertFontToNotHaveTrait(NSFont, NSFontTraitMask)

Returns an NSFont object with the same traits as the given font, except for the traits in the given font trait mask, which are removed.

Original signature is '- (NSFont *)convertFont:(NSFont *)aFont toNotHaveTrait:(NSFontTraitMask)fontTraitMask'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSFont ConvertFontToNotHaveTrait(
	NSFont aFont,
	NSFontTraitMask fontTraitMask
)
Public Overridable Function ConvertFontToNotHaveTrait ( _
	aFont As NSFont, _
	fontTraitMask As NSFontTraitMask _
) As NSFont
public:
virtual NSFont^ ConvertFontToNotHaveTrait(
	NSFont^ aFont, 
	NSFontTraitMask fontTraitMask
)
Parameters
aFont (NSFont)
The font whose traits are matched.
fontTraitMask (NSFontTraitMask)
The mask for the traits to remove, created using the C bitwise OR operator to combine the traits described in “Constants.” Using NSUnboldFontMask or NSUnitalicFontMask removes the bold or italic trait, respectively.
Return Value
A font with matching traits minus the given traits, or aFont if it can’t be converted.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)