EllipseStylusShape 클래스

정의

타원 모양의 스타일러스 끝을 나타냅니다.

public ref class EllipseStylusShape sealed : System::Windows::Ink::StylusShape
public sealed class EllipseStylusShape : System.Windows.Ink.StylusShape
type EllipseStylusShape = class
    inherit StylusShape
Public NotInheritable Class EllipseStylusShape
Inherits StylusShape
상속
EllipseStylusShape

예제

다음 예제에서는 만드는 방법을 보여 줍니다.는 EllipseStylusShape 에 전달 합니다 GetIncrementalStrokeHitTester 부분을 지우는 방법을 Stroke입니다. 이 예제에서는 있다고 가정를 IncrementalStrokeHitTester 호출 eraseTester 하 고 해당 StrokeHit 이벤트가이 예제에서 정의 된 이벤트 처리기에 연결 되었습니다. 사용자가 잉크를 지울 수 있도록 하는 컨트롤을 만들려면 참조 방법: 사용자 지정 컨트롤에서 잉크 지우기합니다.

// Prepare to collect stylus packets. Get the 
// IncrementalHitTester from the InkPresenter's 
// StrokeCollection and subscribe to its StrokeHitChanged event.
protected override void OnStylusDown(StylusDownEventArgs e)
{
    base.OnStylusDown(e);

    EllipseStylusShape eraserTip = new EllipseStylusShape(3, 3, 0);
    eraseTester = 
        presenter.Strokes.GetIncrementalStrokeHitTester(eraserTip);
    eraseTester.StrokeHit += new StrokeHitEventHandler(eraseTester_StrokeHit);
    eraseTester.AddPoints(e.GetStylusPoints(this));
}
' Prepare to collect stylus packets. Get the 
' IncrementalHitTester from the InkPresenter's 
' StrokeCollection and subscribe to its StrokeHitChanged event.
Protected Overrides Sub OnStylusDown(ByVal e As StylusDownEventArgs)

    MyBase.OnStylusDown(e)

    Dim eraserTip As New EllipseStylusShape(3, 3, 0)
    eraseTester = presenter.Strokes.GetIncrementalStrokeHitTester(eraserTip)
    AddHandler eraseTester.StrokeHit, _
        AddressOf eraseTester_StrokeHit
    eraseTester.AddPoints(e.GetStylusPoints(Me))

End Sub

생성자

EllipseStylusShape(Double, Double)

지정된 너비 및 높이를 사용하여 EllipseStylusShape 클래스의 새 인스턴스를 초기화합니다.

EllipseStylusShape(Double, Double, Double)

지정된 너비, 높이 및 각도를 사용하여 EllipseStylusShape 클래스의 새 인스턴스를 초기화합니다.

속성

Height

스타일러스의 높이를 가져옵니다.

(다음에서 상속됨 StylusShape)
Rotation

스타일러스의 각도를 가져옵니다.

(다음에서 상속됨 StylusShape)
Width

스타일러스의 너비를 가져옵니다.

(다음에서 상속됨 StylusShape)

메서드

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상