Redigera

Dela via


RichTextBox.OnVScroll(EventArgs) Method

Definition

Raises the VScroll event.

protected:
 virtual void OnVScroll(EventArgs ^ e);
protected virtual void OnVScroll (EventArgs e);
abstract member OnVScroll : EventArgs -> unit
override this.OnVScroll : EventArgs -> unit
Protected Overridable Sub OnVScroll (e As EventArgs)

Parameters

e
EventArgs

An EventArgs that contains the event data.

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

The OnVScroll method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

When overriding OnVScroll(EventArgs) in a derived class, be sure to call the base class's OnVScroll(EventArgs) method so that registered delegates receive the event.

Applies to

See also