Interface IIndexedGeoPoint
- Namespace
- CADability.UserInterface
- Assembly
- CADability.dll
Interface for the treatment of a list or array of GeoPoints. This interface is used for the communication of user-interface objects (e.g. MultiGeoPointProperty) with various containers of GeoPoints.
public interface IIndexedGeoPoint
Methods
GetGeoPoint(int)
Yields the value of the GeoPoint with the given index.
GeoPoint GetGeoPoint(int index)
Parameters
indexintIndex of the GeoPoint
Returns
- GeoPoint
Value of the GeoPoint
GetGeoPointCount()
Yields the number of GeoPoints in the list or array.
int GetGeoPointCount()
Returns
- int
Number of GeoPoints
InsertGeoPoint(int, GeoPoint)
Inserts a new GeoPoint before the given index. Index==-1: Append
void InsertGeoPoint(int index, GeoPoint thePoint)
Parameters
MayDelete(int)
Asks, whether the point with the given index may be deleted.
bool MayDelete(int index)
Parameters
indexintIndex of the point
Returns
MayInsert(int)
Asks, whether a point may be inserted before the given index.
bool MayInsert(int index)
Parameters
indexintIndex where insertion is requested, -1: append
Returns
RemoveGeoPoint(int)
Removes the GeoPoint at the given Index.
void RemoveGeoPoint(int index)
Parameters
indexintIndex of the point to be removed, -1: LastPoint
SetGeoPoint(int, GeoPoint)
Sets the GeoPoint with the given index
void SetGeoPoint(int index, GeoPoint thePoint)