Defines the text of the first TextPartClass object found in the cell's parts collection.
Class: CellBaseClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET
public string Text { get; set; }
Public Property Text As StringThe text of the first TextPartClass object.
The default value is String.Empty.
Defines the text of the first TextPartClass object found in the cell's parts collection.
If an application uses only one TextPartClass and one ImagePartClass object in each cell, it can access their contents directly using the CellBaseClass.Text and CellBaseClass.Image properties, instead of having to "remember" which object in the parts collection is the respective object. In addition, the CellBaseClass.TextPart and CellBaseClass.ImagePart properties are available to access these object. When text is assigned to the CellBaseClass.Text property, a TextPartClass object is automatically added to the cell's parts collection, if one has not yet been added.
DumpValues("EditClickOutside", e);
}
private void sftTree1_EditEnded(object sender, Softelvdm.SftTreeNET.EditEndedEventArgs e) {
DumpValues("EditEnded", e);
// save the new cell text if necessary
if (e.SaveValue)
e.Cell.Text = textBox1.Text;
// hide the text box and make the form the control's parent
textBox1.Visible = false;
textBox1.Enabled = false;
textBox1.Parent = sftTree1.Parent;
}
DumpValues("EditClickOutside", e)
End Sub
Private Sub SftTree1_EditEnded(ByVal sender As System.Object, ByVal e As Softelvdm.SftTreeNET.EditEndedEventArgs) Handles SftTree1.EditEnded
DumpValues("EditEnded", e)
' save the new cell text if necessary
If e.SaveValue Then
e.Cell.Text = TextBox1.Text
End If
' hide the text box and make the form the control's parent
TextBox1.Visible = False
TextBox1.Enabled = False
TextBox1.Parent = SftTree1.Parent
End SubSee Also CellBaseClass Class | Classes | SftTree/NET 3.0