InkCanvasClipboardFormat 枚举

定义

指定 InkCanvas 将从剪贴板中接受的格式。Specifies the formats that an InkCanvas will accept from the Clipboard.

public enum class InkCanvasClipboardFormat
public enum InkCanvasClipboardFormat
type InkCanvasClipboardFormat = 
Public Enum InkCanvasClipboardFormat
继承
InkCanvasClipboardFormat

字段

InkSerializedFormat 0

指示 InkCanvas 接受墨迹序列化格式 (ISF)。Indicates that the InkCanvas accepts Ink Serialized Format (ISF).

Text 1

指示 InkCanvas 接受文本。Indicates that the InkCanvas accepts text.

Xaml 2

指示 InkCanvas 接受“可扩展应用程序标记语言”(XAML) 格式。Indicates that the InkCanvas accepts "Extensible Application Markup Language" (XAML) format.

示例

下面的示例将设置PreferredPasteFormats为以InkCanvas作为接受可扩展应用程序标记语言 (XAML)Extensible Application Markup Language (XAML)格式墨迹序列化格式 (ISF)Ink Serialized Format (ISF)The following example sets the PreferredPasteFormats to make the InkCanvas accept 可扩展应用程序标记语言 (XAML)Extensible Application Markup Language (XAML) format, 墨迹序列化格式 (ISF)Ink Serialized Format (ISF).

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

inkCanvas1.PreferredPasteFormats = formats;
Dim formats() As InkCanvasClipboardFormat = _
                {InkCanvasClipboardFormat.InkSerializedFormat, _
                 InkCanvasClipboardFormat.Xaml}

inkCanvas1.PreferredPasteFormats = formats

适用于