StrokeCollection.InkSerializedFormat Field

 

Represents the native persistence format for ink data.

Namespace:   System.Windows.Ink
Assembly:  PresentationCore (in PresentationCore.dll)

public static readonly string InkSerializedFormat

Field Value

Type: System.String

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.

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);

}

.NET Framework
Available since 3.0
Return to top
Show: