Class DnnUnsortedList
Creates a control that renders its childs as a bulleted list.
Inheritance
Implements
Namespace: DotNetNuke.Web.UI.WebControls
Assembly: DotNetNuke.Web.dll
Syntax
public class DnnUnsortedList : WebControl
Remarks
Control renders an unordered list HTML contol. Each child control in DnnUnsortedList is rendered as a separate list item. To obtain a control over list item style, add a DnnUnsortedListItem to a controls list, and tune this object appropriately.
Constructors
| Improve this Doc View SourceDnnUnsortedList()
Initializes a new instance of the DnnUnsortedList class.
Declaration
public DnnUnsortedList()
Remarks
Control renders an unordered list HTML contol. Each child control in DnnUnsortedList is rendered as a separate list item. To obtain a control over list item style, add a DnnUnsortedListItem to a controls list, and tune this object appropriately.
Properties
| Improve this Doc View SourceListItems
Creates a control that renders its childs as a bulleted list.
Declaration
public virtual UniformControlCollection<DnnUnsortedList, DnnUnsortedListItem> ListItems { get; }
Property Value
| Type | Description |
|---|---|
| UniformControlCollection<DnnUnsortedList, DnnUnsortedListItem> |
Remarks
Control renders an unordered list HTML contol. Each child control in DnnUnsortedList is rendered as a separate list item. To obtain a control over list item style, add a DnnUnsortedListItem to a controls list, and tune this object appropriately.
Methods
| Improve this Doc View SourceAddAttributesToRender(HtmlTextWriter)
Creates a control that renders its childs as a bulleted list.
Declaration
protected override void AddAttributesToRender(HtmlTextWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| HtmlTextWriter | writer |
Remarks
Control renders an unordered list HTML contol. Each child control in DnnUnsortedList is rendered as a separate list item. To obtain a control over list item style, add a DnnUnsortedListItem to a controls list, and tune this object appropriately.
AddListItem(Control[])
A "macro" that adds a set of controls or control as a single list item (li). Use ListItems.Add(UnsortedListItem) method.
Declaration
public void AddListItem(params Control[] listItemControls)
Parameters
| Type | Name | Description |
|---|---|---|
| Control[] | listItemControls |
Remarks
All controls from the list will be rendered as a childs of a single list item.
CreateControlCollection()
Creates a control that renders its childs as a bulleted list.
Declaration
protected sealed override ControlCollection CreateControlCollection()
Returns
| Type | Description |
|---|---|
| ControlCollection |
Remarks
Control renders an unordered list HTML contol. Each child control in DnnUnsortedList is rendered as a separate list item. To obtain a control over list item style, add a DnnUnsortedListItem to a controls list, and tune this object appropriately.