ImageListValueConverter.Convert Method (Int32, IList<ImageSource>, Object, CultureInfo)
This member overrides MultiValueConverter<TSource1, TSource2, TTarget>.Convert(TSource1, TSource2, Object, CultureInfo).
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Déclaration
Protected Overrides Function Convert ( _
imageIndex As Integer, _
imageList As IList(Of ImageSource), _
parameter As Object, _
culture As CultureInfo _
) As ImageSource
'Utilisation
Dim imageIndex As Integer
Dim imageList As IList(Of ImageSource)
Dim parameter As Object
Dim culture As CultureInfo
Dim returnValue As ImageSource
returnValue = Me.Convert(imageIndex, _
imageList, parameter, culture)
protected override ImageSource Convert(
int imageIndex,
IList<ImageSource> imageList,
Object parameter,
CultureInfo culture
)
protected:
virtual ImageSource^ Convert(
int imageIndex,
IList<ImageSource^>^ imageList,
Object^ parameter,
CultureInfo^ culture
) override
abstract Convert :
imageIndex:int *
imageList:IList<ImageSource> *
parameter:Object *
culture:CultureInfo -> ImageSource
override Convert :
imageIndex:int *
imageList:IList<ImageSource> *
parameter:Object *
culture:CultureInfo -> ImageSource
protected override function Convert(
imageIndex : int,
imageList : IList<ImageSource>,
parameter : Object,
culture : CultureInfo
) : ImageSource
Parameters
- imageIndex
Type: System.Int32
- imageList
Type: System.Collections.Generic.IList<ImageSource>
- parameter
Type: System.Object
- culture
Type: System.Globalization.CultureInfo
Return Value
Type: System.Windows.Media.ImageSource
.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.