次の方法で共有


Ink.Save Method

Ink.Save Method

Saves the Ink object in InkSerializedFormat (ISF), by using the Default compression mode, and returns the binary data in a Byte Leave Site array.

Definition

Visual Basic .NET Public Function Save() As Byte()
C# public byte[] Save();
Managed C++ public: Byte* Save() __gc[];

Return Value

System.Byte[]. Returns the Byte Leave Site array that contains the persisted ink.

Examples

[C#]

This C# example saves the Ink object in the InkCollector object, theInkCollector, in a Byte Leave Site array, theSavedInk. The example later restores the ink in a new Ink object, theNewInk.

byte [] theSavedInk =
    theInkCollector.Ink.Save();
// ...
Ink theNewInk = new Ink();
theNewInk.Load(theSavedInk);

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example saves the Ink object in the InkCollector object, theInkCollector, in a Byte Leave Site array, theSavedInk. The example later restores the ink in a new Ink object, theNewInk.

Dim theSavedInk () as Byte = _
    theInkCollector.Ink.Save()
'...
Dim theNewInk As New Ink()
theNewInk.Load(theSavedInk)

See Also