private void BuildProperties_LABEL(
vCardPropertyCollection properties,
vCard card)
{
foreach (vCardDeliveryLabel label in card.DeliveryLabels)
{
if (label.Text.Length > 0)
{
vCardProperty property = new vCardProperty("LABEL", label.Text);
if (label.IsDomestic)
property.Subproperties.Add("TYPE", "DOM");
if (label.IsInternational)
property.Subproperties.Add("TYPE", "INTL");
if (label.IsParcel)
property.Subproperties.Add("TYPE", "PARCEL");
if (label.IsPostal)
property.Subproperties.Add("TYPE", "POSTAL");
if (label.IsHome)
property.Subproperties.Add("TYPE", "HOME");
if (label.IsWork)
property.Subproperties.Add("TYPE", "WORK");
// Don't use QUOTED-PRINTABLE.
//property.Subproperties.Add("ENCODING", "QUOTED-PRINTABLE");
properties.Add(property);
}
}
}