Esempio n. 1
0
        /// <summary>
        /// Gets the name of the property.
        /// </summary>
        /// <param name="propertyId">The property id.</param>
        /// <returns></returns>
        public static String GetPropertyName(short propertyId)
        {
            InitProps();
            EscherPropertyMetaData o = (EscherPropertyMetaData)properties[propertyId];

            return(o == null ? "unknown" : o.Description);
        }
Esempio n. 2
0
        /// <summary>
        /// Gets the type of the property.
        /// </summary>
        /// <param name="propertyId">The property id.</param>
        /// <returns></returns>
        public static byte GetPropertyType(short propertyId)
        {
            InitProps();
            EscherPropertyMetaData escherPropertyMetaData = (EscherPropertyMetaData)properties[propertyId];

            return(escherPropertyMetaData == null ? (byte)0 : escherPropertyMetaData.Type);
        }
Esempio n. 3
0
 /// <summary>
 /// Adds the prop.
 /// </summary>
 /// <param name="s">The s.</param>
 /// <param name="data">The data.</param>
 private static void AddProp(int s, EscherPropertyMetaData data)
 {
     properties[(short)s] = data;
 }