How To add custom property

Mar 25, 2013 at 8:15 PM
Edited Mar 25, 2013 at 9:42 PM
Hi,

In VSTO i can use following code snippet:
properties.Add(propertyName, false, Microsoft.Office.Core.MsoDocProperties.msoPropertyTypeString, propertyValue, Type.Missing);
Tried to use
properties.Add(propertyName, false, typeof(String), propertyValue);
But it doesnt work. Is there equivalent to msoPropertyTypeString in Framework?
Thank You


Fixed
properties.Add(propertyName, false,NetOffice.OfficeApi.Enums.MsoDocProperties.msoPropertyTypeString , propertyValue);