public static TextAlignment GetTextAlignment(PrintElementTextAlignment align) { switch (align) { case PrintElementTextAlignment.Center: return(TextAlignment.Center); case PrintElementTextAlignment.Justify: return(TextAlignment.Justify); case PrintElementTextAlignment.Left: return(TextAlignment.Left); case PrintElementTextAlignment.Right: return(TextAlignment.Right); } return(default(TextAlignment)); }
public static string GetTextAligment(PrintElementTextAlignment align) { switch (align) { case PrintElementTextAlignment.Center: return("center"); case PrintElementTextAlignment.Justify: return("justify"); case PrintElementTextAlignment.Left: return("left"); case PrintElementTextAlignment.Right: return("right"); } return(null); }