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, Double)

指定した幅、高さ、および角度を使用して、 RectangleStylusShape クラスの新しいインスタンスを初期化します。

RectangleStylusShape(Double, Double)

幅と高さを指定して、 RectangleStylusShape クラスの新しいインスタンスを初期化します。

プロパティ

名前 説明
Height

スタイラスの高さを取得します。

(継承元 StylusShape)
Rotation

スタイラスの角度を取得します。

(継承元 StylusShape)
Width

スタイラスの幅を取得します。

(継承元 StylusShape)

メソッド

名前 説明
Equals(Object)

指定したオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Objectの簡易コピーを作成します。

(継承元 Object)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

適用対象