ערוך

שתף באמצעות


StrokeCollection.InkSerializedFormat Field

Definition

Represents the native persistence format for ink data.

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

Field Value

Examples

The following example demonstrates how to copy a StrokeCollection to the Clipboard. The example specifies that the StrokeCollection is in Ink Serialized Format (ISF), so that other programs, such as Microsoft Office Word can accept the copied 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

Remarks

Use the InkSerializedFormat field to specify the format of the StrokeCollection when you transfer data, such as when you copy the StrokeCollection to the Clipboard.

Applies to