/// <summary>
 /// Creates section 2 if it is not alReady present.
 /// </summary>
 private void EnsureSection2()
 {
     if (SectionCount < 2)
     {
         MutableSection s2 = new MutableSection();
         s2.SetFormatID(SectionIDMap.DOCUMENT_SUMMARY_INFORMATION_ID2);
         AddSection(s2);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Creates a new summary information
        /// </summary>
        /// <returns>the new summary information.</returns>
        public static SummaryInformation CreateSummaryInformation()
        {
            MutablePropertySet ps = new MutablePropertySet();
            MutableSection     s  = (MutableSection)ps.FirstSection;

            s.SetFormatID(SectionIDMap.SUMMARY_INFORMATION_ID);
            try
            {
                return(new SummaryInformation(ps));
            }
            catch (UnexpectedPropertySetTypeException ex)
            {
                /* This should never happen. */
                throw new HPSFRuntimeException(ex);
            }
        }
 /// <summary>
 /// Creates section 2 if it is not alReady present.
 /// </summary>
 private void EnsureSection2()
 {
     if (SectionCount < 2)
     {
         MutableSection s2 = new MutableSection();
         s2.SetFormatID(SectionIDMap.DOCUMENT_SUMMARY_INFORMATION_ID2);
         AddSection(s2);
     }
 }