Spread WPF Documentation
AutoFillType Property (DragFillBlockEventArgs)
Example 


GrapeCity.Windows.SpreadSheet.UI Namespace > DragFillBlockEventArgs Class : AutoFillType Property
Gets the AutoFillType value used for the fill operation.
Syntax
'Declaration
 
Public ReadOnly Property AutoFillType As AutoFillType
'Usage
 
Dim instance As DragFillBlockEventArgs
Dim value As AutoFillType
 
value = instance.AutoFillType
public AutoFillType AutoFillType {get;}

Property Value

The AutoFillType value used for the fill operation.
Example
This example uses the AutoFillType property.
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
See Also

Reference

DragFillBlockEventArgs Class
DragFillBlockEventArgs Members