Examples: Alignment property (NotesViewColumn - LotusScript®)

This agent toggles the alignment.

Sub Initialize
  Dim session As New NotesSession
  Dim db As NotesDatabase
  Dim view As NotesView
  Dim vc As NotesViewColumn
  Set db = session.CurrentDatabase
  Set view = db.GetView("Categorized")
  Set vc = view.Columns(1)
  If vc.Alignment = VC_ALIGN_LEFT Then
    vc.Alignment = VC_ALIGN_RIGHT
  Elseif vc.Alignment = VC_ALIGN_RIGHT Then
    vc.Alignment = VC_ALIGN_CENTER
  Else
    vc.Alignment = VC_ALIGN_LEFT
  End If
End Sub