Skip to main content

TdxMapControlGeoRect.IsValid Method

Checks whether the record’s TopLeft and BottomRight field values define the correct geographical rectangle.

Declaration

function IsValid: Boolean;

Returns

Type
Boolean

Remarks

This function returns True indicating that the rectangle is correctly defined, if the following conditions are met:

  • The IsValid function called for both the top-left and bottom-right corner points of the geographical rectangle returns True;

  • The top-left corner point’s Latitude field value is greater than the bottom-right corner point’s Latitude field value;

  • The top-left corner point’s Longitude field value is less than the bottom-right corner point’s Longitude field value.

See Also