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
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre