Ink.ClipboardPaste - метод
Обновлен: Ноябрь 2007
Pastes an IDataObject from the Clipboard to this Ink object.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
<UIPermissionAttribute(SecurityAction.Demand, Clipboard := UIPermissionClipboard.AllClipboard)> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Function ClipboardPaste As Strokes
'Применение
Dim instance As Ink
Dim returnValue As Strokes
returnValue = instance.ClipboardPaste()
[UIPermissionAttribute(SecurityAction.Demand, Clipboard = UIPermissionClipboard.AllClipboard)]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public Strokes ClipboardPaste()
[UIPermissionAttribute(SecurityAction::Demand, Clipboard = UIPermissionClipboard::AllClipboard)]
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = L"FullTrust")]
public:
Strokes^ ClipboardPaste()
/** @attribute UIPermissionAttribute(SecurityAction.Demand, Clipboard = UIPermissionClipboard.AllClipboard) */
/** @attribute PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust") */
public Strokes ClipboardPaste()
public function ClipboardPaste() : Strokes
Возвращаемое значение
Тип: Microsoft.Ink.Strokes
Returns the Strokes collection that is pasted to the Ink object.
Заметки
An exception is thrown if an unexpected error occurs while accessing the Clipboard. If no error occurs but the Clipboard does not contain a format that can be pasted into an Ink object—either ink serialized format (ISF) or text ink object (tInk)—then this method returns null (Nothing in Microsoft Visual Basic.NET) and no exception is thrown.
Примечание о безопасности. |
---|
If using under partial trust, this method requires AllClipboard permission. See Security And Trust for more information. |
Примеры
This C# example pastes an object from the Clipboard to an InkCollector object, theInkCollector.
try
{
theInkCollector.Ink.ClipboardPaste();
}
catch
{
// Exception handling code goes here.
}
This Visual Basic .NET example pastes an object from the Clipboard to an InkCollector object, theInkCollector.
Try
theInkCollector.Ink.ClipboardPaste()
Catch
'Exception handling code goes here.
End Try
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0