Språk

StrokeCollection.InkSerializedFormat Fält

Definition

Representerar det inbyggda beständighetsformatet för pennanteckningar.

public: static initonly System::String ^ InkSerializedFormat;
public static readonly string InkSerializedFormat;
 staticval mutable InkSerializedFormat : string
Public Shared ReadOnly InkSerializedFormat As String 

Fältvärde

Exempel

I följande exempel visas hur du kopierar en StrokeCollection till Urklipp. Exemplet anger att StrokeCollection är i ink serialiserat format (ISF), så att andra program, till exempel Microsoft Office Word kan acceptera kopierade data.

public void CopyStrokeCollection(StrokeCollection strokes)
{
    MemoryStream strokesInMemory = new MemoryStream();
    strokes.Save(strokesInMemory);
    
    DataObject dataobj = new DataObject(StrokeCollection.InkSerializedFormat,
        strokesInMemory);

    Clipboard.SetDataObject(dataobj, true);
}
Public Sub CopyStrokeCollection(ByVal strokes As StrokeCollection)

    Dim strokesInMemory As New MemoryStream()
    strokes.Save(strokesInMemory)
    Dim dataObj As New DataObject(StrokeCollection.InkSerializedFormat, _
                strokesInMemory)

    Clipboard.SetDataObject(dataObj, True)

End Sub

Kommentarer

Använd fältet InkSerializedFormat för att ange formatet StrokeCollection för när du överför data, till exempel när du kopierar StrokeCollection till Urklipp.

Gäller för