CTFontDescriptor.WithAttributes Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
WithAttributes(NSDictionary) | |
WithAttributes(CTFontDescriptorAttributes) |
WithAttributes(NSDictionary)
public CoreText.CTFontDescriptor WithAttributes (Foundation.NSDictionary attributes);
member this.WithAttributes : Foundation.NSDictionary -> CoreText.CTFontDescriptor
Parameter
- attributes
- NSDictionary
Gibt zurück
Gilt für:
WithAttributes(CTFontDescriptorAttributes)
public CoreText.CTFontDescriptor WithAttributes (CoreText.CTFontDescriptorAttributes attributes);
member this.WithAttributes : CoreText.CTFontDescriptorAttributes -> CoreText.CTFontDescriptor
Parameter
- attributes
- CTFontDescriptorAttributes
Gibt zurück
Hinweise
var attributes = new CTFontDescriptorAttributes () {
FamilyName = "Times New Roman"
};
var newFontDescriptor = myDescriptor.WithAttributes (attributes);