RectangleStylusShape 클래스

정의

사각형 모양의 스타일러스 끝을 나타냅니다.

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

예제

다음 예제에 사용 하는 방법을 보여 줍니다.는 RectangleStylusShape 에서 적중 테스트를 수행 하는 StrokeCollection합니다. 이 예제에서는 있다고 가정를 InkPresenter 호출 presenter합니다.

private void HitTestWithEraser(Point[] points)
{
    RectangleStylusShape eraser = new RectangleStylusShape(3, 3, 0);

    StrokeCollection strokes = presenter.Strokes.HitTest(points, eraser);

    foreach (Stroke s in strokes)
    {
        s.DrawingAttributes.Color = Colors.Purple;
    }
}
Private Sub HitTestWithEraser(ByVal points() As Point)
    Dim eraser As RectangleStylusShape = New RectangleStylusShape(3, 3, 0)

    Dim strokes As StrokeCollection = presenter.Strokes.HitTest(points, eraser)

    Dim s As Stroke
    For Each s In strokes
        s.DrawingAttributes.Color = Colors.Purple
    Next
End Sub

생성자

RectangleStylusShape(Double, Double)

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

RectangleStylusShape(Double, Double, Double)

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

속성

Height

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

(다음에서 상속됨 StylusShape)
Rotation

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

(다음에서 상속됨 StylusShape)
Width

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

(다음에서 상속됨 StylusShape)

메서드

Equals(Object)

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

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

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

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

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

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

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

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

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

(다음에서 상속됨 Object)

적용 대상