User Tools

Site Tools


Table of Contents

TGIS_LayerVector.Items property

DK11 for .NET | TatukGIS.NDK.TGIS_LayerVector.Items | Constructors | Fields | Methods | Properties | Events

List of all ghost items.

Available also on: Delphi | Java | ActiveX.


// C#
public TGIS_ShapeList Items
  get {}
' VisualBasic
Public Property Items As TGIS_ShapeList
  End Get
End Property
// Oxygene
  property Items : TGIS_ShapeList read;



After MakeEditable, call shape is handled in this list. It can be removed fully from this list by calling Revert on shape level. In such case all subsequent operations on shape will be performed via disk image.

Another way of clearing this list is to call Save, which will transfer all information back to the file.

See Build for example.

Be aware that Items property does not hold all items of the layers but only items kept in-memory for example as a result of editing. If the whole layer resides in memory then Items indeed hold all shapes, but it is a specific case.

Do not manipulate Items directly. Items added directly will not be properly initialised, while direct reordering or deleting can cause internal index corruption.

Always use AddChespe(), CreateShape(), or DeleteShape() methods.

2020/01/03 01:17