RulerAnnotation
Anotación de gobernantes.
Hereda de: AnnotationBase
Constructores
public RulerAnnotation()
rulerAnnotation = RulerAnnotation()
Inicia un nuevo caso del ICH.
Propiedades
public double RulerHeight { get; set; }
value = rulerAnnotation.RulerHeight
rulerAnnotation.RulerHeight = value
Altura de regla.
public double RulerWidth { get; set; }
value = rulerAnnotation.RulerWidth
rulerAnnotation.RulerWidth = value
Ancho de regla.
public string Text1 { get; set; }
value = rulerAnnotation.Text1
rulerAnnotation.Text1 = value
Primera línea de texto de regla.
public string Text2 { get; set; }
value = rulerAnnotation.Text2
rulerAnnotation.Text2 = value
Segunda línea de texto de regla.
Métodos
protected override void AttachInteractionHandlersTo(FrameworkElement source)
rulerAnnotation.AttachInteractionHandlersTo(source)
Remove auto en cualquier clic del ratón.
protected override void DetachInteractionHandlersFrom(FrameworkElement source)
rulerAnnotation.DetachInteractionHandlersFrom(source)
Remove auto en cualquier clic del ratón.
protected override IComparable FromCoordinate(double coord, IAxis axis)
result = rulerAnnotation.FromCoordinate(coord, axis)
Convertir una coordenadas pixel en valor de datos
- coord
- La coordenadas pixel.
- axis
- El eje para el cual se calcula el valor de los datos
Devuelve: El valor de los datos
protected override IAnnotationPlacementStrategy GetCurrentPlacementStrategy()
result = rulerAnnotation.GetCurrentPlacementStrategy()
protected override Cursor GetSelectedCursor()
result = rulerAnnotation.GetSelectedCursor()
Consigue que el Cursor use para la anotación cuando se selecciona
public override bool IsPointWithinBounds(Point point)
result = rulerAnnotation.IsPointWithinBounds(point)
Devuelve la verdad si el Punto está dentro de los límites del elemento IHitTestable
- point
- El punto de prueba
Devuelve: verdadero si el Punto está dentro de los límites
protected override void MakeInvisible()
rulerAnnotation.MakeInvisible()
Llamado internamente por el sistema de distribución cuando la anotación está fuera de los límites de la superficie
protected override void MakeVisible(AnnotationCoordinates coordinates)
rulerAnnotation.MakeVisible(coordinates)
Llamado internamente por el sistema de diseño cuando la anotación entra en los límites de la superficie
public override void OnApplyTemplate()
rulerAnnotation.OnApplyTemplate()
Construye el árbol visual para el control LayoutTransformer cuando se aplica una nueva plantilla.
Campos
public static readonly DependencyProperty RulerHeightProperty
value = RulerAnnotation.RulerHeightProperty
Altura de regla.
public static readonly DependencyProperty RulerWidthProperty
value = RulerAnnotation.RulerWidthProperty
Ancho de regla.
public static readonly DependencyProperty Text1Property
value = RulerAnnotation.Text1Property
Primera línea de texto de regla.
public static readonly DependencyProperty Text2Property
value = RulerAnnotation.Text2Property
Segunda línea de texto de regla.