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: