/// <summary>
        /// Breaks to content units.
        /// </summary>
        /// <param name="layers">The layers.</param>
        /// <param name="options">The options.</param>
        /// <returns></returns>
        /// <exception cref="NotImplementedException">
        /// </exception>
        public List <String> breakToContentUnits(TextDocumentLayerCollection layers, DocumentBlenderFunctionOptions options)
        {
            List <String> units = new List <string>();

            if (options.HasFlag(DocumentBlenderFunctionOptions.pageLevel))
            {
                units.Add(layers.ToString());
                return(units);
            }
            if (options.HasFlag(DocumentBlenderFunctionOptions.blockLevel))
            {
                throw new NotImplementedException();//units.Add(layers.ToString());
                return(units);
            }
            if (options.HasFlag(DocumentBlenderFunctionOptions.sentenceLevel))
            {
                throw new NotImplementedException();
                //units.Add(layers.ToString());
                return(units);
            }
            return(units);
        }
 public static DocumentBlenderFunctionOptions GetBlendingScope(this DocumentBlenderFunctionOptions options)
 {
     if (options.HasFlag(DocumentBlenderFunctionOptions.siteLevel))
     {
         return(DocumentBlenderFunctionOptions.siteLevel);
     }
     else if (options.HasFlag(DocumentBlenderFunctionOptions.pageLevel))
     {
         return(DocumentBlenderFunctionOptions.pageLevel);
     }
     else if (options.HasFlag(DocumentBlenderFunctionOptions.blockLevel))
     {
         return(DocumentBlenderFunctionOptions.blockLevel);
     }
     else if (options.HasFlag(DocumentBlenderFunctionOptions.sentenceLevel))
     {
         return(DocumentBlenderFunctionOptions.sentenceLevel);
     }
     else
     {
         return(DocumentBlenderFunctionOptions.siteLevel);
     }
 }