Ejemplo n.º 1
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);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SpecialPropertySet"/> class.
 /// </summary>
 /// <param name="ps">The mutable property Set To be encapsulated by the <c>SpecialPropertySet</c></param>
 public SpecialPropertySet(MutablePropertySet ps)
 {
     delegate1 = ps;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SpecialPropertySet"/> class.
 /// </summary>
 /// <param name="ps">The property Set To be encapsulated by the <c>SpecialPropertySet</c></param>
 public SpecialPropertySet(PropertySet ps)
 {
     delegate1 = new MutablePropertySet(ps);
 }