Class RulerWidget
Assembly: Mapsui.dll
public class RulerWidget : BaseWidget, IWidget
Constructors
|
Edit this page
View Source
Declaration
Properties
|
Edit this page
View Source
Declaration
public Color Color { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public Color ColorOfBeginAndEndDots { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public MPoint? CurrentPosition { get; }
Property Value
|
Edit this page
View Source
Declaration
public double? DistanceInKilometers { get; }
Property Value
|
Edit this page
View Source
Declaration
public TextBoxWidget InfoBox { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public bool IsActive { get; set; }
Property Value
|
Edit this page
View Source
Gets or sets a value indicating whether the info should be shown next to the ruler.
When set to false you can use the RulerWidget.InfoBox fields to position it like any
other widget.
Declaration
public bool ShowInfoNextToRuler { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public MPoint? StartPosition { get; }
Property Value
Methods
|
Edit this page
View Source
Function, which handles the widget pointer moved event
Declaration
public override void OnPointerMoved(WidgetEventArgs e)
Parameters
Overrides
|
Edit this page
View Source
Function, which handles the widget pointer pressed event
Declaration
public override void OnPointerPressed(WidgetEventArgs e)
Parameters
Overrides
|
Edit this page
View Source
Function, which handles the widget pointer released event
Declaration
public override void OnPointerReleased(WidgetEventArgs e)
Parameters
Overrides
|
Edit this page
View Source
Function, which handles the widget tapped event
Declaration
public override void OnTapped(WidgetEventArgs e)
Parameters
Overrides
|
Edit this page
View Source
Declaration
|
Edit this page
View Source
Declaration
public (IFeature? startFeature, IFeature? currentFeature) SnapToFeature(Func<MPoint?, IFeature?> getFeaturesToSnapTo)
Parameters
Returns
Events
|
Edit this page
View Source
Declaration
public event EventHandler<RulerWidget.RulerWidgetUpdatedEventArgs>? DistanceUpdated
Event Type
Implements
Extension Methods