This documentation is archived and is not being maintained.

Ink.CustomStrokes Property

Gets the CustomStrokes collection to be persisted with the ink.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

public CustomStrokes CustomStrokes { get; }

Property Value

Type: Microsoft.Ink.CustomStrokes
The CustomStrokes collection to be persisted with the ink.

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 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
    }
}

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.

.NET Framework

Supported in: 3.0
Show: