共用方式為


AspMenu.UseSimpleRendering property

Controls whether to use simple unordered list-based rendering or the default Microsoft ASP.NET table-based rendering.

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

Syntax

'Declaration
Public Property UseSimpleRendering As Boolean
    Get
    Set
'Usage
Dim instance As AspMenu
Dim value As Boolean

value = instance.UseSimpleRendering

instance.UseSimpleRendering = value
public bool UseSimpleRendering { get; set; }

Property value

Type: System.Boolean
true if the menu uses simple rendering; otherwise, false. The default is false.

Remarks

Set this property to true to cause the menu to render as an unordered list of anchor elements that is more easily styled using cascading style sheets (CSS) and more accessible.

See also

Reference

AspMenu class

AspMenu members

Microsoft.SharePoint.WebControls namespace