StrokeCollection.InkSerializedFormat Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru