Esempio n. 1
0
        public int GetHeight()
        {
            CT_TrPr trPr = this.GetTrPr();

            if (trPr.SizeOfTrHeightArray() != 0)
            {
                return((int)trPr.GetTrHeightArray(0).val);
            }
            return(0);
        }
Esempio n. 2
0
        /**
         * This element specifies the height of the current table row within the
         * current table. This height shall be used to determine the resulting
         * height of the table row, which may be absolute or relative (depending on
         * its attribute values). If omitted, then the table row shall automatically
         * resize its height to the height required by its contents (the equivalent
         * of an hRule value of auto).
         *
         * @param height
         */
        public void SetHeight(int height)
        {
            CT_TrPr   properties = GetTrPr();
            CT_Height h          = properties.SizeOfTrHeightArray() == 0 ? properties.AddNewTrHeight() : properties.GetTrHeightArray(0);

            h.val = (ulong)height;
        }
Esempio n. 3
0
        /**
         * This element specifies the height of the current table row within the
         * current table. This height shall be used to determine the resulting
         * height of the table row, which may be absolute or relative (depending on
         * its attribute values). If omitted, then the table row shall automatically
         * resize its height to the height required by its contents (the equivalent
         * of an hRule value of auto).
         *
         * @return height
         */
        public int GetHeight()
        {
            CT_TrPr properties = GetTrPr();

            return(properties.SizeOfTrHeightArray() == 0 ? 0 : (int)properties.GetTrHeightArray(0).val);
        }
Esempio n. 4
0
        public void SetHeight(int height)
        {
            CT_TrPr trPr = this.GetTrPr();

            (trPr.SizeOfTrHeightArray() == 0 ? trPr.AddNewTrHeight() : trPr.GetTrHeightArray(0)).val = (ulong)height;
        }