다음을 통해 공유


Ink.CustomStrokes 속성

업데이트: 2007년 11월

잉크와 함께 유지되는 CustomStrokes 컬렉션을 가져옵니다.

네임스페이스:  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
잉크와 함께 유지되는 CustomStrokes 컬렉션입니다.

예제

이 예제에서는 전달된 Ink 개체의 Strokes 컬렉션을 지정된 이름을 사용하여 전달된 동일한 Ink 개체의 CustomStrokes 컬렉션에 추가합니다. 이름이 지정된 CustomStrokes 컬렉션이 이미 있는 경우에는 예외가 발생합니다.

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에서 지원

참고 항목

참조

Ink 클래스

Ink 멤버

Microsoft.Ink 네임스페이스

CustomStrokes

Strokes