共用方式為


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

Syntax

'Declaration
Protected Overridable ReadOnly Property OverflowAuto As Boolean
    Get
'Usage
Dim value As Boolean

value = Me.OverflowAuto
protected virtual bool OverflowAuto { get; }

Property Value

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

Remarks

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.

See Also

Reference

WebPart Class

WebPart Members

Microsoft.SharePoint.WebPartPages Namespace