M
Medes
Hi,
I want to get the name of a custom property.
I know that you can get number of custom properties in a document by using
following code, but how can i get the name of them?
AllCustomProps = this.WordApplication.ActiveDocument.CustomDocumentProperties;
Type TypeOfAllCustomProps = AllCustomProps.GetType();
int NumberOfProperties =
Int32.Parse(TypeOfAllCustomProps.InvokeMember("Count",
BindingFlags.Default | BindingFlags.GetProperty,
null, AllCustomProps, new object[] { }).ToString());
I want to get the name of a custom property.
I know that you can get number of custom properties in a document by using
following code, but how can i get the name of them?
AllCustomProps = this.WordApplication.ActiveDocument.CustomDocumentProperties;
Type TypeOfAllCustomProps = AllCustomProps.GetType();
int NumberOfProperties =
Int32.Parse(TypeOfAllCustomProps.InvokeMember("Count",
BindingFlags.Default | BindingFlags.GetProperty,
null, AllCustomProps, new object[] { }).ToString());