This project has moved and is read-only. For the latest updates, please go here.

How To add custom property

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

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

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