다음을 통해 공유


RealTimeStylus.AsyncPluginCollection 속성

업데이트: 2007년 11월

RealTimeStylus 개체에서 태블릿 펜 데이터를 받는 IStylusAsyncPlugin 플러그 인의 컬렉션을 가져옵니다.

네임스페이스:  Microsoft.StylusInput
어셈블리:  Microsoft.Ink(Microsoft.Ink.dll)

구문

‘선언
Public ReadOnly Property AsyncPluginCollection As StylusAsyncPluginCollection
‘사용 방법
Dim instance As RealTimeStylus
Dim value As StylusAsyncPluginCollection

value = instance.AsyncPluginCollection
public StylusAsyncPluginCollection AsyncPluginCollection { get; }
public:
property StylusAsyncPluginCollection^ AsyncPluginCollection {
    StylusAsyncPluginCollection^ get ();
}
/** @property */
public StylusAsyncPluginCollection get_AsyncPluginCollection()
public function get AsyncPluginCollection () : StylusAsyncPluginCollection

속성 값

형식: Microsoft.StylusInput.StylusAsyncPluginCollection
RealTimeStylus 개체에서 태블릿 펜 데이터를 받는 IStylusAsyncPlugin 플러그 인의 컬렉션입니다.

예제

이 Microsoft Visual C# .NET 예제는 폼의 Load 이벤트 처리기에서 가져온 코드 조각입니다. 이 이벤트 처리기는 GestureRecognizer, DynamicRenderer 및 두 RealTimeStylus 개체를 만들고 개체를 계단식 RealTimeStylus 모델에 연결한 다음 RealTimeStylus 개체를 통한 동적 렌더링, 제스처 인식 및 태블릿 펜 데이터 수집을 활성화합니다. 단일 스트로크 제스처를 인식하고 Right, ChevronRight 및 ArrowRightApplicationGesture만 인식하도록 GestureRecognizer 개체를 설정합니다. 주 RealTimeStylus 개체의 WindowInputRectangle 속성을 명시적으로 설정하여 RealTimeStylus 개체가 연결된 전체 컨트롤을 사용합니다. 폼은 자체적으로 IStylusAsyncPlugin 인터페이스를 구현하며 RealTimeStylus 개체에 연결됩니다.

using Microsoft.Ink;
using Microsoft.StylusInput;
using Microsoft.StylusInput.PluginData;

// ...

// The panel where the tablet pen data is collected.
private System.Windows.Forms.Panel thePanel;

// Declare the RealTimeStylus objects, the GestureRecognizer plugin,
// and the DynamicRenderer plug-in.
private Microsoft.StylusInput.RealTimeStylus thePrimaryRealTimeStylus = null;
private Microsoft.StylusInput.RealTimeStylus theSecondaryRealTimeStylus = null;
private Microsoft.StylusInput.GestureRecognizer theGestureRecognizer = null;
private Microsoft.StylusInput.DynamicRenderer theDynamicRenderer = null;

// The form's Load event handler.
private void theForm_Load(object sender, System.EventArgs e)
{
    // ...

    // Create a DynamicRenderer attached to the drawing area ,
    // and enable dynamic rendering.
    this.theDynamicRenderer = new DynamicRenderer(this.thePanel);
    this.theDynamicRenderer.Enabled = true;

    // Create a GestureRecognizer, and set it to recognize single-stroke gestures.
    this.theGestureRecognizer = new GestureRecognizer();
    this.theGestureRecognizer.MaxStrokeCount = 1;

    // Allow gesture recognition for specific gestures.
    this.theGestureRecognizer.EnableGestures( new ApplicationGesture[]
        {
            ApplicationGesture.Right,
            ApplicationGesture.ChevronRight,
            ApplicationGesture.ArrowRight
        } );

    // Enable gesture recognition.
    this.theGestureRecognizer.Enabled = true;

    // Create the primary and secondary RealTimeStylus objects.
    this.thePrimaryRealTimeStylus = new RealTimeStylus(this.thePanel);
    this.theSecondaryRealTimeStylus = new RealTimeStylus();

    // Add the secondary RealTimeStylus to the primary's asynchronous plug-in collection.
    this.thePrimaryRealTimeStylus.AsyncPluginCollection.Add(
        this.theSecondaryRealTimeStylus);

    // Add the dynamic renderer to the primary's synchronous plug-in collection.
    this.thePrimaryRealTimeStylus.SyncPluginCollection.Add(this.theDynamicRenderer);

    // Add the gesture recognizer to the secondary's synchronous plug-in collection.
    this.theSecondaryRealTimeStylus.SyncPluginCollection.Add(this.theGestureRecognizer);

    // Add the form to the secondary's asynchronous plug-in colleciton.
    this.theSecondaryRealTimeStylus.AsyncPluginCollection.Add(this);

    // Set the input rectangle to the entire panel for the RealTimeStylus.
    this.thePrimaryRealTimeStylus.WindowInputRectangle = new Rectangle(0,0,0,0);

    // Enable the RealTimeStylus, which allows notifications to flow to the plug-ins.
    this.thePrimaryRealTimeStylus.Enabled = true;

    // ...
}

플랫폼

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

RealTimeStylus 클래스

RealTimeStylus 멤버

Microsoft.StylusInput 네임스페이스