iTextSharp.text.ElementTags.GetAlignment C# (CSharp) Метод

GetAlignment() публичный статический Метод

Translates the alignment value to a String value.
public static GetAlignment ( int alignment ) : string
alignment int the alignment value
Результат string
        public static string GetAlignment(int alignment) 
        {
            switch (alignment) 
            {
                case Element.ALIGN_LEFT:
                    return ALIGN_LEFT;
                case Element.ALIGN_CENTER:
                    return ALIGN_CENTER;
                case Element.ALIGN_RIGHT:
                    return ALIGN_RIGHT;
                case Element.ALIGN_JUSTIFIED:
                case Element.ALIGN_JUSTIFIED_ALL:
                    return ALIGN_JUSTIFIED;
                case Element.ALIGN_TOP:
                    return ALIGN_TOP;
                case Element.ALIGN_MIDDLE:
                    return ALIGN_MIDDLE;
                case Element.ALIGN_BOTTOM:
                    return ALIGN_BOTTOM;
                case Element.ALIGN_BASELINE:
                    return ALIGN_BASELINE;
                default:
                    return DEFAULT;
            }
        }