Window.Width Property

OpenDescription

Sets and returns the width of the window in pixels.

OpenSyntax

Window.Width = Value

Where Value is the width of the application window in pixels.

OpenRequirements

Version

BarTender 6.00 or higher

Edition

Automation, Enterprise Automation

OpenRemarks

Changes to the Window.Width property are independent of the Window.Left property and the Window.Top property.

OpenVB.NET Example

'Declare a BarTender application variable

Dim btApp As BarTender.Application

'Create a new instance of BarTender

btApp = New BarTender.Application

'Set the BarTender application visible

btApp.Visible = True

'Set the width of the application window

btApp.Window.Width = 250

'End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges)

OpenC# Example

// Declare a BarTender application variable

BarTender.Application btApp;

// Create a new instance of BarTender

btApp = new BarTender.Application();

// Set the BarTender application visible

btApp.Visible = true;

// Set the width of the application window

btApp.Window.Width = 250;

// End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);

Related Topics