Ink.CustomStrokes - свойство
Обновлен: Ноябрь 2007
Gets the CustomStrokes collection to be persisted with the ink.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public ReadOnly Property CustomStrokes As CustomStrokes
'Применение
Dim instance As Ink
Dim value As CustomStrokes
value = instance.CustomStrokes
public CustomStrokes CustomStrokes { get; }
public:
property CustomStrokes^ CustomStrokes {
CustomStrokes^ get ();
}
/** @property */
public CustomStrokes get_CustomStrokes()
public function get CustomStrokes () : CustomStrokes
Значение свойства
Тип: 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 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
}
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0