Enum RestrictionStyle
This enumeration specifies the type of restriction zone display style.
public enum RestrictionStyle
Fields
CircleWithSlashImage = 1
A tiled circle with slash (strikeout) image. Can be used to represent restriction or lack of viewing permissions.
HatchPattern = 0
Hatch pattern. Can be used to represent "no data" in this zone.
UseCustomStyles = 2
Will use a custom style instead of default style.
Examples
RestrictionLayer restrictionLayer1 = new RestrictionLayer();
restrictionLayer1.RestrictionStyle = RestrictionStyle.HatchPattern;
RestrictionLayer restrictionLayer2 = new RestrictionLayer();
restrictionLayer2.RestrictionStyle = RestrictionStyle.CircleWithSlashImage;
RestrictionLayer restrictionLayer3 = new RestrictionLayer();
restrictionLayer3.RestrictionStyle = RestrictionStyle.UseCustomStyles;
AreaStyle customStyle = new AreaStyle(new GeoSolidBrush(new GeoColor(150, GeoColors.Gray)));
restrictionLayer3.CustomStyles.Add(customStyle);
Dim restrictionLayer1 As RestrictionLayer = New RestrictionLayer()
restrictionLayer1.RestrictionStyle = RestrictionStyle.HatchPattern
Dim restrictionLayer2 As RestrictionLayer = New RestrictionLayer()
restrictionLayer2.RestrictionStyle = RestrictionStyle.CircleWithSlashImage
Dim restrictionLayer3 As RestrictionLayer = New RestrictionLayer()
restrictionLayer3.RestrictionStyle = RestrictionStyle.UseCustomStyles
Dim customStyle As AreaStyle = New AreaStyle(New GeoSolidBrush(New GeoColor(150,GeoColors.Gray)))
restrictionLayer3.CustomStyles.Add(customStyle)