Limits in VSTA in ZenOn editor

Limits in VSTA in ZenOn editor

I want to count all limit of a internal variable with the following code :
C# Code:

public void MacroChangeVar()
{
int Test;
Test = this.ActiveDocument.Variables().Item("TestVariable").Limits().Count;
System.Windows.Forms.MessageBox.Show(Test.ToString());
}

But the return value of the function is Nothing.
The variable has 3 limits but i can't read these count value.
Can you give me an example how i can read out this count value.
Other properties/functions like this.ActiveDocument.Variables().Item("TestVariable").Tagname = "This is a test variable"; work very good.

This is a migrated post! Originally posted on 30.08.2011 by user ippela. Please be aware that information can be outdated.