←Select platform

BeginUpdate Method

Summary

Begins a process to update the elements (nodes) of an SVG document.

Syntax
C#
VB
Java
Objective-C
C++
public void BeginUpdate() 
Public Sub BeginUpdate()  
- (void)beginUpdate 
public void beginUpdate() 
public: 
void BeginUpdate();  

Remarks

The user can modify the elements of an SVG document using EnumerateElements and update the node's elements or attributes.

After modifying the values of an SVG document using SvgNodeHandle, it may be necessary to re-calculate the document flat, render optimization and bounding rectangles (refer to SVG Size, Bounds and Flat more information). Therefore, it is best to call BeginUpdate before making any updates to the document and to call EndUpdate when finished. The engine will check during EndUpdate whether any internal state values need to be re-calculated and updated as necessary.

BeginUpdate increments an internal counter and EndUpdate decrements it. When the counter reaches 0 again, the document is updated. Therefore, the user can chain calls to BeginUpdate / EndUpdate pair and the update will only occur once at the end.

Example

For an example, refer to EnumerateElements.

Requirements

Target Platforms

Help Version 20.0.2019.3.12
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Svg Assembly