Språk

StrokeCollectionConverter.ConvertTo Metod

Definition

Konverterar en StrokeCollection till en sträng.

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

Parametrar

context
ITypeDescriptorContext

En ITypeDescriptorContext som ger en formatkontext.

culture
CultureInfo

Att CultureInfo använda som den aktuella kulturen.

value
Object

Att Object konvertera.

destinationType
Type

Att Type konvertera till.

Returer

Ett objekt som representerar den angivna StrokeCollection.

Attribut

Undantag

destinationType är null.

Kommentarer

Metoden ConvertTo returnerar null om value inte är en StrokeCollection, eller om destinationType inte String eller InstanceDescriptor.

Metoden ConvertTo returnerar ett base-64, kodat ink serialiserat format (ISF). Det är användbart att lagra penndata som base-64, kodad ISF när det inte går att lagra rådata, till exempel på webbsidor.

Gäller för