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."); } }
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."); } }