private static string GetVerticalAlign(WSldVerticalTextAlignEnum src) { switch (src) { case WSldVerticalTextAlignEnum.eVerticalTextAlign_Bottom: return("bottom"); case WSldVerticalTextAlignEnum.eVerticalTextAlign_Center: return("middle"); default: return("top"); } }
public static string OpenTableColumn(WSldTextAlignEnum textAlign, WSldVerticalTextAlignEnum verticalAlign, string bgColor, string borderStyle, string borderSize, string borderColor, int borderWidth, string width) { return(string.Format(@"<td style=""text-align: {0}; vertical-align: {1}; border-style: {2}; border-width: {3}px; width: {4}; border-color: #{5}; background: #{6}; border-width: {7}"">", GetTextAlign(textAlign), GetVerticalAlign(verticalAlign), borderStyle, borderWidth, width, borderColor, bgColor, borderWidth)); }