Xceed Chart for WinForms v4.4 Documentation
Welcome to Xceed Chart for WinForms v4.4 / User Guide / Interactivity / Drag Operations / Offset

In This Topic
    Offset
    In This Topic

    The offset feature of the control enables the end user to move the chart margins by pressing the mouse button and then dragging the mouse over the control. The chart will move accordingly, and the View margin properties of the current chart will also change accordingly. 

    The following code enables the offset drag mode:

    VB.NET  

    chartControl1.InteractivityOperations.Clear()

    chartControl1.InteractivityOperations.Add(New OffsetDragOperation())

    C#  

    chartControl1.InteractivityOperations.Clear();

    chartControl1.InteractivityOperations.Add(new OffsetDragOperation());

    Note that because this operation is exclusive, we must also clear the InteractivityOperations collection.

    Related Examples

    Windows Forms: Interactivity\Drag Operations

    See Also

    ChartControl | View