System.Windows.Forms.ContentsResizedEventArgs Class

Provides data for the RichTextBox.ContentsResized event.

See Also: ContentsResizedEventArgs Members

Syntax

public class ContentsResizedEventArgs : EventArgs

Remarks

This event is raised when the bounding rectangle necessary to accept new text changes. If the text within the control spans multiple lines, the requested rectangle will always be the width of the control. You can handle this event in your control to implement auto-resizing for multiline System.Windows.Forms.RichTextBox controls. The System.Windows.Forms.ContentsResizedEventArgs identifies the requested size of the System.Windows.Forms.RichTextBox.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0