Window.Top Property

ClosedDescription

Sets and returns the distance, in pixels, of the top edge of the window from the top edge of the screen.

ClosedSyntax

Window.Top = Value

Where Value is the Y-coordinate of the window's top edge in pixels.

ClosedRequirements

Version

BarTender 6.12 or higher

Edition

Automation, Enterprise Automation

ClosedRemarks

Setting this property does not affect the width or height of the window.

ClosedVB.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 Y coordinate of the application window

btApp.Window.Top = 250

'End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges)

ClosedC# 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 Y coordinate of the application window

btApp.Window.Top = 250;

// End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);

Related Topics