当前位置: 首页>>代码示例>>VB.NET>>正文


VB.NET StrokeCollectionConverter.ConvertFrom方法代码示例

本文整理汇总了VB.NET中System.Windows.StrokeCollectionConverter.ConvertFrom方法的典型用法代码示例。如果您正苦于以下问题:VB.NET StrokeCollectionConverter.ConvertFrom方法的具体用法?VB.NET StrokeCollectionConverter.ConvertFrom怎么用?VB.NET StrokeCollectionConverter.ConvertFrom使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Windows.StrokeCollectionConverter的用法示例。


在下文中一共展示了StrokeCollectionConverter.ConvertFrom方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。

示例1: format

' The base-64 encoded string that contains ink data 
' in ink serialized format (ISF).
Private strokesString As String = _
    "AOoFAxBIEEVqGwIAWf9GahsCAFn/GRQyCACAEAIAAABCMwgAgA" _
    & "wCAAAAQhWrqtNBq6rTQaVh0MSr+ivFHyEVVFVVVVV1OkBUVVVVVXU6QJ7" _
    & "0SZ80DJrAVFVVVVV/pcAKU3yC/gEb+AX/k5Z8PwWBO5KktgJSUAAKjzyC" _
    & "wBZYLEoCJLd+Cbti873JlTUvn158doCC/gKb+ApwAJslSywE2ALAAWPPI" _
    & "FhKWBKWAKAmwJVglAKACiMjgv3d+8Xi+fHWM2WC0zcm89+NSoL+A5P4Dl" _
    & "uNlhFIqpLKAAoaF4L+AhP4CFAWAWCggv4Dc/gNty2yy5SrlKAKIhyC/gI" _
    & "b+Ai+JZc2XZOyb46vLQCC/gOL+A5YDNlWFjN3CwAKQFeC/gOr+A7VhUFZ" _
    & "KCsS2WTc2SyhKuWVLR3ly2LAXx574ssUgv4Dm/gOcCwEEpUTYSixUsuWy" _
    & "gVZ79AQsWGyWUAKLCiC/gQT+BA9SWbllDfGqy3Lcu+OmfH8EIL+BDv4EP" _
    & "XLKSpY3lVFhZuVZvKACkFggv4F2/gXlKLFuCVKTcsqUlkoRKBmk8zfFll" _
    & "S2ySlACwAgv4Ds/gO+WWWWLBLFllllSksAoSkWG1kSbFu5AoAAAo/YoL+" _
    & "Biv4GJJU+P4qSalUBKWdkBYCbm+Nliyk1CVKgCxYNYqC/gQb+BBwO8ABY" _
    & "olDz4gAEzaw2AVCUKAsWCooCiAegv4Hw/gfEJe8zUoSgLCC/gNT+A0xM7" _
    & "Gdmdliay2VaAo0PoL+B7v4Hx5Yq3lc2xZsseeC3N8aDXjUpWW4UIL+A5P" _
    & "4DnhYqAIWFkqpcrLZuJuWqSyxVAovNoL+CJP4IjnlkDvHeSbSVd9FqFlI" _
    & "oWAAgv4Dk/gOVc7gbmdyZ1LajFFJmlRKsoAKVXmC/go7+CjdRvredypaK" _
    & "myLC7ytZQqFiyWbikAEvfg2pSVKS7liSwWJNsrbi4CC/gQD+A/9M2ACxU" _
    & "qKjcVuXKiosCWWKQSyhvKRUUWULCwEmyyu4gA="
开发者ID:VB.NET开发者,项目名称:System.Windows,代码行数:21,代码来源:StrokeCollectionConverter.ConvertFrom

示例2: LoadStrokes

' Accepts a string that contains ink data in ink 
' serialized format (ISF) and converts it into a StrokeCollection.
Public Sub LoadStrokes()

    Dim converter As New StrokeCollectionConverter()

    If converter.CanConvertFrom(GetType(String)) Then
        Dim newStrokes As StrokeCollection

        newStrokes = converter.ConvertFrom(Nothing, Nothing, strokesString)
        presenter.Strokes.Clear()
        presenter.Strokes.Add(newStrokes)

    End If

End Sub
开发者ID:VB.NET开发者,项目名称:System.Windows,代码行数:16,代码来源:StrokeCollectionConverter.ConvertFrom


注:本文中的System.Windows.StrokeCollectionConverter.ConvertFrom方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。