Class MainWindow Public Sub Method1() ' Dim enumValues = System.Enum.GetValues(GetType(System.Windows.HorizontalAlignment)) ' End Sub End Class