Skip to main content
Table of Contents

TTMSFNCMaps.AddLabel Method

Creates and returns label.

API unit family: TMSFNCMaps Declaring type: TTMSFNCMaps Inherited from: TTMSFNCCustomMaps

Overloads

Overload 1

Creates and returns label.

GeneratedPascalC++
function AddLabel(ACoordinate: TTMSFNCMapsCoordinateRec; AText: string; AFontColor: TTMSFNCGraphicsColor = gcNull; ABackgroundColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCMapsLabel; overload; virtual;
virtual TTMSFNCMapsLabel* __fastcall AddLabel(TTMSFNCMapsCoordinateRec ACoordinate, System::UnicodeString AText, TTMSFNCGraphicsColor AFontColor = gcNull, TTMSFNCGraphicsColor ABackgroundColor = gcNull);

Parameters

Name Description
ACoordinate Coordinate value used by the operation.
AText Text content used by the operation.
AFontColor Text color applied to the label.
ABackgroundColor Background color applied to the label.

Returns

String value returned by the operation.

Overload 2

Creates and returns label.

GeneratedPascalC++
function AddLabel(ABounds: TTMSFNCMapsBoundsRec; AText: string; AFontColor: TTMSFNCGraphicsColor = gcNull; ABackgroundColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCMapsLabel; overload; virtual;
virtual TTMSFNCMapsLabel* __fastcall AddLabel(TTMSFNCMapsBoundsRec ABounds, System::UnicodeString AText, TTMSFNCGraphicsColor AFontColor = gcNull, TTMSFNCGraphicsColor ABackgroundColor = gcNull);

Parameters

Name Description
ABounds Bounds used by the operation.
AText Text content used by the operation.
AFontColor Text color applied to the label.
ABackgroundColor Background color applied to the label.

Returns

String value returned by the operation.

Overload 3

Creates and returns label.

GeneratedPascalC++
function AddLabel(ANorthEastLatitude: Double; ANorthEastLongitude: Double; ASouthWestLatitude: Double; ASouthWestLongitude: Double; AText: string; AFontColor: TTMSFNCGraphicsColor = gcNull; ABackgroundColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCMapsLabel; overload; virtual;
virtual TTMSFNCMapsLabel* __fastcall AddLabel(double ANorthEastLatitude, double ANorthEastLongitude, double ASouthWestLatitude, double ASouthWestLongitude, System::UnicodeString AText, TTMSFNCGraphicsColor AFontColor = gcNull, TTMSFNCGraphicsColor ABackgroundColor = gcNull);

Parameters

Name Description
ANorthEastLatitude Latitude value in decimal degrees.
ANorthEastLongitude Longitude value in decimal degrees.
ASouthWestLatitude Latitude value in decimal degrees.
ASouthWestLongitude Longitude value in decimal degrees.
AText Text content used by the operation.
AFontColor Text color applied to the label.
ABackgroundColor Background color applied to the label.

Returns

String value returned by the operation.

Overload 4

Creates and returns label.

GeneratedPascalC++
function AddLabel(ALatitude: Double; ALongitude: Double; AText: string; AFontColor: TTMSFNCGraphicsColor = gcNull; ABackgroundColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCMapsLabel; overload; virtual;
virtual TTMSFNCMapsLabel* __fastcall AddLabel(double ALatitude, double ALongitude, System::UnicodeString AText, TTMSFNCGraphicsColor AFontColor = gcNull, TTMSFNCGraphicsColor ABackgroundColor = gcNull);

Parameters

Name Description
ALatitude Latitude value in decimal degrees.
ALongitude Longitude value in decimal degrees.
AText Text content used by the operation.
AFontColor Text color applied to the label.
ABackgroundColor Background color applied to the label.

Returns

String value returned by the operation.