예제 #1
0
        /// <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);
        }
예제 #2
0
 /// <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));
 }