Defines the width of the row header area.
Class: RowHeadersClass
Namespace: Softelvdm.SftBoxNET
Assembly: Softelvdm.SftBoxNET
public int Width { get; set; }
Public Property Width As IntegerThe width in pixels or 0 to hide the row header area.
The default value is 50.
Defines the width of the row header area.
The RowHeadersClass.GetOptimalWidth or RowHeadersClass.MakeOptimal methods can be used to calculate or define the optimal width for the row headers. An optimal width allows all cell contents in the row headers to be displayed in their entirety, without being clipped.
foreach (SftBox box in boxes)
box.DropDownPosition = (DropDownPositionEnum)comboPosition.SelectedItem;
}
// Row headers without contents show the row's number, the item's position among all items or an outline number.
private void comboNumbering_SelectedIndexChanged(object sender, EventArgs e) {
RowHeaderNumberingEnum numbering = (RowHeaderNumberingEnum)comboNumbering.SelectedItem;
sftBox7.List.RowHeaders.Numbering = numbering;
sftBox7.List.RowHeaders.Width = numbering == RowHeaderNumberingEnum.None ? 0 : 30;
}
private void comboDarkMode_SelectedIndexChanged(object sender, EventArgs e) {
foreach (SftBox box in boxes)
box.DarkMode = (DarkModeEnum)comboDarkMode.SelectedItem;
}
box.DropDownPosition = CType(ComboPosition.SelectedItem, DropDownPositionEnum)
Next
End Sub
' Row headers without contents show the row's number, the item's position among all items or an outline number.
Private Sub ComboNumbering_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ComboNumbering.SelectedIndexChanged
Dim numbering As RowHeaderNumberingEnum = CType(ComboNumbering.SelectedItem, RowHeaderNumberingEnum)
SftBox7.List.RowHeaders.Numbering = numbering
SftBox7.List.RowHeaders.Width = If(numbering = RowHeaderNumberingEnum.None, 0, 30)
End Sub
Private Sub ComboDarkMode_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ComboDarkMode.SelectedIndexChanged
For Each box As SftBox In boxes
box.DarkMode = CType(ComboDarkMode.SelectedItem, DarkModeEnum)
Next
End SubSee Also RowHeadersClass Class | Classes | SftBox/NET 3.0