Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

InkCanvasClipboardFormat Enumeration

Specifies the formats that an InkCanvas will accept from the Clipboard.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public enum InkCanvasClipboardFormat
<object property="enumerationMemberName" .../>

Member nameDescription
InkSerializedFormatIndicates that the InkCanvas accepts Ink Serialized Format (ISF).
TextIndicates that the InkCanvas accepts text.
XamlIndicates that the InkCanvas accepts "Extensible Application Markup Language" (XAML) format.

The following example sets the PreferredPasteFormats to make the InkCanvas accept Extensible Application Markup Language (XAML) format, Ink Serialized Format (ISF).

InkCanvasClipboardFormat[] formats = new InkCanvasClipboardFormat[]
                            { 
                              InkCanvasClipboardFormat.InkSerializedFormat,
                              InkCanvasClipboardFormat.Xaml
                            };

inkCanvas1.PreferredPasteFormats = formats;

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft