Windows apps
Collapse the table of content
Expand the table of content
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

Member nameDescription
InkSerializedFormat

Indicates that the InkCanvas accepts Ink Serialized Format (ISF).

Text

Indicates that the InkCanvas accepts text.

Xaml

Indicates 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
Available since 3.0
Return to top
Show:
© 2016 Microsoft