語言

StrokeCollectionConverter.ConvertTo 方法

定義

將 a StrokeCollection 轉換成字串。

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

參數

context
ITypeDescriptorContext

提供格式背景的一個 ITypeDescriptorContext 。

culture
CultureInfo

CultureInfo這是目前的文化。

value
Object

那個 Object 要轉換。

destinationType
Type

Type轉化到那裡。

傳回

一個代表指定 StrokeCollection的物件。

屬性

例外狀況

destinationType 是 null。

備註

若 不是 ,或 不是 ConvertTo 或 null,則value該方法回傳 StrokeCollection 。destinationTypeStringInstanceDescriptor

此 ConvertTo 方法回傳一個base-64、編碼的墨水序列化格式(ISF)。 當無法儲存原始位元組資料時,例如網頁中,儲存墨水資料以base-64編碼ISF格式儲存非常有用。

適用於