แก้ไข

แชร์ผ่าน


DataGridTableStyle.OnPreferredRowHeightChanged(EventArgs) Method

Definition

Raises the PreferredRowHeightChanged event.

protected:
 virtual void OnPreferredRowHeightChanged(EventArgs ^ e);
protected virtual void OnPreferredRowHeightChanged (EventArgs e);
abstract member OnPreferredRowHeightChanged : EventArgs -> unit
override this.OnPreferredRowHeightChanged : EventArgs -> unit
Protected Overridable Sub OnPreferredRowHeightChanged (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 OnPreferredRowHeightChanged 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 OnPreferredRowHeightChanged(EventArgs) in a derived class, be sure to call the base class's OnPreferredRowHeightChanged(EventArgs) method so that registered delegates receive the event.

Applies to