Example #1
0
        public static string ToSKTextAlign(this SP.TextAlign textAlign)
        {
            switch (textAlign)
            {
            default:
            case SP.TextAlign.Left:
                return("SKTextAlign.Left");

            case SP.TextAlign.Center:
                return("SKTextAlign.Center");

            case SP.TextAlign.Right:
                return("SKTextAlign.Right");
            }
        }
Example #2
0
        public static TextHAlignment ToTextHAlignment(SP.TextAlign textAlign)
        {
            switch (textAlign)
            {
            default:
            case SP.TextAlign.Left:
                return(TextHAlignment.Left);

            case SP.TextAlign.Center:
                return(TextHAlignment.Center);

            case SP.TextAlign.Right:
                return(TextHAlignment.Right);
            }
        }