WinStudio

Left Property

Applies To

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:

Examples

Form Example
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
Component Example
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

Related Topics

CharHeight Property

CharWidth Property

Height Property

Resize Method

Top Property

Width Property