This documentation is archived and is not being maintained.

ContentsResizedEventArgs Class

Provides data for the ContentsResized event.

For a list of all members of this type, see ContentsResizedEventArgs Members.


[Visual Basic]
Public Class ContentsResizedEventArgs
   Inherits EventArgs
public class ContentsResizedEventArgs : EventArgs
public __gc class ContentsResizedEventArgs : public EventArgs
public class ContentsResizedEventArgs extends EventArgs

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


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 RichTextBox controls. The ContentsResizedEventArgs identifies the requested size of the RichTextBox.


Namespace: System.Windows.Forms

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Windows.Forms (in System.Windows.Forms.dll)

See Also

ContentsResizedEventArgs Members | System.Windows.Forms Namespace | RichTextBox