다음을 통해 공유


DynamicRenderer.Enabled 속성

업데이트: 2007년 11월

동적 렌더링을 설정하고 해제하는 값을 가져오거나 설정합니다.

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

구문

‘선언
Public Property Enabled As Boolean
‘사용 방법
Dim instance As DynamicRenderer
Dim value As Boolean

value = instance.Enabled

instance.Enabled = value
public bool Enabled { get; set; }
public:
property bool Enabled {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_Enabled()
/** @property */
public  void set_Enabled(boolean value)
public function get Enabled () : boolean
public function set Enabled (value : boolean)

속성 값

형식: System.Boolean
동적 렌더링이 사용되면 true이고, 그렇지 않으면 false입니다.

예제

이 C# 예제에서는 IStylusAsyncPlugin 인터페이스를 구현하는 폼의 Load 이벤트에 대한 이벤트 처리기를 보여 줍니다. 이벤트 처리기에서는 DynamicRenderer 개체의 새 인스턴스인 theDynamicRenderer 및 RealTimeStylus 개체의 새 인스턴스인 theRealTimeStylus를 초기화하고 폼에 연결한 다음 활성화합니다.

using Microsoft.StylusInput;
// ...
private RealTimeStylus theRealTimeStylus;
private DynamicRenderer theDynamicRenderer;
// ...
private void InkCollection_Load(object sender, System.EventArgs e)
{
    theDynamicRenderer = new DynamicRenderer(this);
    theRealTimeStylus = new RealTimeStylus(this, true);

    // Add the dynamic renderer to the synchronous plugin notification chain.
    // Synchronous notifications occur on the pen thread.
    theRealTimeStylus.SyncPluginCollection.Add(theDynamicRenderer);

    // Add the form to the asynchronous plugin notification chain.  This plugin
    // will be used to collect stylus data into an ink object.  Asynchronous
    // notifications occur on the UI thread.
    theRealTimeStylus.AsyncPluginCollection.Add(this);

    // Enable the real time stylus and the dynamic renderer
    theRealTimeStylus.Enabled = true;
    theDynamicRenderer.Enabled = true;  
}

이 Microsoft Visual Basic .NET 예제에서는 IStylusAsyncPlugin 인터페이스를 구현하는 폼의 Load 이벤트에 대한 이벤트 처리기를 보여 줍니다. 이벤트 처리기에서는 DynamicRenderer 개체의 새 인스턴스인 theDynamicRenderer 및 RealTimeStylus 개체의 새 인스턴스인 theRealTimeStylus를 초기화하고 폼에 연결한 다음 활성화합니다.

Imports Microsoft.StylusInput
' ...
Private theRealTimeStylus As RealTimeStylus
Private theDynamicRenderer As DynamicRenderer

' ...
Private Sub InkCollector_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles MyBase.Load
    theDynamicRenderer = New DynamicRenderer(Me)
    theRealTimeStylus = New RealTimeStylus(Me, True)

    ' Add the dynamic renderer to the synchronous plugin notification chain.
    ' Synchronous notifications occur on the pen thread.
    theRealTimeStylus.SyncPluginCollection.Add(theDynamicRenderer)

    ' Add the form to the asynchronous plugin notification chain.  This plugin
    ' will be used to collect stylus data into an ink object.  Asynchronous
    ' notifications occur on the UI thread.
    theRealTimeStylus.AsyncPluginCollection.Add(Me)

    ' Enable the real time stylus and the dynamic renderer
    theRealTimeStylus.Enabled = True
    theDynamicRenderer.Enabled = True
End Sub

플랫폼

Windows Vista, Windows XP SP2, Windows Server 2003

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

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

DynamicRenderer 클래스

DynamicRenderer 멤버

Microsoft.StylusInput 네임스페이스

DynamicRenderer

IStylusAsyncPlugin

RealTimeStylus