Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win.DPISupporting Namespace / DPIUtils Class / GetIcon Method / GetIcon(Assembly,String,Int32) Method
The assembly that contain the specified icon resource. If the assembly is null, that mean the specified icon resource is file.
The path of specifed icon resource.
Size of icon.


In This Topic
    GetIcon(Assembly,String,Int32) Method
    In This Topic
    Gets the icon from the specified resource.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetIcon( _
       ByVal assembly As Assembly, _
       ByVal resourcePath As String, _
       ByVal size As Integer _
    ) As Icon
    'Usage
     
    
    Dim assembly As Assembly
    Dim resourcePath As String
    Dim size As Integer
    Dim value As Icon
     
    value = DPIUtils.GetIcon(assembly, resourcePath, size)
    public static Icon GetIcon( 
       Assembly assembly,
       string resourcePath,
       int size
    )

    Parameters

    assembly
    The assembly that contain the specified icon resource. If the assembly is null, that mean the specified icon resource is file.
    resourcePath
    The path of specifed icon resource.
    size
    Size of icon.
    See Also