예제 #1
0
        /// <summary>
        /// Get the type of vertical alignment for the cell
        /// </summary>
        /// <returns></returns>
        internal VerticalAlignment GetVerticalAlignmentEnum()
        {
            CT_CellAlignment align = _cellXf.alignment;

            if (align != null && align.IsSetVertical())
            {
                return((VerticalAlignment)align.vertical);
            }
            return(VerticalAlignment.Bottom);
        }
예제 #2
0
        /**
         * Get the type of vertical alignment for the cell
         *
         * @return the type of alignment, default value is {@link NPOI.ss.usermodel.VerticalAlignment#BOTTOM}
         * @see NPOI.ss.usermodel.VerticalAlignment
         */
        public VerticalAlignment GetVerticalAlignmentEnum()
        {
            CT_CellAlignment align = _cellXf.alignment;

            if (align != null && align.IsSetVertical())
            {
                return((VerticalAlignment)align.vertical);
            }
            return(VerticalAlignment.BOTTOM);
        }