VCGetLayerIndex
VCSetLayerIndex


Version:

1.2

Description:

Specifies the current layer property for all subsequent primary entity placements.

Declaration:

 

C/C++

extern "C" short WINAPI VCGetLayerIndex(short* iError);
extern "C" void WINAPI VCSetLayerIndex(short* iError, short i);

Delphi

function VCGetLayerIndex(var iError: Smallint):Smallint; stdcall;
procedure VCSetLayerIndex(var iError: Smallint; i: Smallint); stdcall;

ActiveX/COM

Function GetLayerIndex() As Integer
Sub SetLayerIndex(ByVal i As Integer)

Parameters:

i - the desired layer index.

Notes:

All primary drawing entities have four specific properties associated with them. These are: color, layer, line type and line width. Each of these are set by an index, not by name. Text and Dimensions each have their own properties and as such are not set or retrieved using these functions but instead have their own similar functions.

See Also:

VCGetLineTypeIndex, VCGetLineWidthIndex, VCGetColorIndex, VCGetTextLayer, VCGetDimLayer