User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_layervector.items

Table of Contents

TGIS_LayerVector.Items property

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

A list of all ghost items.

Available also on: Delphi | Java | ActiveX.

Syntax

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

Value

Remarks

After MakeEditable, the called shape is handled in this list. The shape can be removed fully from the list by calling Revert on the shape level. In such case, all subsequent operations on the 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 an example.

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

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

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

2020/05/07 01:18