How to retrieve values of an enumeration of given string literal
Posted
by TonyP
on Stack Overflow
See other posts from Stack Overflow
or by TonyP
Published on 2010-05-20T11:09:47Z
Indexed on
2010/05/20
11:30 UTC
Read the original article
Hit count: 166
Need to get a value of an enumeration of a given string literal like "xlCenter" (these values are cut and pasted from Excel Macro). I would like to retrieve the actual constant value (int) -4108="xLCenter" via com marshaling is this possible ? if so how ?
Ideally I am looking for function like this
public int ExcelConstant(string constantName) { ...}
Thanks
© Stack Overflow or respective owner