StrokeCollectionConverter.ConvertTo 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 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。
傳回
表示指定的 StrokeCollection 的物件。
- 屬性
例外狀況
destinationType
為 null
。
備註
如果 不是 ,則 ConvertTo 方法會 null
傳回 ,如果 不是 或 , InstanceDescriptor 則 destinationType
傳 String 回 。 StrokeCollection value
方法 ConvertTo 會傳回 base-64 編碼的筆跡序列化格式 (ISF) 。 當無法儲存原始位元組資料時,將筆跡資料儲存為 base-64、編碼的 ISF 會很有用,例如在網頁中。