Version

FindByStandardName Method

Finds the Infragistics.Win.TimeZoneInfo object whose Infragistics.Win.TimeZoneInfo.StandardName property matches the specified standardName, or null (Nothing in VB) if no TimeZoneInfo object was found.
Syntax
'Declaration
 
Public Function FindByStandardName( _
   ByVal standardName As String _
) As Infragistics.Win.TimeZoneInfo
public Infragistics.Win.TimeZoneInfo FindByStandardName( 
   string standardName
)

Parameters

standardName
The standard name for the time zone to find.

Return Value

The TimeZoneInfo object matching the specified name.
Example
The following code sample uses the FindByStandardName method to get the current time in the "Pacific Standard Time" time zone

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinEditors

    Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click
        Dim tzi As TimeZoneInfo = Me.UltraTimeZoneEditor1.FindByStandardName("pacific standard time")
        If Not tzi Is Nothing Then
            Debug.WriteLine("The current time in the '" + tzi.StandardName + "' time zone is: " + tzi.Now.ToShortTimeString())
        End If
    End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinEditors;
using System.Diagnostics;

		private void button1_Click(object sender, System.EventArgs e)
		{
			TimeZoneInfo tzi = this.ultraTimeZoneEditor1.FindByStandardName( "pacific standard time" );
			if ( tzi != null )
				Debug.WriteLine( "The current time in the '" + tzi.StandardName + "' time zone is: " + tzi.Now.ToShortTimeString() );
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also