Returns the cell's parts collection.
Class: CellBaseClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET
public PartsCollectionClass Parts { get; }
Public ReadOnly Property Parts As PartsCollectionClassThe parts collection.
Returns the cell's parts collection.
The cell contents consists of any number of parts.
These parts are currently available: Text (TextPartClass), images (ImagePartClass), gaps for additional spacing (GapPartClass) checkboxes (CheckBoxPartClass), radiobuttons (RadioButtonPartClass), push buttons (ButtonPartClass), dropdown buttons (DropDownButtonPartClass), progressbars (ProgressBarPartClass).
Additional application-defined parts can be implemented by deriving a new class from the GenericPartClass class.
Parts can be added and removed using the methods defined by the PartsCollectionClass class.
string strcheck = "";
try {
strcheck = elem.Attributes["Status"].Value;
} catch {
strcheck = "";
}
if (strcheck != "")
check = (strcheck != "0") ? CheckBoxStateEnum.Checked : CheckBoxStateEnum.Unchecked;
newItem.Cells[0].Parts.Add(new CheckBoxPartClass(check));
} else if (elem.Name == "Radiobutton") {
RadioButtonStateEnum check = RadioButtonStateEnum.Unchecked;
string strcheck = "";
try {
strcheck = elem.Attributes["Status"].Value;
} catch {
strcheck = "";
End Try
If (strcheck <> "") Then
If strcheck <> "0" Then
check = CheckBoxStateEnum.Checked
Else
check = CheckBoxStateEnum.Unchecked
End If
End If
newItem.Cells(0).Parts.Add(New CheckBoxPartClass(check))
ElseIf elem.Name = "Radiobutton" Then
Dim check As RadioButtonStateEnum = RadioButtonStateEnum.Unchecked
Dim strcheck As String = ""
Try
strcheck = elem.Attributes("Status").Value
Catch
strcheck = ""See Also CellBaseClass Class | Classes | SftTree/NET 3.0