New to Telerik UI for WinForms? Start a free 30-day trial

Renders a map callout's text as HTML while retaining the positioning and image layout of MapCallout.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

C#
public class MapHtmlCallout : MapCallout, IClusterable, IBorderElement, IBoxStyle, IBoxElement, IFillElement, ITextElement, IShapedElement

Inheritance: objectMapVisualElementMapPathBasedVisualElementMapCalloutMapHtmlCallout

Implements: IBorderElementIBoxElementIBoxStyleIClusterableIFillElementIShapedElementITextElement...

Inherited Members MapCallout.drawTextMapCallout.ResolveEntityReferences(MapPoint)MapCallout.Paint(IGraphics, IMapViewport)MapCallout.CreateVisualElementInfo(IMapViewport)MapCallout.IsOutlineMapCallout.DistanceMapCallout.MaxWidthMapCallout.PaddingMapCallout.ElementMapCallout.TextMapCallout.ImageMapPathBasedVisualElement.ViewportChanged(IMapViewport, ViewportChangeAction)MapPathBasedVisualElement.HitTest(PointG, PointL, IMapViewport)MapPathBasedVisualElement.GetVisualElementInfo(IMapViewport)MapPathBasedVisualElement.ResetGraphicsPathCache()MapPathBasedVisualElement.IsInViewportMapPathBasedVisualElement.LocationMapVisualElement.GetGeographicBounds()MapVisualElement.GetCurrentShape()MapVisualElement.GeographicBoundsMapVisualElement.LayerMapVisualElement.IsVisibleMapVisualElement.IsSelectedMapVisualElement.TagMapVisualElement.BackColorMapVisualElement.BackColor2MapVisualElement.BackColor3MapVisualElement.BackColor4MapVisualElement.NumberOfColorsMapVisualElement.GradientAngleMapVisualElement.GradientPercentageMapVisualElement.GradientPercentage2MapVisualElement.GradientStyleMapVisualElement.SizeMapVisualElement.SmoothingModeMapVisualElement.BorderColorMapVisualElement.BorderColor2MapVisualElement.BorderColor3MapVisualElement.BorderColor4MapVisualElement.InnerColorMapVisualElement.InnerColor2MapVisualElement.InnerColor3MapVisualElement.InnerColor4MapVisualElement.BoxStyleMapVisualElement.BorderDrawModeMapVisualElement.BorderDashStyleMapVisualElement.BorderDashPatternMapVisualElement.LeftColorMapVisualElement.LeftShadowColorMapVisualElement.TopColorMapVisualElement.TopShadowColorMapVisualElement.RightColorMapVisualElement.RightShadowColorMapVisualElement.BottomColorMapVisualElement.BottomShadowColorMapVisualElement.BorderWidthMapVisualElement.LeftWidthMapVisualElement.TopWidthMapVisualElement.RightWidthMapVisualElement.BottomWidthMapVisualElement.OffsetMapVisualElement.BorderSizeMapVisualElement.HorizontalWidthMapVisualElement.VerticalWidthMapVisualElement.ForeColorMapVisualElement.FontMapVisualElement.ToolTipTextMapVisualElement.RawResourceMapVisualElement.Shape...

Constructors

Creates an HTML-rendered callout associated with the specified map element.

C#
public MapHtmlCallout(MapVisualElement element)
Parameters:elementMapVisualElement

The map element whose location anchors the callout.

Creates an HTML-rendered callout anchored at the specified geographic location.

C#
public MapHtmlCallout(PointG location)
Parameters:locationPointG

The geographic location where the callout is positioned.

Methods

Measures the resolved HTML text within the callout's maximum width so the bubble can fit wrapped content.

C#
protected override SizeF MeasureText(Graphics graphics, IMapViewport viewport)
Parameters:graphicsGraphics

The graphics context used for text measurement.

viewportIMapViewport

The map viewport supplied by the base layout hook.

Returns:

SizeF

The measured HTML content size.

Overrides: MapCallout.MeasureText(Graphics, IMapViewport)

Draws the resolved callout text as HTML; no text is rendered when the text is null or empty.

C#
protected override void PaintText(IGraphics graphics, IMapViewport viewport)
Parameters:graphicsIGraphics

The graphics context used to render the HTML.

viewportIMapViewport

The viewport used to position the text and repeat it across wrapped map copies.

Overrides: MapCallout.PaintText(IGraphics, IMapViewport)