Class IcicleNode
Node (primitive element) of the Icicle control
Inherited Members
Namespace: FastReport.BG.Icicle
Assembly: FastReport.BG.dll
Syntax
public class IcicleNode : HierarchicalNode, IHierarchicalNode, INode, IRecordOwner, IStyleOwner
Constructors
IcicleNode(IcicleNode, HierarchicalRecord, Icicle)
Constructs a new instance of IcicleNode
Declaration
public IcicleNode(IcicleNode parent, HierarchicalRecord record, Icicle icicle)
Parameters
Type | Name | Description |
---|---|---|
IcicleNode | parent | Parent node reference |
HierarchicalRecord | record | Record which node represents |
Icicle | icicle | Reference to Icicle control which owns this node |
Fields
icicle
Icicle reference
Declaration
protected Icicle icicle
Field Value
Type | Description |
---|---|
Icicle |
Properties
Bounds
Bounding rectangle
Declaration
public override Rectangle Bounds { get; }
Property Value
Type | Description |
---|---|
System.Drawing.Rectangle |
Overrides
Children
Collection of children nodes
Declaration
public IcicleNodes Children { get; }
Property Value
Type | Description |
---|---|
IcicleNodes |
DrawStyle
Style which is used to Draw the node
Declaration
protected virtual Style DrawStyle { get; }
Property Value
Type | Description |
---|---|
Style |
Parent
Parent node reference
Declaration
public IcicleNode Parent { get; }
Property Value
Type | Description |
---|---|
IcicleNode |
Methods
Build(IcicleGeometry, RectangleF)
Build the node and children layout
Declaration
public virtual void Build(IcicleGeometry geometry, RectangleF bounds)
Parameters
Type | Name | Description |
---|---|---|
IcicleGeometry | geometry | Geometry for the node |
System.Drawing.RectangleF | bounds |
Draw(Graphics)
Draws node on graphic context
Declaration
public override void Draw(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphic context |
Overrides
GetNodeAt(Point)
Get node at the given location
Declaration
public override HierarchicalNode GetNodeAt(Point pt)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Point | pt | Location to search for a node |
Returns
Type | Description |
---|---|
HierarchicalNode | found node or null |
Overrides
GetPaletteColor(Int32)
Get color from the color palette for the child at index
Declaration
public virtual Color GetPaletteColor(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of child |
Returns
Type | Description |
---|---|
System.Drawing.Color | Color for the node |
UpdateStyle()
Updates styles.
Declaration
protected virtual void UpdateStyle()