Platforms to show: All Mac Windows Linux Cross-Platform

CNContactFormatterMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The CNContactFormatter class defines the different formatting styles for contacts.
Example
dim m as new CNMutableContactMBS
m.givenName = "Bob"
m.familyName = "Miller"

dim f as new CNContactFormatterMBS
dim style as Integer = CNContactFormatterMBS.CNContactFormatterStyleFullName
MsgBox CNContactFormatterMBS.stringFromContact(m, style)

This class handles international ordering and delimiting for the contact name components. When formatting many contacts, create an instance of this class and use the instance methods; otherwise use the class methods.

Display Name Order

Constant Value Description
CNContactDisplayNameOrderFamilyNameFirst 2 Display name order by family name first.
CNContactDisplayNameOrderGivenNameFirst 1 Display name order by given name first.
CNContactDisplayNameOrderUserDefault 0 Display name order by user default.

Styles

Constant Value Description
CNContactFormatterStyleFullName 0 Combines the contact name components into a full name.
CNContactFormatterStylePhoneticFullName 1 Combines the contact phonetic name components into a phonetic full name.

This class has no sub classes.

Some examples using this class:


The items on this page are in the following plugins: MBS Mac64bit Plugin.


CNContactFetchRequestMBS   -   CNContactMBS


The biggest plugin in space...