Skip to main content
A newer version of this page is available. .

ChartControl.BeginInit() Method

Starts the ChartControl‘s initialization. Initialization occurs at runtime.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v19.1.UI.dll

Declaration

public void BeginInit()

Remarks

The Visual Studio .NET design-time environment calls this method to start initializing a component used on a form, or by another component. The ChartControl.EndInit method ends the initialization. Use the BeginInit and EndInit methods to prevent the control from recalculating its layout.

Note

Calling the BeginInit method prevents any validation from being performed until the ChartControl.EndInit method is called. This may lead to unexpected results in the case of any initialization errors.

Note that chart’s layout is recalculated in the following cases:

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BeginInit() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also