Ink.ClipboardPaste - метод (Point, Object)
Обновлен: Ноябрь 2007
Pastes the specified IDataObject to the specified point in this Ink object.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public Function ClipboardPaste ( _
pt As Point, _
dataObject As Object _
) As Strokes
'Применение
Dim instance As Ink
Dim pt As Point
Dim dataObject As Object
Dim returnValue As Strokes
returnValue = instance.ClipboardPaste(pt, _
dataObject)
public Strokes ClipboardPaste(
Point pt,
Object dataObject
)
public:
Strokes^ ClipboardPaste(
Point pt,
Object^ dataObject
)
public Strokes ClipboardPaste(
Point pt,
Object dataObject
)
public function ClipboardPaste(
pt : Point,
dataObject : Object
) : Strokes
Параметры
- pt
Тип: System.Drawing.Point
The point to paste to, in ink space coordinates. The default value is {0, 0}.
- dataObject
Тип: System.Object
The System.Windows.Forms.IDataObject to paste into this Ink object.
Возвращаемое значение
Тип: 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ссылка null (Nothing в Visual Basic) (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 IDataObject, theDataObject, to an InkCollector, theInkCollector, at position (100, 100), in ink space coordinates.
try
{
theInkCollector.Ink.ClipboardPaste(new Point(100, 100), theDataObject);
}
catch
{
// Exception handling code goes here.
}
This Visual Basic .NET example pastes an IDataObject, theDataObject, to an InkCollector, theInkCollector, at position (100, 100), in ink space coordinates.
Try
Dim origin As New Point(100, 100)
theInkCollector.Ink.ClipboardPaste(origin, theDataObject)
Catch
'Exception handling code goes here.
End Try
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0