System.Windows.Forms.ContentsResizedEventArgs Class

Provides data for the RichTextBox.ContentsResized event.

See Also: ContentsResizedEventArgs Members


public class ContentsResizedEventArgs : EventArgs


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.


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