Interface IIndexedGeoPoint
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.
Namespace: CADability.UserInterface
Assembly: CADability.dll
Syntax
public interface IIndexedGeoPoint
Methods
| Improve this Doc View SourceGetGeoPoint(Int32)
Yields the value of the GeoPoint with the given index.
Declaration
GeoPoint GetGeoPoint(int Index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | Index | Index of the GeoPoint |
Returns
| Type | Description |
|---|---|
| GeoPoint | Value of the GeoPoint |
GetGeoPointCount()
Yields the number of GeoPoints in the list or array.
Declaration
int GetGeoPointCount()
Returns
| Type | Description |
|---|---|
| System.Int32 | Number of GeoPoints |
InsertGeoPoint(Int32, GeoPoint)
Inserts a new GeoPoint before the given index. Index==-1: Append
Declaration
void InsertGeoPoint(int Index, GeoPoint ThePoint)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | Index | Where to insert |
| GeoPoint | ThePoint | Value to insert |
MayDelete(Int32)
Asks, whether the point with the given index may be deleted.
Declaration
bool MayDelete(int Index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | Index | Index of the point |
Returns
| Type | Description |
|---|---|
| System.Boolean |
MayInsert(Int32)
Asks, whether a point may be inserted before the given index.
Declaration
bool MayInsert(int Index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | Index | Index where insertion is requested, -1: append |
Returns
| Type | Description |
|---|---|
| System.Boolean |
RemoveGeoPoint(Int32)
Removes the GeoPoint at the given Index.
Declaration
void RemoveGeoPoint(int Index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | Index | Index of the point to be removed, -1: LastPoint |
SetGeoPoint(Int32, GeoPoint)
Sets the GeoPoint with the given index
Declaration
void SetGeoPoint(int Index, GeoPoint ThePoint)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | Index | Index of the GeoPoint |
| GeoPoint | ThePoint | Value to set |