asp.net.ph

SiteMapPath.PathSeparatorStyle Property

System.Web.UI.WebControls Namespace   SiteMapPath Class


.NET Framework version 2.0

Sets or retrieves the style properties for the path separator in a SiteMapPath control.

Syntax


Script SiteMapPath.PathSeparatorStyle.Property [ = enumValue ]

Property Value

A Style object that defines the style properties for the path separator in a SiteMapPath.

Remarks

Use the PathSeparatorStyle property to specify the appearance of the path separator that is rendered between navigation path nodes in a SiteMapPath control. Common style attributes that can be set include forecolor, backcolor, font, and content alignment. Providing different node styles enhances the appearance of the SiteMapPath control.

The PathSeparatorStyle subproperties can be set declaratively using either of the following methods:

  • Include an attribute in the opening tag of the SiteMapPath control in the form PathSeparatorStyle-Property
    <asp:sitemappath ... 
       pathseparatorstyle-property=value
       ... >
    
    </asp:sitemappath>
  • Include a <PathSeparatorStyle> element between the opening and closing tags of the SiteMapPath control
    <asp:sitemappath ... >
    
       <pathseparatorstyle
          ... property definitions here />
    
    </asp:sitemappath>

The subproperties can also be set programmatically in the form PathSeparatorStyle.Property.

NOTE: If a PathSeparatorTemplate property is defined, both the PathSeparator and PathSeparatorStyle properties are ignored.

For a list of style properties that can be set, see the Style class.

See Also

SiteMapPath Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph