chkShowColumnGroups_Click
(
object sender,
RibbonControlEventArgs e
)
{
AssertValid();
// This method handles the Click event for several RibbonCheckBoxes.
// The RibbonCheckBoxes are distinguished by their Tags, which specify
// an ORed combination of ColumnGroups flags.
Debug.Assert(sender is RibbonCheckBox);
RibbonCheckBox oCheckBox = (RibbonCheckBox)sender;
Debug.Assert(oCheckBox.Tag is ColumnGroups);
this.ThisWorkbook.ShowOrHideColumnGroups( (ColumnGroups)oCheckBox.Tag,
oCheckBox.Checked );
}