The event handler receives an argument of type BeforeColRegionSplitEventArgs containing data related to this event. The following BeforeColRegionSplitEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel (Inherited from System.ComponentModel.CancelEventArgs) | |
NewColScrollRegion | The new column scroll region (read-only) |
OriginalColScrollRegion | The original column scroll region (read-only) |
Theoriginalcolscrollregionargument returns a reference to a ColScrollRegion object that can be used to set properties of, and invoke methods on, the colscrollregion as it exists before the split. You can use this reference to access any of the returned colscrollregion's properties or methods. However, the Position and Width properties of this colscrollregion are read-only in this event procedure.
The newcolscrollregion argument returns a reference to a ColScrollRegion object that can be used to set properties of, and invoke methods on, the colscrollregion as it will exist after the split. You can use this reference to access any of the returned colscrollregion's properties or methods.
The cancel argument enables you to programmatically prevent the colscrollregion from being split. This argument can be used to prevent the user from splitting the colscrollregion unless a certain condition is met.
This event is generated before a colscrollregion is split, either programmatically, or by user interaction. A colscrollregion can be split programmatically by invoking its Split method.
The BeforeColRegionRemoved event is generated before a colscrollregion is removed.
The BeforeColRegionSize event is generated before a colscrollregion is sized.
The BeforeRowRegionSplit event is generated before a rowscrollregion is split.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2