ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel Namespace > ILocalVariable Interface : Group Property |
VariableGroupTypeV4 Group {get; set;}
Type: ZennoLab.InterfacesLibrary.ProjectModel.Enums.VariableGroupTypeV4
The group of local variable.
// get local variable ILocalVariable lv = project.Variables["VariableName"]; // if variable is auto-generated if (lv.Group == VariableGroupTypeV4.AutoGenerated) { // show follow message System.Windows.Forms.MessageBox.Show(String.Format("Local variable {0} is auto-generated", lv.Name), "Local variable type information"); } // if variable is user-created if (lv.Group == VariableGroupTypeV4.UserDefined) { // show follow message System.Windows.Forms.MessageBox.Show(String.Format("Local variable {0} is user-created", lv.Name), "Local variable type information"); }
// get local variable $lv = $project->Variables->get_Item("VariableName"); // if variable is auto-generated if ($lv->Group == VariableGroupTypeV4::AutoGenerated) { // show follow message System\Windows\Forms\MessageBox::Show(String::Format("Local variable {0} is auto-generated", $lv->Name), "Local variable type information"); } // if variable is user-created if ($lv->Group == VariableGroupTypeV4::UserDefined) { // show follow message System\Windows\Forms\MessageBox::Show(String::Format("Local variable {0} is user-created", $lv->Name), "Local variable type information"); }
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.