Description
Signals the object that the batch update is starting.
Syntax
| [Visual Basic .NET] |
|---|
Public Sub BeginUpdate()
|
| [C#] |
|---|
public void BeginUpdate();
|
| [Managed C++] |
|---|
public: void BeginUpdate();
|
| [Java] |
|---|
public beginUpdate();
|
| [Unmanaged C++] |
|---|
public: HRESULT BeginUpdate();
|
Example
Delay graphics updates while manipulating properties of an object
| [C#] | Copy Code |
|---|
IAgSatellite satellite = root.CurrentScenario.Children["Satellite1"] as IAgSatellite;
IAgVODataDisplayElement voElt = satellite.VO.DataDisplay[0];
root.BeginUpdate();
voElt.IsVisible = true;
voElt.UseBackground = true;
voElt.BgColor = Color.Green;
voElt.UseBackground = false;
root.EndUpdate();
|
|
Delay graphics updates while manipulating properties of an object
| [Visual Basic .NET] | Copy Code |
|---|
Dim satellite As IAgSatellite = TryCast(root.CurrentScenario.Children("Satellite1"), IAgSatellite) Dim voElt As IAgVODataDisplayElement = satellite.VO.DataDisplay(0)
root.BeginUpdate()
voElt.IsVisible = True voElt.UseBackground = True voElt.BgColor = Color.Green voElt.UseBackground = False
root.EndUpdate()
|
|
See Also