Show / Hide Table of Contents

Constructor CalloutDefinition

CalloutDefinition(String)

Initializes a new instance of the CalloutDefinition class.

Declaration
public CalloutDefinition(string text)
Parameters
Type Name Description
System.String text

The title text in the callout

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.1 - 200.7
Xamarin.Android100.1 - 100.14
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.7
Relevant samples
Mobile map (search and route): Display maps and use locators to enable search and routing offline using a Mobile Map Package.

CalloutDefinition(String, String)

Initializes a new instance of the CalloutDefinition class.

Declaration
public CalloutDefinition(string text, string detailText)
Parameters
Type Name Description
System.String text

The title text in the callout

System.String detailText

The description text in the callout

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.1 - 200.7
Xamarin.Android100.1 - 100.14
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.7
Relevant samples
Find address: Find the location for an address.
Find place: Find places of interest near a location or within a specific area.
Offline geocode: Geocode addresses to locations and reverse geocode locations to addresses offline.
Project: Project a point from one spatial reference to another.
Reverse geocode: Use an online service to find the address for a tapped point.

CalloutDefinition(GeoElement)

Initializes a new instance of the CalloutDefinition class from a GeoElement

Declaration
public CalloutDefinition(GeoElement element)
Parameters
Type Name Description
GeoElement element

The element to create the definition for.

Remarks

The TextExpression, LeaderOffsetX and LeaderOffsetY will be attempted to be set from the display name and symbol used on the element.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.1 - 200.7
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.7

CalloutDefinition(GeoElement, String, String)

Initializes a new instance of the CalloutDefinition class from a GeoElement

Declaration
public CalloutDefinition(GeoElement element, string textExpression, string detailTextExpression = null)
Parameters
Type Name Description
GeoElement element

The element to create the definition for.

System.String textExpression

The Arcade expression for the title.

System.String detailTextExpression

The Arcade expression for the details.

Remarks

The LeaderOffsetX and LeaderOffsetY will be attempted to be set from the symbol used on the element.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.3 - 200.7
.NET200.3 - 200.7
.NET Windows200.3 - 200.7
.NET Android200.3 - 200.7
.NET iOS200.3 - 200.7
.NET Framework200.3 - 200.7
UWP200.3 - 200.7
In This Article
Back to top Copyright © 2022 Esri.