예제 #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");
            }
        }
예제 #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);
            }
        }