Scenes
Winform achieve reads xml configuration file and RadioGroup options ZedGraph dynamic configuration:
https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100540708
In the above realized after the RadioGroup options dynamically configured according to the configuration file,
How to select the item of RadioGroup of value or set value.
Note:
Blog home page:
https://blog.csdn.net/badao_liumang_qizhi
public concern number of
programs overbearing ape
acquisition-related programming e-books, tutorials and push for free download.
achieve
Setting value
// generates a the radioGroup RadioGroup radioGroupY = new new RadioGroup (); the foreach (S TitleModel in radioGrupItems) { // each button corresponding to the option unit Item RadioGroupItem Item = new new RadioGroupItem (); // Set the value of the option value item.Value = s.TitleKey; // set the value of the option to display the value, that described item.description = s.Title; // enable option is enabled item.Enabled = to true ; // add the option to Items in the radiogroup radioGroupY.Properties.Items.Add (Item); } // set the default value selected radioGroupY.EditValue = yList [i] .TitleKey;
Acquisition value
xAxisModel.TitleKey =(string)radioGroupX.Properties.Items[radioGroupX.SelectedIndex].Value;