Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 1.2 KB

File metadata and controls

49 lines (40 loc) · 1.2 KB

GetDashStyleIndexN

Description

Function GetDashStyleIndexN searches for the pattern specified by the parameters. If it exists, then the negative value of the dash pattern's internal index is returned. If it does not exist, then it is added to the document and the negative value of the new dash pattern's internal index is returned.

FUNCTION GetDashStyleIndexN(
				swt      : BOOLEAN;
				numPairs : INTEGER;
				pair1    : REAL;
				pair2    : REAL;
				pair3    : REAL;
				pair4    : REAL;
				pair5    : REAL): LONGINT;
def vs.GetDashStyleIndexN(swt, numPairs, pair1, pair2, pair3, pair4, pair5):
    return LONGINT

Parameters

Name Type Description
swt BOOLEAN
numPairs INTEGER
pair1 REAL
pair2 REAL
pair3 REAL
pair4 REAL
pair5 REAL

Examples

GetDashStyleIndexN(TRUE, 2, 0.12, 0.18, 0.03, 0.07);

GetDashStyleIndexN(TRUE, 3, 0.12, 0.18, 0.03, 0.07, 0.2, 0.05);

See Also

VS Functions: GetDashDataValPrAtN | GetNumDashDataPairsN

Version

Availability: from Vectorworks 2019

Category