Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

CNContactFormatterMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Contacts MBS Mac64bit Plugin 16.3 Yes No No Yes, macOS only No
Function: The CNContactFormatter class defines the different formatting styles for contacts.
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)
Notes: 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.

Feedback, Comments & Corrections

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.


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 which use this class:

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

CNContactFetchRequestMBS   -   CNContactMBS

The biggest plugin in space...

MBS Xojo PDF Plugins