Inheritance: System.Windows.Forms.TreeNode
Ejemplo n.º 1
0
        /// <summary>
        /// Gets the font for the long text.
        /// </summary>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <returns>Font value.</returns>
        public override Font GetContentLongTextFont(PaletteState state)
        {
            KryptonTreeNode kryptonNode = TreeNode as KryptonTreeNode;

            if ((kryptonNode != null) && (kryptonNode.LongNodeFont != null))
            {
                return(kryptonNode.LongNodeFont);
            }
            else
            {
                return(_inherit.GetContentLongTextFont(state));
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the second back color for the long text.
        /// </summary>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <returns>Color value.</returns>
        public override Color GetContentLongTextColor2(PaletteState state)
        {
            KryptonTreeNode kryptonNode = TreeNode as KryptonTreeNode;

            if ((kryptonNode != null) && (kryptonNode.LongForeColor != Color.Empty))
            {
                return(kryptonNode.LongForeColor);
            }
            else
            {
                return(_inherit.GetContentLongTextColor2(state));
            }
        }
Ejemplo n.º 3
0
 private KryptonTreeNode CreateNewItem()
 {
     KryptonTreeNode item = new KryptonTreeNode();
     item.Text = "Item " + (_next++).ToString();
     item.ImageIndex = _rand.Next(imageList.Images.Count - 1);
     item.SelectedImageIndex = item.ImageIndex;
     return item;
 }