Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win.DPISupporting Namespace / DPIUtils Class / GetIcon Method / GetIcon(Assembly,String,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 root name of the resource file without its extension but including any fully qualified namespace name.
The name of the resource to get.
Size of icon.


In This Topic
    GetIcon(Assembly,String,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 baseName As String, _
       ByVal resourceName As String, _
       ByVal size As Integer _
    ) As Icon
    'Usage
     
    
    Dim assembly As Assembly
    Dim baseName As String
    Dim resourceName As String
    Dim size As Integer
    Dim value As Icon
     
    value = DPIUtils.GetIcon(assembly, baseName, resourceName, size)

    Parameters

    assembly
    The assembly that contain the specified icon resource. If the assembly is null, that mean the specified icon resource is file.
    baseName
    The root name of the resource file without its extension but including any fully qualified namespace name.
    resourceName
    The name of the resource to get.
    size
    Size of icon.
    See Also