Left property (WinStudio scripts)

Applies To

  • IWSForm interface
  • IWSFormComponent interface

Definition

Form objects: Sets or returns the measure in character units from the left edge of a form to the left edge of the WinStudio workspace. Read/write.

Component objects: Returns the measure in character units from the left edge of a component to the left edge of the form. Read-only.

Get Syntax

object.Left

  Part   Description
object Required. A reference to a form or component object.

Set Syntax

object.Left = Double

  Part   Description
object Required. A reference to a form or component object.
Double Required. Form objects only. An expression that evaluates to a Double and sets the distance in character units from the left edge of the form to the left edge of the WinStudio workspace.

Remarks

The return value is a Double that indicates the distance in character units from:

  • (For forms) The left side of the workspace to the left edge of the form.
  • (For components) The left side of the form to the left edge of the component.

Examples

For a form:

Sub Main()
    Application.ShowMessage("The left side of this form is currently " & _
       ThisForm.Left & " units from the left.")
    ThisForm.Left = 20
    Application.ShowMessage("The left side of this form has been moved to " & _
       ThisForm.Left & " units from the left.")
End Sub

For a component:

Sub Main()
   Application.ShowMessage("The left side of the grid is " & _
      ThisForm.Components("grid1").Left & _
      " character units from the edge of the form.")
End Sub