An instance of the ContentsClass class is used to serialize the contents of the tree control.
There is only one instance of the ContentsClass object for one SftTree/NET control. It is accessed using the SftTree.Contents property.
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
Inheritance
public class ContentsClass : System.ComponentModel.INotifyPropertyChanged, System.Runtime.Serialization.ISerializable;
Public Class ContentsClass
Implements System.ComponentModel.INotifyPropertyChanged
Implements System.Runtime.Serialization.ISerializableThis class cannot be instantiated.
![]() | Document | Defines the XML document representing the contents of the tree control. |
![]() ![]() | Equals | Determines whether the specified object is equal to the current object. |
![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. |
![]() ![]() | GetHashCode | Serves as the default hash function. |
![]() ![]() | GetType | Gets the Type of the current instance. |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. |
![]() ![]() ![]() | ReferenceEquals | Determines whether the specified Object instances are the same instance. |
![]() ![]() | ToString | Returns a string that represents the current object. |
![]() | PropertyChanged | Occurs when a property of a ContentsClass instance is modified. |
// sftTree1
//
this.sftTree1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.sftTree1.Columns.Collection.AddRange(new Softelvdm.SftTreeNET.ColumnClass[] {
new Softelvdm.SftTreeNET.ColumnClass(210, 0, true, true, false, 0, 0, false, false, false, false, true, true, 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, 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";See Also Classes | SftTree/NET 3.0