Uređivanje

Dijeli putem


RichTextBox.OnContentsResized(ContentsResizedEventArgs) Method

Definition

Raises the ContentsResized event.

protected:
 virtual void OnContentsResized(System::Windows::Forms::ContentsResizedEventArgs ^ e);
protected virtual void OnContentsResized (System.Windows.Forms.ContentsResizedEventArgs e);
abstract member OnContentsResized : System.Windows.Forms.ContentsResizedEventArgs -> unit
override this.OnContentsResized : System.Windows.Forms.ContentsResizedEventArgs -> unit
Protected Overridable Sub OnContentsResized (e As ContentsResizedEventArgs)

Parameters

e
ContentsResizedEventArgs

A ContentsResizedEventArgs 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 OnContentsResized 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 OnContentsResized(ContentsResizedEventArgs) in a derived class, be sure to call the base class's OnContentsResized(ContentsResizedEventArgs) method so that registered delegates receive the event.

Applies to

See also