RibbonControlLengthConverter.CanConvertTo Method (ITypeDescriptorContext, Type)
Determines whether an instance of the RibbonControlLength structure can be converted to an instance of the specified type.
Namespace: Microsoft.Windows.Controls.Ribbon
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
Public Overrides Function CanConvertTo ( _
context As ITypeDescriptorContext, _
destinationType As Type _
) As Boolean
public override bool CanConvertTo(
ITypeDescriptorContext context,
Type destinationType
)
public:
virtual bool CanConvertTo(
ITypeDescriptorContext^ context,
Type^ destinationType
) override
abstract CanConvertTo :
context:ITypeDescriptorContext *
destinationType:Type -> bool
override CanConvertTo :
context:ITypeDescriptorContext *
destinationType:Type -> bool
public override function CanConvertTo(
context : ITypeDescriptorContext,
destinationType : Type
) : boolean
Parameters
- context
Type: System.ComponentModel.ITypeDescriptorContext
An object that provides a format context.
- destinationType
Type: System.Type
The type to convert to.
Return Value
Type: System.Boolean
true if this converter can perform the conversion; otherwise, false.
.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.