HeaderPane
Main
Hide
Share Link
Print

ItemLeafImage Property, SftTree Class

Defines the default image used to display a leaf item's item image.

Class: SftTree
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public Image ItemLeafImage { get; set; }
Public Property ItemLeafImage As Image

Value

The image used to display a leaf item's item image or null/Nothing if there is no default image.

The default value is null/Nothing.

Comments

Defines the default image used to display a leaf item's item image.

The item image is an optional image displayed in the hierarchy area of the hierarchy column. It is only shown if a hierarchy column has been defined (ColumnClass.ShowHierarchy).

Individual items can override the default image using the ItemClass.Image property.

Sample images can be found in the directory C:\Program Files (x86)\Softelvdm\SftTree NET 3.0\Images. E.g., FolderClosed1_16.png, FolderOpen1_16.png and Leaf1_16.png contain suitable sample images for the SftTree.ItemExpandableImage, SftTree.ItemExpandedImage and SftTree.ItemLeafImage properties.

Examples

C#

            new Softelvdm.SftTreeNET.ColumnClass(70, 1, true, true, false, 0, 0, false, false, false, false, true, false, System.Drawing.Color.Empty, System.Drawing.Color.Empty, System.Drawing.Color.Empty, System.Drawing.Color.Empty, Softelvdm.SftTreeNET.GridLinesOptStyleEnum.Default),
            new Softelvdm.SftTreeNET.ColumnClass(70, 2, true, true, false, 0, 0, false, false, false, false, true, false, System.Drawing.Color.Empty, System.Drawing.Color.Empty, System.Drawing.Color.Empty, System.Drawing.Color.Empty, Softelvdm.SftTreeNET.GridLinesOptStyleEnum.Default),
            new Softelvdm.SftTreeNET.ColumnClass(100, 3, true, true, false, 0, 0, false, false, false, false, true, false, System.Drawing.Color.Empty, System.Drawing.Color.Empty, System.Drawing.Color.Empty, System.Drawing.Color.Empty, Softelvdm.SftTreeNET.GridLinesOptStyleEnum.Default)});
            this.sftTree1.Contents = ((Softelvdm.SftTreeNET.ContentsClass)(resources.GetObject("sftTree1.Contents")));
            this.sftTree1.Footers.MaxLines = 3;
            this.sftTree1.ImageScaling = Softelvdm.Controls.ImageScalingEnum.Stretch;
            this.sftTree1.ItemExpandableImage = ((System.Drawing.Image)(resources.GetObject("sftTree1.ItemExpandableImage")));
            this.sftTree1.ItemExpandedImage = ((System.Drawing.Image)(resources.GetObject("sftTree1.ItemExpandedImage")));
            this.sftTree1.ItemLeafImage = ((System.Drawing.Image)(resources.GetObject("sftTree1.ItemLeafImage")));
            this.sftTree1.Location = new System.Drawing.Point(12, 12);
            this.sftTree1.Name = "sftTree1";
            this.sftTree1.PixelScaling = Softelvdm.Controls.PixelScalingEnum.Stretch;
            this.sftTree1.Size = new System.Drawing.Size(494, 199);
            this.sftTree1.Splitter.Left.Columns = 2;
            this.sftTree1.Splitter.Offset = 320;
            this.sftTree1.Splitter.Visible = true;

See Also SftTree Class | Classes | SftTree/NET 3.0