コード例 #1
0
        private static StringAlignment ToStringAlignment(StringAlignment2 alignment)
        {
            switch (alignment)
            {
            case StringAlignment2.Center:
                return(StringAlignment.Center);

            case StringAlignment2.Near:
                return(StringAlignment.Near);

            case StringAlignment2.Far:
                return(StringAlignment.Far);

            default:
                throw new Exception("Never get here.");
            }
        }
コード例 #2
0
ファイル: GraphUtils.cs プロジェクト: JurgenCox/compbio-base
 private static StringAlignment ToStringAlignment(StringAlignment2 alignment)
 {
     switch (alignment){
         case StringAlignment2.Center:
             return StringAlignment.Center;
         case StringAlignment2.Near:
             return StringAlignment.Near;
         case StringAlignment2.Far:
             return StringAlignment.Far;
         default:
             throw new Exception("Never get here.");
     }
 }