ApplyFillToLevels
The ApplyFillToLevels method applies the current fill attributes to the level list.
Syntax
object. ApplyFillToLevels (FirstIndex, NumberToSet, NumberToSkip)
Parameter |
Type |
Default |
Description |
FirstIndex |
Integer |
required; FirstIndex sets the first contour interval affected by the change. |
|
NumberToSet |
Integer |
required; NumberToSet sets the consecutive number of levels to apply the changes. |
|
NumberToSkip |
Integer |
required; NumberToSkip sets the number of levels to skip when apply the change. |
Remarks
The ApplyFillToLevels method must be called after setting the desired contour map fill attributes.
If NumberToSet is 1 and NumberToSkip is 0, all lines are filled.
If NumberToSet is 1 and NumberToSkip is 1, every other line is filled.
Example
This example demonstrates how to set the fill property for a contour map and apply the fill changes. The Rainbow.CLR file is applied to the first contour interval (FirstIndex:=1), the second contour interval (NumberToSet:=2), but not the third contour interval (NumberToSkip:=1).
'Fill contours
ContourLayer.FillContours = True
'The ApplyFillToLevels method is additive
'So first the fill must be removed from all levels
ContourLayer.FillPattern = "None"
ContourLayer.ApplyFillToLevels(FirstIndex:=1, NumberToSet:=1, NumberToSkip:=0)
'Set the desired fill pattern and load the CLR file
ContourLayer.FillPattern = "Solid"
ContourLayer.FillForegroundColorMap.LoadFile(SurferApp.Path _
+ "\Samples\Rainbow.clr")
'Apply contour map fill changes
ContourLayer.ApplyFillToLevels(FirstIndex:=1, NumberToSet:=2, NumberToSkip:=1)
Used by: ContourLayer Object