OverflowAuto Property
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

WebPart.OverflowAuto Property

Windows SharePoint Services 3

Gets a value indicating whether you can override the default setting for the cascading style sheet (CSS) overflow attribute when rendering the Web Part.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

protected virtual bool OverflowAuto { get; }

Property Value

Type: System.Boolean
true to specify the default behavior; otherwise, false. The default is true.

The CSS overflow attribute setting determines how to manage when content exceeds the height and/or width of an HTML object. By default, the overflow attribute for the body of a Web Part is set to auto, which causes content to be clipped to the size of the Web Part frame, and scroll bars to be added when necessary. Setting the OverflowAuto property to false allows you to override the default behavior.

Show:
© 2016 Microsoft