サンプルコード
次のコードは、RadioGroupCellにN文字の順およびZ文字の順にラジオボタンを表示します。
Imports GrapeCity.Win.MultiRow ' Z文字の順でラジオボタンを表示 Dim RadioGroupCell1 As New RadioGroupCell() RadioGroupCell1.Items.AddRange(New String() {"AAA", "BBB", "CCC", "DDD"}) RadioGroupCell1.Size = New Size(120, 60) RadioGroupCell1.FlowDirection = Orientation.Horizontal RadioGroupCell1.ColumnCount = 2 ' N文字の順でラジオボタンを表示 Dim RadioGroupCell2 As New RadioGroupCell() RadioGroupCell2.Items.AddRange(New String() {"AAA", "BBB", "CCC", "DDD"}) RadioGroupCell2.Size = New Size(120, 60) RadioGroupCell2.FlowDirection = Orientation.Vertical RadioGroupCell2.ColumnCount = 2 GcMultiRow1.Template = Template.CreateGridTemplate(New Cell() {RadioGroupCell1, RadioGroupCell2})
using GrapeCity.Win.MultiRow; // Z文字の順でラジオボタンを表示 RadioGroupCell radioGroupCell1 = new RadioGroupCell(); radioGroupCell1.Items.AddRange(new string[] {"AAA", "BBB", "CCC", "DDD"}); radioGroupCell1.Size = new Size(120, 60); radioGroupCell1.FlowDirection = Orientation.Horizontal; radioGroupCell1.ColumnCount = 2; // N文字の順でラジオボタンを表示 RadioGroupCell radioGroupCell2 = new RadioGroupCell(); radioGroupCell2.Items.AddRange(new string[] {"AAA", "BBB", "CCC", "DDD"}); radioGroupCell2.Size = new Size(120, 60); radioGroupCell2.FlowDirection = Orientation.Vertical; radioGroupCell2.ColumnCount = 2; gcMultiRow1.Template = Template.CreateGridTemplate(new Cell[] {radioGroupCell1, radioGroupCell2});