MapVisualElement
Base class for geographic map overlays, providing viewport hooks and the fill, border, and text settings used to render them.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public abstract class MapVisualElement : IClusterable, IBorderElement, IBoxStyle, IBoxElement, IFillElement, ITextElement, IShapedElement
Inheritance: objectMapVisualElement
Derived Classes:
Implements:
Constructors
Initializes a new instance of the MapVisualElement class.
public MapVisualElement()
Properties
Gets or sets the first fill color; additional colors are used according to NumberOfColors and GradientStyle.
public virtual Color BackColor { get; set; }
Implements:
Gets or sets the second fill color used by multi-color fill styles.
public virtual Color BackColor2 { get; set; }
Implements:
Gets or sets the third fill color used when NumberOfColors is at least three.
public virtual Color BackColor3 { get; set; }
Implements:
Gets or sets the fourth fill color used when NumberOfColors is four.
public virtual Color BackColor4 { get; set; }
Implements:
Gets or sets the primary border color; additional border colors can provide gradient stops.
public Color BorderColor { get; set; }
Gets or sets the second border gradient color.
public virtual Color BorderColor2 { get; set; }
Gets or sets the third border gradient color.
public virtual Color BorderColor3 { get; set; }
Gets or sets the fourth border gradient color.
public virtual Color BorderColor4 { get; set; }
Gets or sets the custom dash pattern used when the border dash style supports a custom pattern.
public virtual float[] BorderDashPattern { get; set; }
Implements:
Gets or sets the dash style applied to border strokes.
public virtual DashStyle BorderDashStyle { get; set; }
Implements:
Gets or sets the overlap order used when independently styled border edges meet.
public virtual BorderDrawModes BorderDrawMode { get; set; }
Implements:
Gets or sets the combined horizontal and vertical extents occupied by the border.
public virtual SizeF BorderSize { get; set; }
Implements:
Gets or sets the shared border thickness; this property forwards to Width.
public virtual float BorderWidth { get; set; }
Gets or sets the color of the bottom edge when BoxStyle is FourBorders.
public virtual Color BottomColor { get; set; }
Implements:
Gets or sets the shadow color of the bottom edge in four-border mode.
public virtual Color BottomShadowColor { get; set; }
Implements:
Gets or sets the bottom-edge thickness used in four-border mode.
public virtual float BottomWidth { get; set; }
Implements:
Gets or sets whether the border is drawn as one outline, four independently styled edges, or nested inner and outer outlines.
public virtual BorderBoxStyle BoxStyle { get; set; }
Implements:
Gets or sets the font.
public virtual Font Font { get; set; }
The font.
Implements:
Gets or sets the fore color.
public virtual Color ForeColor { get; set; }
The fore color.
Implements:
Gets the geographic bounds.
public virtual RectangleG GeographicBounds { get; }
The geographic bounds.
Implements:
Gets or sets the angle passed to linear and radial fill and border gradients.
public virtual float GradientAngle { get; set; }
Implements:
Gets or sets a transition position used by gradient styles; in a fill with three or more colors, it positions the second color stop.
public virtual float GradientPercentage { get; set; }
Implements:
Gets or sets a second transition position used by gradient styles; in a four-color fill, it positions the third color stop.
public virtual float GradientPercentage2 { get; set; }
Implements:
Gets or sets the fill and border gradient treatment, such as solid, linear, radial, or glass-like rendering.
public virtual GradientStyles GradientStyle { get; set; }
Implements:
Gets or sets the combined width of the left and right borders.
public virtual float HorizontalWidth { get; set; }
Implements:
Gets or sets the primary inner-border color used with OuterInnerBorders.
public virtual Color InnerColor { get; set; }
Implements:
Gets or sets the second inner-border gradient color.
public virtual Color InnerColor2 { get; set; }
Implements:
Gets or sets the third inner-border gradient color.
public virtual Color InnerColor3 { get; set; }
Implements:
Gets or sets the fourth inner-border gradient color.
public virtual Color InnerColor4 { get; set; }
Implements:
Gets a value indicating whether this instance is visible in the viewport.
public abstract bool IsInViewport { get; }
true if this instance is visible in the viewport.; otherwise, false.
Gets a value indicating whether this instance is selected.
public virtual bool IsSelected { get; }
true if this instance is selected; otherwise, false.
Gets or sets a value indicating whether this instance is visible.
public virtual bool IsVisible { get; set; }
true if this instance is visible; otherwise, false.
Gets the layer this element is added to.
public MapLayer Layer { get; }
The layer.
Gets or sets the color of the left edge when BoxStyle is FourBorders.
public virtual Color LeftColor { get; set; }
Implements:
Gets or sets the shadow color of the left edge in four-border mode.
public virtual Color LeftShadowColor { get; set; }
Implements:
Gets or sets the left-edge thickness used in four-border mode.
public virtual float LeftWidth { get; set; }
Implements:
Gets or sets the location.
public virtual PointG Location { get; set; }
The location.
Implements:
Gets or sets how many of the four fill colors participate in rendering.
public virtual int NumberOfColors { get; set; }
Implements:
Gets or sets the top-left inset of the element's border box.
public virtual SizeF Offset { get; set; }
Implements:
public virtual object RawResource { get; set; }
Implements:
Gets or sets the color of the right edge when BoxStyle is FourBorders.
public virtual Color RightColor { get; set; }
Implements:
Gets or sets the shadow color of the right edge in four-border mode.
public virtual Color RightShadowColor { get; set; }
Implements:
Gets or sets the right-edge thickness used in four-border mode.
public virtual float RightWidth { get; set; }
Implements:
Gets or sets the optional element shape returned by GetCurrentShape().
public ElementShape Shape { get; set; }
Gets or sets the element's pixel dimensions, used by point and pin overlays to size their marker paths.
public virtual Size Size { get; set; }
Implements:
Gets or sets the smoothing mode applied while the fill and border are drawn.
public virtual SmoothingMode SmoothingMode { get; set; }
Implements:
Gets or sets application data associated with this element; the map renderer does not interpret the value.
public object Tag { get; set; }
Gets or sets the text.
public virtual string Text { get; set; }
The text.
Implements:
Gets or sets the text of the tool tip for this element.
public virtual string ToolTipText { get; set; }
The tool tip text.
Implements:
Gets or sets the color of the top edge when BoxStyle is FourBorders.
public virtual Color TopColor { get; set; }
Implements:
Gets or sets the shadow color of the top edge in four-border mode.
public virtual Color TopShadowColor { get; set; }
Implements:
Gets or sets the top-edge thickness used in four-border mode.
public virtual float TopWidth { get; set; }
Implements:
Gets or sets the combined width of the top and bottom borders.
public virtual float VerticalWidth { get; set; }
Implements:
Methods
Gets the geographic bounds of elements that consist of more than one figure.
Tests whether a map-pixel point falls within any geographic bounds of the element, including horizontal wraparound copies.
public virtual bool HitTest(PointG pointG, PointL pointL, IMapViewport viewport)
The geographic coordinate corresponding to the point being tested.
pointLPointLThe map-pixel coordinate tested against the projected bounds.
viewportIMapViewportThe viewport whose zoom level determines the projection and wraparound range.
Returns:true if the point is inside one of the projected bounds; otherwise, false.
Paints the element to the specified graphics.
public abstract void Paint(IGraphics graphics, IMapViewport viewport)
The graphics.
viewportIMapViewportThe viewport.
Called when the viewport changes.
public abstract void ViewportChanged(IMapViewport viewport, ViewportChangeAction action)
The viewport.
actionViewportChangeActionThe action.