Justify property (WinStudio scripts)
Applies To
IWSFormComponent interface
Definition
Sets or returns a value that determines whether a form component is justified right, left, center, or uses the system default setting.
Set Syntax
object.Justify = string
| Part | Description | 
| object | Required. A reference to a valid form object. | 
| string | Required.
					 Determines the value to which the property should be set. Valid values include: 
 | 
Get Syntax
object.Justify
| Part | Description | 
| object | Required. A reference to a valid form object. | 
Remarks
In the get syntax, a return value of:
- D indicates that the component is set to use the Default justification setting.
- L indicates that the component is set to be left-justified.
- C indicates that the component is set to be centered.
- R indicates that the component is set to be right-justified.
Example
Sub Main()
   Dim myComp As String
   myComp = ThisForm.Components("static1").Justify
   Application.ShowMessage(myComp)
   If myComp = "R" Then
      myComp = "C"
      Application.ShowMessage("Label will be centered.")
   ElseIf myComp = "C" Then
      myComp = "L"
      Application.ShowMessage("Label will be left-justified.")
   Else
      myComp = "R"
      Application.ShowMessage("Label will be right-justified.")
   End If
End Sub