Dela via


RibbonWindowSmallIconConverter.Convert Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Converts an icon to its small size variant if one is available.

Namespace:  Microsoft.Windows.Controls.Ribbon.Primitives
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Function Convert ( _
    value As Object, _
    targetType As Type, _
    parameter As Object, _
    culture As CultureInfo _
) As Object
public Object Convert(
    Object value,
    Type targetType,
    Object parameter,
    CultureInfo culture
)
public:
virtual Object^ Convert(
    Object^ value, 
    Type^ targetType, 
    Object^ parameter, 
    CultureInfo^ culture
) sealed
abstract Convert : 
        value:Object * 
        targetType:Type * 
        parameter:Object * 
        culture:CultureInfo -> Object 
override Convert : 
        value:Object * 
        targetType:Type * 
        parameter:Object * 
        culture:CultureInfo -> Object 
public final function Convert(
    value : Object, 
    targetType : Type, 
    parameter : Object, 
    culture : CultureInfo
) : Object

Parameters

  • targetType
    Type: System.Type
    The type to be converted to.

Return Value

Type: System.Object
The 16x16 image variant of the specified icon if one is available; otherwise, the original image.

Implements

IValueConverter.Convert(Object, Type, Object, CultureInfo)

.NET Framework Security

See Also

Reference

RibbonWindowSmallIconConverter Class

Microsoft.Windows.Controls.Ribbon.Primitives Namespace