Class TreeRenderStyleInfo
The cell render style information for a cell inside the VirtualTreeView. TreeRenderStyleInfo is created at runtime before cells are arranged in the tree control and you can change its settings with the PrepareRenderCell event of the tree control. Changes made to this style's properties will only be made for rendering the style and will not be commited back to the tree node.
TreeRenderStyleInfo is bound to the VirtualTreeView and provides a public property to the get access to it. The base class TreeStyleInfo provides properties to access also the TreeNode, TreeColumn, TreeLevel and TreeModel the style is bound to.
When making changes to the style that should be written back to the data store you should make the changes in the ModelStyle. TreeRenderStyleInfo.ModelStyle will fire Changed notifications that a TreeNode can then react to (or ignore if no mechanism for saving changes back has been implemented.)
Implements
Inherited Members
Namespace: Syncfusion.Windows.Controls.VirtualTreeView
Assembly: Syncfusion.GridCommon.WPF.dll
Syntax
public class TreeRenderStyleInfo : TreeStyleInfo, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IRenderCellInfo
Constructors
TreeRenderStyleInfo(VirtualTreeView, TreeStyleInfo)
Initalizes a new style object and associates it with an existing TreeStyleInfoIdentity.
Declaration
public TreeRenderStyleInfo(VirtualTreeView treeControl, TreeStyleInfo modelStyle)
Parameters
Type | Name | Description |
---|---|---|
VirtualTreeView | treeControl | The tree control. |
TreeStyleInfo | modelStyle | The model style. |
Properties
ModelStyle
Gets the underlying model style. Use it to apply changes to style that should be written back to the data store (.e.g. in grid textbox: modelstyle.cellvalue = ...) TreeRenderStyleInfo.ModelStyle will fire Changed notifications that a TreeNode can then react to (or ignore if no mechanism for saving changes back has been implemented.)
Declaration
public TreeStyleInfo ModelStyle { get; }
Property Value
Type |
---|
TreeStyleInfo |
VirtualTreeView
Gets the tree control.
Declaration
public VirtualTreeView VirtualTreeView { get; }
Property Value
Type | Description |
---|---|
VirtualTreeView | The tree control. |