This topic has not yet been rated - Rate this topic

WebPart.OverflowAuto Property

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)
Available in Sandboxed Solutions: No
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.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Wrong SDK description
How can you overwrite or set this property if its read-only (get).