VECustomIconSpecification Class

You are not viewing the latest version of the AJAX control. Bing Maps AJAX V7 is the recommended JavaScript control for Bing Maps. If you need this documentation, it is available in as a CHM or PDF download.

Specifies the appearance of a VEShape Class object's custom icon.

Constructor

Name Description

VECustomIconSpecification Constructor

Initializes a new instance of the VECustomIconSpecification object.

Public Properties

Name Description

VECustomIconSpecification.BackColor Property

A VEColor object representing the icon's background and transparency.

VECustomIconSpecification.CustomHTML Property

Custom HTML representing the pin's appearance. When specified, this HTML represents the pin's icon for 2D views only. String.

VECustomIconSpecification.ForeColor Property

A VEColor object representing the icon's text color and transparency.

VECustomIconSpecification.Image Property

A String representing the URL of an image file.

VECustomIconSpecification.ImageOffset Property

A VEPixel object representing the image's offset from the icon's anchor.

VECustomIconSpecification.TextBold Property

Specifies whether the text for the icon should be bold. Boolean.

VECustomIconSpecification.TextContent Property

The actual text to display for the icon. String.

VECustomIconSpecification.TextFont Property

A String containing the name of the font to use for the icon text.

VECustomIconSpecification.TextItalics Property

Specifies whether the text for the icon should be italic. Boolean.

VECustomIconSpecification.TextOffset Property

A VEPixel object representing the amount to offset text from the top left corner.

VECustomIconSpecification.TextSize Property

Specifies the size at which to display text, in points. Integer.

VECustomIconSpecification.TextUnderline Property

Specifies whether the text for the icon should be underlined. Boolean.

Remarks

The 3D control cannot accept custom HTML for custom icons. This class allows you to specify custom HTML for an icon in 2D mode, if desired, as well as a parameterized property list to define the custom icon's appearance in 3D mode. If you do not need to support custom icons in 3D mode, do not use this class.