StrokeCollectionConverter.ConvertTo 方法

定義

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

傳回

Object

表示指定的 StrokeCollection 的物件。

屬性

例外狀況

destinationTypenull

備註

如果 不是 ,則 ConvertTo 方法會 null 傳回 ,如果 不是 或 , InstanceDescriptordestinationTypeString 回 。 StrokeCollection value

方法 ConvertTo 會傳回 base-64 編碼的筆跡序列化格式 (ISF) 。 當無法儲存原始位元組資料時,將筆跡資料儲存為 base-64、編碼的 ISF 會很有用,例如在網頁中。

適用於