Platforms to show: All Mac Windows Linux Cross-Platform
Back to CNContactFormatterMBS class.
CNContactFormatterMBS.attributedStringFromContact(contact as CNContactMBS, DefaultAttributes as Dictionary = nil) as NSAttributedStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Contacts | MBS Mac64bit Plugin | 16.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
contact: The contact whose name is to be formatted.
attributes: The default attributes to use. For more information, see NSFormatter.
Returns the formatted contact name as an attributed string.
This method behaves similarly to stringFromContact, except that it returns an attributed string. It includes the attribute key CNContactPropertyAttribute whose attribute values are contact property keys, such as CNContactGivenNameKey. This identifies the name components in the formatted contact name.
See also:
CNContactFormatterMBS.Constructor
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Contacts | MBS Mac64bit Plugin | 16.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
CNContactFormatterMBS.stringFromContact(contact as CNContactMBS) as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Contacts | MBS Mac64bit Plugin | 16.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
See also:
Some examples using this method:
The items on this page are in the following plugins: MBS Mac64bit Plugin.