Partager via


CTFontDescriptor.GetAttribute(NSString) Méthode

Définition

Extrait un CTFontDescriptorAttribute à partir du descripteur.

public Foundation.NSObject GetAttribute (Foundation.NSString attribute);
member this.GetAttribute : Foundation.NSString -> Foundation.NSObject

Paramètres

attribute
NSString

NSString représentant un attribut CTFontDescriptor, l’une des clés dans CTFontDescriptorAttributeKey.

Retours

Attribut en tant que NSObject.

Remarques

Vous pouvez utiliser GetAttributes() la méthode pour obtenir tous les attributs à la fois avec un ensemble fortement typé de propriétés.

S’applique à