NewItemFactory.GetImage Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Returns an Object that can be set as the Content of a ContentControl and that is used as an Icon for the requested type by the property editing host.
Namespace: System.Activities.Design.PropertyEditing
Assembly: System.Activities.Design.Base (in System.Activities.Design.Base.dll)
Syntax
'Declaration
Public Overridable Function GetImage ( _
type As Type, _
desiredSize As Size _
) As Object
'Usage
Dim instance As NewItemFactory
Dim type As Type
Dim desiredSize As Size
Dim returnValue As Object
returnValue = instance.GetImage(type, _
desiredSize)
public virtual Object GetImage(
Type type,
Size desiredSize
)
public:
virtual Object^ GetImage(
Type^ type,
Size desiredSize
)
public function GetImage(
type : Type,
desiredSize : Size
) : Object
abstract GetImage :
type:Type *
desiredSize:Size -> Object
override GetImage :
type:Type *
desiredSize:Size -> Object
Parameters
- type
Type: System.Type
Type of the object to look up.
- desiredSize
Type: System.Windows.Size
The desired size of the image to retrieve.
Return Value
Type: System.Object
An object image for the specified type.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 4