PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.8 Assembly / C1.Win.C1Preview Namespace / VisitedDocumentCollection Class / OnSet Method
The item index.
The old item.
The new item.

In This Topic
    OnSet Method (VisitedDocumentCollection)
    In This Topic
    Called when an item is about to be set. Fires the C1.C1Preview.EventCollection.Changing event.
    Syntax
    'Declaration
     
    Protected Overridable Sub OnSet( _
       ByVal index As Integer, _
       ByVal oldValue As Object, _
       ByVal newValue As Object _
    ) 
    protected virtual void OnSet( 
       int index,
       object oldValue,
       object newValue
    )

    Parameters

    index
    The item index.
    oldValue
    The old item.
    newValue
    The new item.
    See Also