CategoryEditor.GetImage Method
When overridden in a derived class, returns an object that the host can place into a ContentControl in order to display it.
Namespace: Microsoft.Windows.Design.PropertyEditing
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Function GetImage ( _
desiredSize As Size _
) As Object
public abstract Object GetImage(
Size desiredSize
)
public:
virtual Object^ GetImage(
Size desiredSize
) abstract
abstract GetImage :
desiredSize:Size -> Object
public abstract function GetImage(
desiredSize : Size
) : Object
Parameters
- desiredSize
Type: System.Windows.Size
The desired size of the image to return. This method should make the best attempt in matching the requested size, but it does not guarantee it.
Return Value
Type: System.Object
An object that contain an icon for the category editor.
Remarks
This icon may be used to adorn the editor for this category in a collapsed mode, should it support one.
As of this writing, only Microsoft Expression Blend uses this method.
.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.
See Also
Reference
Microsoft.Windows.Design.PropertyEditing Namespace