IntegralUI TreeListView User Guide - Lidor Systems
IntegralUI TreeListView User Guide - Lidor Systems
IntegralUI TreeListView User Guide - Lidor Systems
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
• NormalStyle - The default drawing style of the node<br />
• SelectedStyle - The drawing style of node when it’s selected<br />
The list of individual subitem styles:<br />
• DisabledStyle - The drawing style of subitem when it’s disabled<br />
• HoverStyle - The drawing style of subitem when mouse hovers over it<br />
• FormatStyle - Style by which the subitem content is formatted<br />
• NormalStyle - The default drawing style of the subitem<br />
• SelectedStyle - The drawing style of subitem when it’s selected<br />
How to change the appearance of control border<br />
In some cases you may want to change the border of the <strong>TreeListView</strong> to appear differently then<br />
the standard rectangular form. To achieve this goal several properties of the control FormatStyle<br />
needs to be changed. Here is a list of properties which controls a different part of the border:<br />
BorderCornerRadius – holds the value by which the border corner is rounded<br />
BorderCornerShape – responsible for changing the shape of every border corner<br />
BorderLineStyle – determines the thickness of border line<br />
BorderVisibility – determines which side of the border is visible<br />
These properties also exist in format style of every node.<br />
Here is an example where you can see how border can be customized:<br />
[VB]<br />
Imports <strong>Lidor</strong><strong>Systems</strong>.<strong>IntegralUI</strong>.Style<br />
. . .<br />
' Changing the border of the <strong>TreeListView</strong> control<br />
Me.treeListView1.FormatStyle.BorderCornerRadius = 15<br />
Me.treeListView1.FormatStyle.BorderCornerShape.BottomLeft = CornerShape.Squared<br />
Me.treeListView1.FormatStyle.BorderCornerShape.BottomRight =<br />
CornerShape.Chamfered<br />
Me.treeListView1.FormatStyle.BorderCornerShape.TopRight = CornerShape.Squared<br />
Me.treeListView1.FormatStyle.BorderLineStyle = LineStyle.[Double]<br />
' Changing the border of the columns<br />
Me.treeListView1.ColumnFormatStyle.BorderCornerRadius = 7<br />
Me.treeListView1.ColumnFormatStyle.HeaderBorderCornerShape.BottomLeft =<br />
CornerShape.Squared<br />
Me.treeListView1.ColumnFormatStyle.HeaderBorderCornerShape.BottomRight =<br />
CornerShape.Chamfered<br />
Me.treeListView1.ColumnFormatStyle.HeaderBorderCornerShape.TopRight =<br />
CornerShape.Squared<br />
Me.treeListView1.ColumnFormatStyle.HeaderPadding = New Padding(3, 2, 3, 2)<br />
Me.treeListView1.ColumnFormatStyle.FooterBorderCornerShape.BottomLeft =<br />
CornerShape.Squared<br />
Me.treeListView1.ColumnFormatStyle.FooterBorderCornerShape.BottomRight =<br />
CornerShape.Chamfered<br />
Me.treeListView1.ColumnFormatStyle.FooterBorderCornerShape.TopRight =<br />
CornerShape.Squared<br />
Me.treeListView1.ColumnFormatStyle.FooterPadding = New Padding(3, 2, 3, 2)<br />
' Changing the border of the nodes<br />
Me.treeListView1.NodeFormatStyle.BorderCornerRadius = 7<br />
14