/// <summary> /// Adds a hyphen index to this label /// </summary> /// <param name="hyphenIndex">Hyphen index to add</param> public void AddHyphenIndex(HyphenationIndex hyphenIndex) { if (_hyphenIndexes.Contains(hyphenIndex)) { throw new Exception("Attempted to add duplicate hyphen index"); } _hyphenIndexes.Add(hyphenIndex); }
/// <summary> /// Gets whether or not this label contains a hyphen index /// </summary> /// <param name="hyphenIndex">Index to check for</param> /// <returns>True if this label contains the given index, false otherwise</returns> public bool ContainsHyphenIndex(HyphenationIndex hyphenIndex) { return(_hyphenIndexes.Contains(hyphenIndex)); }