Interface IMapServerLegendPatch
Provides access to the Map Server Legend Patch Interface.
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("E8807B4F-A2ED-43CB-954F-73B7ECD94422")]
public interface IMapServerLegendPatch
Remarks
A legend patch is a rectangular image with an individual polygon, line or point symbol associated with a particular legend class. Use PatchHeight and PatchWidth to change the size of the legend patch. Use AreaPatch or LinePatch to change the shape of the symbol. If the goal is only to change the size of the patch and to retain the default shape, AreaPatch and LinePatch do not have to be set.
Properties
AreaPatch
The area patch.
IAreaPatch AreaPatch { get; set; }
Property Value
Remarks
Assign a custom shape to the symbol such as a triangle or rounded polygon.
LinePatch
The line patch.
ILinePatch LinePatch { get; set; }
Property Value
Remarks
Assign a custom line shape to the symbol such as a zigzag line.
PatchHeight
The patch height (in points).
double PatchHeight { get; set; }
Property Value
Remarks
Changing the size of the legend patch will not change the size of the symbol. It only changes the size of the patch surrounding the symbol. The size of the symbol is determined by the properties of the symbol itself. The symbol will increase in size if AreaPatch or LinePatch are used. A size should be specified. Entering 0 may lead to unexpected results.
PatchResolution
The patch resolution (dots per inch).
double PatchResolution { get; set; }
Property Value
PatchWidth
The patch width (in points).
double PatchWidth { get; set; }
Property Value
Remarks
Changing the size of the legend patch will not change the size of the symbol. It only changes the size of the patch surrounding the symbol. The size of the symbol is determined by the properties of the symbol itself. The symbol will increase in size if AreaPatch or LinePatch are used. A size should be specified. Entering 0 may lead to unexpected results.