ContentsResizedEventArgs Class
Provides data for the ContentsResized event.
For a list of all members of this type, see ContentsResizedEventArgs Members.
System.Object
System.EventArgs
System.Windows.Forms.ContentsResizedEventArgs
[Visual Basic] Public Class ContentsResizedEventArgs Inherits EventArgs [C#] public class ContentsResizedEventArgs : EventArgs [C++] public __gc class ContentsResizedEventArgs : public EventArgs [JScript] 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.
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 RichTextBox controls. The ContentsResizedEventArgs identifies the requested size of the RichTextBox.
Requirements
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