ESRI.ArcGIS.ADF.Web
GetRandomColor(Int32) Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web Namespace > Utility Class > GetRandomColor Method : GetRandomColor(Int32) Method




alpha
Alpha Value to be applied to random color
Obtain a random Color with the specified alpha value.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function GetRandomColor( _
   ByVal alpha As Integer _
) As Color
Visual Basic (Usage)Copy Code
Dim alpha As Integer
Dim value As Color
 
value = Utility.GetRandomColor(alpha)
C# 
public static Color GetRandomColor( 
   int alpha
)

Parameters

alpha
Alpha Value to be applied to random color

Return Value

System.Drawing.Color

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.