public void SetMiddleNames(params string[] middleNames) { if (_middleNames == null) { _middleNames = new LabelCollection(this); } else { _middleNames.Clear(); } foreach (string item in middleNames) { _middleNames.Add(item); } }
/// <summary> /// Initialise the FacsimileNumbers to the list of numbers. Clears any existing numbers, further lines can be added through the FacsimileNumbers property. /// </summary> public LabelCollection SetFacsimileNumbers(params string[] numbers) { if (_facsimileNumbers == null) { _facsimileNumbers = new LabelCollection(this); } else { _facsimileNumbers.Clear(); } foreach (string num in numbers) { _facsimileNumbers.Add(num); } return(_facsimileNumbers); }
/// <summary> /// Initialise the ElectronicMailAddress the list of email addresses. Clears any existing addresses, further lines can be added through the ElectronicMailAddress property. /// </summary> public LabelCollection SetElectronicMailAddress(params string[] emails) { if (_electronicMailAddresses == null) { _electronicMailAddresses = new LabelCollection(this); } else { _electronicMailAddresses.Clear(); } foreach (string email in emails) { _electronicMailAddresses.Add(email); } return(_electronicMailAddresses); }