InkCanvasClipboardFormat Énumération

Définition

Spécifie les formats qu'un InkCanvas acceptera à partir du Presse‑papiers.Specifies the formats that an InkCanvas will accept from the Clipboard.

public enum class InkCanvasClipboardFormat
public enum InkCanvasClipboardFormat
type InkCanvasClipboardFormat = 
Public Enum InkCanvasClipboardFormat
Héritage
InkCanvasClipboardFormat

Champs

InkSerializedFormat 0

Indique que InkCanvas accepte le format ISF (Ink Serialized Format).Indicates that the InkCanvas accepts Ink Serialized Format (ISF).

Text 1

Indique que InkCanvas accepte du texte.Indicates that the InkCanvas accepts text.

Xaml 2

Indique que InkCanvas accepte le format XAML (Extensible Application Markup Language).Indicates that the InkCanvas accepts "Extensible Application Markup Language" (XAML) format.

Exemples

L’exemple suivant définit le PreferredPasteFormats pour créer le InkCanvas format d’acceptation langage XAML (eXtensible Application Markup Language)Extensible Application Markup Language (XAML) , ISF (Ink Serialized Format)Ink Serialized Format (ISF) .The following example sets the PreferredPasteFormats to make the InkCanvas accept langage XAML (eXtensible Application Markup Language)Extensible Application Markup Language (XAML) format, ISF (Ink Serialized Format)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

S’applique à