CTFontDescriptor.GetAttribute(NSString) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.