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

Copyright Label

The RadMap control displays a copyright label at the bottom of the control.

This label is represented by the MapCopyrightLabelElement. You can access it via the CopyrightLabelElement property and set its Text property to customize the displayed content.

Figure 1: Copyright Label

WinForms RadMap Copyright Label


this.radMap1.MapElement.CopyrightLabelElement.Text = "<html>© <a href=https://www.openstreetmap.org/copyright>OpenStreetMap</a> contributors";


Me.RadMap1.MapElement.CopyrightLabelElement.Text = "<html>© <a href=https://www.openstreetmap.org/copyright>OpenStreetMap</a> contributors"

Customization

The MapCopyrightLabelElement can be further customized to suit your specific requirements.

Aligment

The element's Alignment property determines its position. While the ContentAlignment enumeration includes vertical options such as Top, Middle, and Bottom, these are not applicable here—the copyright label is always positioned at the bottom of the map. By default, the alignment is set to MiddleRight, as shown in the first image of the article.

Note that selecting TopRight or BottomRight produces the same visual result due to the fixed bottom placement of the label.

All three center alignments ContentAlignment.MiddleCenter, ContentAlignment.TopCenter, ContentAlignment.BottomCenter result in the screenshot below:


this.radMap1.MapElement.CopyrightLabelElement.Alignment = ContentAlignment.MiddleCenter;


Me.RadMap1.MapElement.CopyrightLabelElement.Alignment = ContentAlignment.MiddleCenter

WinForms RadMap Copyright Label Aligment Center

All three left alignments ContentAlignment.MiddleLeft, ContentAlignment.TopLeft, ContentAlignment.BottomLeft result in the screenshot below:


this.radMap1.MapElement.CopyrightLabelElement.Alignment = ContentAlignment.MiddleLeft;


Me.RadMap1.MapElement.CopyrightLabelElement.Alignment = ContentAlignment.MiddleLeft

WinForms RadMap Copyright Label Aligment Left

Margin

The Margin property of the copyright label element is especially useful for fine-tuning its position relative to surrounding elements. For example, you can adjust the margin values to "stick" the label closer to the bottom edge of the map, if such a design is desired.


this.radMap1.MapElement.Margin = new Padding(0, 8, 20, 0);


Me.RadMap1.MapElement.Margin = new Padding(0, 8, 20, 0)

WinForms RadMap Copyright Label Margin

See Also

In this article