Skip to main content

PrintBarManager() Constructor

Initializes a new instance of the PrintBarManager class with the default settings.

Namespace: DevExpress.XtraPrinting.Preview

Assembly: DevExpress.XtraPrinting.v23.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.Printing

Declaration

public PrintBarManager()

Example

This example illustrates how to create PrintControl and PrintBarManager objects at runtime, and link them together.

After creating a PrintBarManager instance, provide all necessary UI elements to it by calling its PrintBarManager.Initialize method and assign a PrintControl to its PrintBarManager.PrintControl property.

using DevExpress.XtraPrinting.Control;
using DevExpress.XtraPrinting.Preview;
// ...

// Create a PrintControl instance and add it to the current form.
PrintControl printControl = new PrintControl();
this.Controls.Add(printControl);

// Create a PrintBarManager object.
PrintBarManager barManager = new PrintBarManager();

// Set the PrintControl to be its parent form.
barManager.Form = printControl;

// Create all bar and menu items for a bar manager and
// assign it to the specified PrintControl object.
barManager.Initialize(printControl);
See Also