GrapeCity.Windows.SpreadSheet.UI Namespace > GcSpreadSheet Class : DragFillBlock Event |
'Declaration Public Event DragFillBlock As System.EventHandler(Of DragFillBlockEventArgs)
'Usage Dim instance As GcSpreadSheet Dim handler As System.EventHandler(Of DragFillBlockEventArgs) AddHandler instance.DragFillBlock, handler
public event System.EventHandler<DragFillBlockEventArgs> DragFillBlock
The event handler receives an argument of type DragFillBlockEventArgs containing data related to this event. The following DragFillBlockEventArgs properties provide information specific to this event.
Property | Description |
---|---|
AutoFillType | Gets the AutoFillType value used for the fill operation. |
Cancel | (Inherited from System.ComponentModel.CancelEventArgs) |
FillDirection | Gets the direction of the fill. |
FillRange | Gets the range used for the fill operation. |
gcSpreadSheet1.CanUserDragFill = true; private void gcSpreadSheet1_DragFillBlock(object sender, GrapeCity.Windows.SpreadSheet.UI.DragFillBlockEventArgs e) { listBox1.Items.Add(e.AutoFillType.ToString()); listBox1.Items.Add(e.FillDirection.ToString()); listBox1.Items.Add(e.FillRange.RowCount.ToString()); } private void gcSpreadSheet1_DragFillBlockCompleted(object sender, GrapeCity.Windows.SpreadSheet.UI.DragFillBlockCompletedEventArgs e) { listBox1.Items.Add(e.AutoFillType.ToString()); listBox1.Items.Add(e.FillDirection.ToString()); listBox1.Items.Add(e.FillRange.RowCount.ToString()); }
GcSpreadSheet1.CanUserDragFill = True Private Sub GcSpreadSheet1_DragFillBlock(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.DragFillBlockEventArgs) Handles GcSpreadSheet1.DragFillBlock ListBox1.Items.Add(e.AutoFillType.ToString()) ListBox1.Items.Add(e.FillDirection.ToString()) ListBox1.Items.Add(e.FillRange.RowCount.ToString()) End Sub Private Sub GcSpreadSheet1_DragFillBlockCompleted(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.DragFillBlockCompletedEventArgs) Handles GcSpreadSheet1.DragFillBlockCompleted ListBox1.Items.Add(e.AutoFillType.ToString()) ListBox1.Items.Add(e.FillDirection.ToString()) ListBox1.Items.Add(e.FillRange.RowCount.ToString()) End Sub
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)