public static EnumValue <VerticalAlignmentValues> MapVerticalAligment(VerticalAligment alignToMap) { switch (alignToMap) { case VerticalAligment.Top: return(VerticalAlignmentValues.Top); case VerticalAligment.Center: return(VerticalAlignmentValues.Center); case VerticalAligment.Bottom: return(VerticalAlignmentValues.Bottom); case VerticalAligment.Justify: return(VerticalAlignmentValues.Justify); case VerticalAligment.Distributed: return(VerticalAlignmentValues.Distributed); default: return(VerticalAlignmentValues.Center); } return(VerticalAlignmentValues.Center); }
private static int PdfHorizontaVerticallAlignment(VerticalAligment verticalAligment) { switch (verticalAligment) { case VerticalAligment.Top: return(Element.ALIGN_TOP); case VerticalAligment.Center: return(Element.ALIGN_CENTER); case VerticalAligment.Justify: return(Element.ALIGN_JUSTIFIED); default: return(Element.ALIGN_BOTTOM); } }