MonoReports.Model.Report.AddGroup C# (CSharp) Méthode

AddGroup() public méthode

public AddGroup ( string fieldName ) : void
fieldName string
Résultat void
        public void AddGroup(string fieldName)
        {
            Group gr = new Group { GroupingFieldName = fieldName };
            Groups.Add (gr);
            GroupHeaderSection gh = new GroupHeaderSection { Name = "Group header " + gr.GroupingFieldName, Size = new Model.Size (Width, 20), Location = new Point (0, 150) };
            GroupHeaderSections.Add (gh);
            GroupFooterSection gf = new GroupFooterSection { Name = "Group footer " + gr.GroupingFieldName, Size = new Model.Size (Width, 20), Location = new Point (0, 250) };
            GroupFooterSections.Add (gf);
        }