RectangleStylusShape Klasse

Definition

Stellt eine rechteckige Tablettstiftspitze dar.

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
Vererbung
RectangleStylusShape

Beispiele

Im folgenden Beispiel wird veranschaulicht, wie Sie einen RectangleStylusShape Treffertest auf einer StrokeCollection. In diesem Beispiel wird davon ausgegangen, dass ein InkPresenter Aufgerufener vorhanden presenterist.

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

Konstruktoren

RectangleStylusShape(Double, Double)

Initialisiert eine neue Instanz der RectangleStylusShape-Klasse mit der angegebenen Breite und Höhe.

RectangleStylusShape(Double, Double, Double)

Initialisiert eine neue Instanz der RectangleStylusShape-Klasse mit Breite, Höhe und Winkel laut Angabe.

Eigenschaften

Height

Ruft die Höhe des Tablettstifts ab.

(Geerbt von StylusShape)
Rotation

Ruft den Winkel des Tablettstifts ab.

(Geerbt von StylusShape)
Width

Ruft die Breite des Tablettstifts ab.

(Geerbt von StylusShape)

Methoden

Equals(Object)

Bestimmt, ob das angegebene Objekt gleich dem aktuellen Objekt ist.

(Geerbt von Object)
GetHashCode()

Fungiert als Standardhashfunktion.

(Geerbt von Object)
GetType()

Ruft den Type der aktuellen Instanz ab.

(Geerbt von Object)
MemberwiseClone()

Erstellt eine flache Kopie des aktuellen Object.

(Geerbt von Object)
ToString()

Gibt eine Zeichenfolge zurück, die das aktuelle Objekt darstellt.

(Geerbt von Object)

Gilt für