InkCollector.Ink Property
InkCollector.Ink Property |
Gets or sets the Ink object that is associated with the InkCollector object.
Definition
Visual Basic .NET Public Property Ink As Ink C# public Ink Ink { get; set; } Managed C++ public: __property Ink* get_Ink();
public: __property void set_Ink(Ink*);
Property Value
Microsoft.Ink.Ink. The Ink object that is associated with the InkCollector object.
This property is read/write. This property has no default value.
Exceptions
ArgumentNullException :
COMException :
InvalidOperationException : The ink cannot be changed while the InkCollector is actively collecting ink. Enabled
ObjectDisposedException :
Remarks
Note: The InkCollector object must be disabled before setting this property. To disable the InkCollector object, set the Enabled property to false. You can then set the Ink property, and re-enable the InkCollector object by setting the Enabled property to true.
An InkCollector object creates an Ink object by default. If two or more Ink objects exist on a known application window, they can be switched out to enable collection into any one of them (such as after deserializing one of the Ink objects).
Examples
[C#]
This C# example returns the associated Ink object for an InkCollector, theInkCollector.
Ink theInk = theInkCollector.Ink;
[VB.NET]
This Microsoft® Visual Basic® .NET example returns the associated Ink object for an InkCollector, theInkCollector.
Dim theInk as Ink = theInkCollector.Ink
See Also