업데이트: 2007년 11월
커서가 반전된 펜 끝인지 여부를 나타내는 값을 가져옵니다.
네임스페이스: Microsoft.Ink
어셈블리: Microsoft.Ink(Microsoft.Ink.dll)
구문
‘선언
Public ReadOnly Property Inverted As Boolean
‘사용 방법
Dim instance As Cursor
Dim value As Boolean
value = instance.Inverted
public bool Inverted { get; }
public:
property bool Inverted {
bool get ();
}
/** @property */
public boolean get_Inverted()
public function get Inverted () : boolean
속성 값
형식: System.Boolean
커서가 반전된 펜 끝이면 true이고, 커서가 반전된 펜 끝이 아니거나 펜에서 반전된 펜 끝에 연결된 커서를 지원하지 않으면 false입니다.
설명
반전된 커서는 일반적으로 지우기에 사용되므로 알려진 펜에는 잉크를 그리는 펜 끝과 스트로크를 지우는 다른 펜 끝이 있을 수 있습니다. 그러나 시스템에서 반전된 펜 끝을 인식할 때의 동작은 지우기로 국한되지 않으며, Inverted 속성에 적절한 모든 커서 동작을 연결할 수 있습니다.
잉크 지우기에 대한 자세한 내용은 Erasing Ink with the Pen을를 참조하십시오.
참고
Inverted 속성을 사용할지 여부는 전적으로 응용 프로그램의 요구 사항에 따라 결정됩니다. 응용 프로그램에서 반전된 커서를 반드시 조사할 필요는 없으며, 잉크 수집기는 커서가 반전되었는지 여부에 관계없이 기본 그리기 특성을 적용합니다.
참고
특정 메시지 처리기 내에서 이 함수를 호출하면 재진입이 발생하여 예기치 않은 결과가 나타납니다. WM_ACTIVATE, WM_ACTIVATEAPP, WM_NCACTIVATE, WM_PAINT, WM_SYSKEYDOWN(Alt+Tab 또는 Alt+Esc 키 조합을 처리하는 경우) 메시지 중 하나를 처리할 때는 재진입 호출이 발생하지 않도록 주의해야 합니다. wParam이 SC_HOTKEY 또는 SC_TASKLIST로 설정된 경우에는 WM_SYSCOMMAND도 여기에 해당합니다. . 이는 단일 스레드 아파트 모델 응용 프로그램에 적용되는 문제입니다.
예제
이 C# 예제에서는 매개 변수로 전달된 InkCollector 개체에서 발견한 모든 커서의 특성에 대한 보고서를 반환합니다.
using Microsoft.Ink;
//. . .
public string CursorReport(InkCollector theInkCollector)
{
string theReport = "The InkCollector has encountered the following cursors so far:" + Environment.NewLine;
// Get the Cursors collection from the InkCollector
Microsoft.Ink.Cursors theCursors = theInkCollector.Cursors;
// Prevent changes to the collection while we iterate over it.
lock( theCursors.SyncRoot )
{
theReport += "Count of cursors: " + theCursors.Count + Environment.NewLine + Environment.NewLine ;
foreach (Microsoft.Ink.Cursor cursor in theCursors)
{
theReport += "Cursor Name: " + cursor.Name + Environment.NewLine ;
theReport += "Cursor ToString: " + cursor.ToString() + Environment.NewLine ;
theReport += "Tablet Name: " + cursor.Tablet.Name + Environment.NewLine ;
theReport += "Cursor Id: " + cursor.Id.ToString() + Environment.NewLine ;
theReport += "Cursor is inverted: " + cursor.Inverted.ToString() + Environment.NewLine ;
theReport += "Cursor Buttons:" + Environment.NewLine;
foreach (CursorButton button in cursor.Buttons)
{
CursorButtonState theState = button.State;
theReport += " Button Name: " + button.Name + Environment.NewLine ;
theReport += " State: " + button.State.ToString() + Environment.NewLine ;
theReport += " Id: " + button.Id.ToString() + Environment.NewLine + Environment.NewLine;
}
}
}
return theReport;
}
이 Microsoft® Visual Basic® .NET 예제에서는 매개 변수로 전달된 InkCollector 개체에서 발견한 모든 커서의 특성에 대한 보고서를 반환합니다.
Imports Microsoft.Ink
'. . .
Public Function CursorReport(ByVal theInkCollector As InkCollector) _
As String
Dim theReport As String = "The InkCollector has encountered " & _
"the following cursors so far:" & vbCrLf
' Get the Cursors collection from the InkCollector
Dim theCursors As Cursors = theInkCollector.Cursors
' Prevent changes to the collection while we iterate over it.
SyncLock theCursors.SyncRoot
theReport &= "Count of cursors: " & theCursors.Count & vbCrLf
Dim theCursor As Cursor
For Each theCursor In theCursors
theReport &= "Cursor Name: " & theCursor.Name & vbCrLf
theReport &= "Cursor ToString: " & theCursor.ToString() & _
vbCrLf
theReport &= "Tablet Name: " & theCursor.Tablet.Name & vbCrLf
theReport &= "Cursor Id: " & theCursor.Id.ToString() & vbCrLf
theReport &= "Cursor is inverted: " & _
theCursor.Inverted.ToString() & vbCrLf
theReport &= "Cursor Buttons:" & vbCrLf
Dim theButton As CursorButton
For Each theButton In theCursor.Buttons
Dim theState As CursorButtonState = theButton.State
theReport &= " Button Name: " & theButton.Name & vbCrLf
theReport &= " State: " & _
theButton.State.ToString() & vbCrLf
theReport &= " Id: " & theButton.Id.ToString() & _
vbCrLf & vbCrLf
Next
Next
End SyncLock
Return theReport
End Function
플랫폼
Windows Vista
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
3.0에서 지원