Condividi tramite


ImageHelper.GetImage Method (Type, String)

Gets an image from a resource

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Dichiarazione
Public Shared Function GetImage ( _
    type As Type, _
    resourceName As String _
) As Image
public static Image GetImage(
    Type type,
    string resourceName
)
public:
static Image^ GetImage(
    Type^ type, 
    String^ resourceName
)
static member GetImage : 
        type:Type * 
        resourceName:string -> Image 
public static function GetImage(
    type : Type, 
    resourceName : String
) : Image

Parameters

  • type
    Type: System.Type
    A type in the assembly to read resource from

Return Value

Type: System.Drawing.Image

.NET Framework Security

See Also

Reference

ImageHelper Class

GetImage Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace