Reading/Changing an objects enum

lucky101manlucky101man Posts: 0

Hi everyone,

I don't know how to read the current value out of an objects enumerations. How can I tell what an enum is set to.

For example I can create an object which (surely!) contains the enum RenderImgTarget { ActiveView = 0, NewWindow = 1, DirectToFile = 2 }
But how do I read this enum value, and my next question would be how to set it to something new?

var oRenderOptions = oRenderMgr.getRenderOptions();
gets me the object and surely the enum is in this and set to a value, (NewWindow = 1), but I can't figure out the syntax.

I thought it would be
oRenderOptions.RenerImgTarget.valueOf();
or something like that, but I can't figure it out.


Thanks!

Comments

Sign In or Register to comment.