Ejemplo n.º 1
0
        // 获取类群的主题颜色。
        public static ColorX GetThemeColor(this Taxon taxon)
        {
            if (taxon is null)
            {
                throw new ArgumentNullException();
            }

            //

            return(taxon.GetInheritedRank().GetThemeColor());
        }
Ejemplo n.º 2
0
 // 获取继承的基本分类阶元。
 public static Rank GetInheritedBasicRank(this Taxon taxon)
 {
     return(taxon.GetInheritedRank().BasicRank());
 }