Inheritance: System.Windows.Forms.TreeNode
Exemple #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));
            }
        }
Exemple #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));
            }
        }
Exemple #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;
 }