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| Name | Type | Description |
|---|---|---|
| swt | BOOLEAN | |
| numPairs | INTEGER | |
| pair1 | REAL | |
| pair2 | REAL | |
| pair3 | REAL | |
| pair4 | REAL | |
| pair5 | REAL |
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);VS Functions: GetDashDataValPrAtN | GetNumDashDataPairsN
Availability: from Vectorworks 2019