PointCount property (IDicomGraphicObjectAttributes Interface)

VB.NET example

C# example

Visual Basic example

Visual C++ 5.0 example

 

Syntax

long PointCount

Overview

Refer to Working with DICOM Annotations

Remarks

The PointCount property specifies the value of the "Number of Graphic Points" (0070,0021) element.

Set this property to allocate storage for the arrays specified by the PointsX property and the PointsY property. The arrays can then be filled with the desired values. If the PointCount property is set to 0, the memory used for the arrays will be freed.

Before using the CreateGraphicObject method to create a new object or the SetGraphicObjectAttributes method to update an existing one, set this property to the desired number of points and fill the arrays. These methods will ignore the PointCount property, the PointsX property, and the PointsY property if the PointCount property is set to a value less than or equal to 0.

When retrieving the attributes of an object using the GetGraphicObjectAttributes method, the PointCount property will be updated with the number of points and storage will be allocated for the arrays (specified by the PointsX property and the PointsY property), which will be filled with the retrieved values.

See Also

Elements:

PointsX property, PointsY property, GraphicObjectAttributes property, CreateGraphicObject method, GetGraphicObjectAttributes method, SetGraphicObjectAttributes method.

Topics:

ILEADDicomDS Interface, IDicomGraphicObjectAttributes Interface