Lenguaje

RectangleStylusShape Clase

Definición

Representa una punta de lápiz rectangular.

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

Ejemplos

En el ejemplo siguiente se muestra cómo usar para RectangleStylusShape realizar pruebas de posicionamiento en un StrokeCollection. En este ejemplo se supone que hay un InkPresenter denominado 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

Constructores

Nombre Description
RectangleStylusShape(Double, Double, Double)

Inicializa una nueva instancia de la RectangleStylusShape clase con el ancho, alto y ángulo especificados.

RectangleStylusShape(Double, Double)

Inicializa una nueva instancia de la RectangleStylusShape clase con el ancho y alto especificados.

Propiedades

Nombre Description
Height

Obtiene el alto del lápiz óptico.

(Heredado de StylusShape)
Rotation

Obtiene el ángulo del lápiz óptico.

(Heredado de StylusShape)
Width

Obtiene el ancho del lápiz óptico.

(Heredado de StylusShape)

Métodos

Nombre Description
Equals(Object)

Determina si el objeto especificado es igual al objeto actual.

(Heredado de Object)
GetHashCode()

Actúa como función hash predeterminada.

(Heredado de Object)
GetType()

Obtiene el Type de la instancia actual.

(Heredado de Object)
MemberwiseClone()

Crea una copia superficial del Objectactual.

(Heredado de Object)
ToString()

Devuelve una cadena que representa el objeto actual.

(Heredado de Object)

Se aplica a