InkCanvasClipboardFormat Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the formats that an InkCanvas will accept from the Clipboard.
public enum class InkCanvasClipboardFormat
public enum InkCanvasClipboardFormat
type InkCanvasClipboardFormat =
Public Enum InkCanvasClipboardFormat
- Inheritance
Fields
Name | Value | Description |
---|---|---|
InkSerializedFormat | 0 | Indicates that the InkCanvas accepts Ink Serialized Format (ISF). |
Text | 1 | Indicates that the InkCanvas accepts text. |
Xaml | 2 | Indicates that the InkCanvas accepts "Extensible Application Markup Language" (XAML) format. |
Examples
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;
Dim formats() As InkCanvasClipboardFormat = _
{InkCanvasClipboardFormat.InkSerializedFormat, _
InkCanvasClipboardFormat.Xaml}
inkCanvas1.PreferredPasteFormats = formats
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET