| |||||||
TreeView.NodeIndent PropertySystem.Web.UI.WebControls Namespace TreeView Class .NET Framework version 2.0 Sets or retrieves the indentation amount ( in pixels ) for the child nodes in a TreeView control. Syntax
Property Value
The property is read/write with a default value of 20. RemarksUse the NodeIndent property to control the amount of spacing between the left edge of a child node and the left edge of its parent node.
ExampleThe following example demonstrates how to use the NodeIndent property to control the indentation of child nodes in a TreeView control. <asp:treeview id = "myTreeView" runat = "server"
datasourceid = "siteMap"
nodeindent=0
expanddepth=1>
<levelstyles>
...
</levelstyles>
</asp:treeview>
<asp:sitemapdatasource id = "siteMap" runat = "server" />
See Also |
| ||||||
Check out related books at Amazon
© 2000-2008 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 aspxtreme