Defines whether this control is initializing.
Class: SoftelvdmUserControl
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET
public bool Initializing { get; set; }
Public Property Initializing As BooleanTrue if initializing, otherwise False.
The default value is False.
Defines whether this control is initializing.
Applications should use the Initializing property to signal that they intend to initialize the control or to apply significant updates and additions to the control.
Use of the Initializing property allows controls to significantly improve performance when changing many properties or when performing updates and additions to the control.
Initializing property is recommended as it increases performance significantly.
namespace DemoSample {
public partial class Form1 : Form {
public Form1() {
InitializeComponent();
}
private void Optimize() {
sftTree1.Initializing = true;
sftTree1.Columns.MakeOptimal(0, false);
sftTree1.RowHeaders.MakeOptimal(0, false);
sftTree1.Splitter.MakeOptimal();
sftTree1.RecalcHorizontalExtent();
sftTree1.Initializing = false;
}
private void AdjustInfo() {
Get
If _Interval <= 0 Then Return 5000
Return _Interval
End Get
End Property
End Class
Private Sub Optimize()
sftTree1.Initializing = True
sftTree1.Columns.MakeOptimal(0, False)
sftTree1.RowHeaders.MakeOptimal(0, False)
sftTree1.Splitter.MakeOptimal()
sftTree1.RecalcHorizontalExtent()
sftTree1.Initializing = False
End Sub
See Also SoftelvdmUserControl Class | Classes | SftTree/NET 3.0