CPF/CPF.ReoGrid/Outline/OutlineGroup.cs

32 lines
437 B
C#
Raw Permalink Normal View History

2024-06-24 10:15:59 +08:00
using System;
using System.Collections.Generic;
using CPF.Drawing;
namespace CPF.ReoGrid.Outline
{
public class OutlineGroup<T> : List<T> where T : IReoGridOutline
{
internal OutlineGroup()
{
}
internal Rect NumberButtonBounds { get; set; }
public void CollapseAll()
{
foreach (T t in this)
{
t.Collapse();
}
}
public void ExpandAll()
{
foreach (T t in this)
{
t.Expand();
}
}
}
}