Ink.CustomStrokes Property
Gets the CustomStrokes collection to be persisted with the ink.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public ReadOnly Property CustomStrokes As CustomStrokes
'Usage
Dim instance As Ink
Dim value As CustomStrokes
value = instance.CustomStrokes
public CustomStrokes CustomStrokes { get; }
public:
property CustomStrokes^ CustomStrokes {
CustomStrokes^ get ();
}
public function get CustomStrokes () : CustomStrokes
Property Value
Type: Microsoft.Ink.CustomStrokes
The CustomStrokes collection to be persisted with the ink.
Examples
In this example, the Strokes collection of the passed Ink object is added the CustomStrokes collection of the same passed Ink object using the specified name. If the named CustomStrokes collection already exists, an exception is raised.
Private Sub AddCustomStrokes(ByVal mName As String, ByVal mInk As Ink)
Try
' if the name already exists, an exception will be raised
mInk.CustomStrokes.Add(mName, mInk.Strokes)
Catch E As ArgumentException
' this exception is raised when the named collection already exists
End Try
End Sub
private void AddCustomStrokes(string mName, Ink mInk)
{
try
{
// if the name already exists, an exception will be raised
mInk.CustomStrokes.Add(mName, mInk.Strokes);
}
catch (ArgumentException)
{
// this exception is raised when the named collection already exists
}
}
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0