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

次の例では、a RectangleStylusShape を使用してヒット テストを実行する方法を StrokeCollection示します。 この例では、呼び出しpresenterが存在InkPresenterすることを前提としています。

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)

適用対象