StrokeCollectionConverter.ConvertTo Methode

Definitie

Converteert een StrokeCollection naar een tekenreeks.

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
[System.Security.SecurityCritical]
public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
[<System.Security.SecurityCritical>]
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object

Parameters

context
ITypeDescriptorContext

Een ITypeDescriptorContext die een indelingscontext biedt.

culture
CultureInfo

De CultureInfo te gebruiken als de huidige cultuur.

value
Object

De Object te converteren.

destinationType
Type

De Type te converteren naar.

Retouren

Een object dat de opgegeven StrokeCollectionvertegenwoordigt.

Kenmerken

Uitzonderingen

destinationType is null.

Opmerkingen

De ConvertTo methode retourneert null als value dit geen StrokeCollection, of als destinationType dat niet String is of InstanceDescriptor.

De ConvertTo methode retourneert een base-64, gecodeerde Ink Serialized Format (ISF). Het is handig om inktgegevens op te slaan als base-64, gecodeerde ISF wanneer het niet mogelijk is onbewerkte bytegegevens op te slaan, zoals in webpagina's.

Van toepassing op